-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't open projects or create files with plus or ampersand character(s) in the path #306
Comments
A quick test (on Windows) shows that grave (`) exclamation mark (!), pound (£), dollar ($), caret (^) open bracket ((), close bracket ()), dash (-), underscore (_), open curly bracket ({), close curly bracket (}), open square bracket ([), close square bracket (]), tilde (~), at (@), semi-colon (;), comma (,) and full stop (.) all work when creating a project. Hash (#) behaves the same as plus (+) and ampersand (&) in that it creates the project but can't open it. Percent (%) pops up the following error and fails to create the project:
Colon (:), question mark (?) and asterisk (*) show the error |
Percent sign "%" is not working on Mac OSX as Project Name URIError: URI malformed |
should be fixed by #363, the release will come soon |
Describe the bug
When creating or opening a project that contains a "special" character nothing is shown. Trying to create a new file in the project displays the error:
Error creating file
. The interesting thing is that it is able to create and delete projects with a special character in the path, just not open them.I had a plus (+) character in the path and it looks like issue #225 had the same problem with an ampersand (&) character. I say "special" as plus (+) and ampersand (&) don't work but other special characters, e.g. a dash (-), do. These are both valid characters in a path on Linux, Windows and OSX.
The developer console shows this error which seems pertinent:
It shows that the plus (+) character has been replaces with a space which of cause results in a
no such file or directory
error.To Reproduce
Steps to reproduce the behavior:
Error creating file
Uncaught (in promise) Error: ENOENT: no such file or directory,
Expected behavior
As a new user, I expected to see some content when creating a new project, not a blank area. When I create a new file I expect the file to be created, not a nondescript error.
When creating a new project, it shouldn't say
Location is OK
if, in fact, it is not.When creating a new file, it shouldn't say
Ready to create <filename>.mjml
if, in fact, it is not.Screenshots
Environment
The text was updated successfully, but these errors were encountered: