-
Notifications
You must be signed in to change notification settings - Fork 19
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
Windows paths are not escaped correctly #11
Comments
Whoops! Thanks for filing, I'll get a fix in soon |
Hmmm seems like I'm using filepath.Join in most places... @ryantriangles is it just failing to create the |
I have the same issue, no problems creating the Exo starts if I edit the json file to escape the paths manually. |
Could either of you paste me your |
It successfully creates one, it's just writing a Windows path as-is. The error is helpfully highlighted by GitHub's JSON highlighting. {
"server": {
"host": "localhost",
"port": 1234
},
"repository": "D:\temp\hello",
"syncInterval": 30,
"title": "My Wiki",
"remote": "origin",
"branch": "master"
} |
#18 is intended to fix this issue. |
Windows paths use
\
as the separator. When Exocortex writes its config file, it doesn't properly escape those slashes, meaning that when the config gets parsed each separator is interpreted as an attempt at writing an escape character, which always results in a fatal error.The text was updated successfully, but these errors were encountered: