When the user name contains an apostrophe, Continue is unable to access the config file
Before submitting your bug report
- [X] I believe this is a bug. I'll try to join the Continue Discord for questions
- [X] I'm not able to find an open issue that reports the same bug
- [X] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: Windows 11
- Continue version: 0.84
- IDE version: Jetbrains Webstorm 2024.3.1.1
- Model: N/A
Description
When I open Webstorm, I get an error detailing an issue with accessing my config file (see logs). I presume this is just a result of the apostrophe in my user name not being escaped properly. I've tried to add a project specific config, but that gave me a different err (see logs).
To reproduce
- Create a windows user with an apostrophe in the file path
- Open Jetbrains webstorm while signed in as the new user
- Install Continue
- Click the cog to open config, and observe the error notification in the bottom right
Log output
----- Whenever I click the settings cog -----
Error handling message of type openFile: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\Users\XXXXO'XXXX\.continue\config.json
----- When opening webstorm, with a project-specific config file (outside of the path with the apostrophe) -----
Error handling message of type getWorkspaceConfigs: java.net.URISyntaxException: Illegal character in path at index 24: file://C:/Dev/Repos/XXXXX/nextjs/XXX.continuerc.json
------ Continue Logs -------------
Nothing of note in these logs
Its likely related to https://github.com/continuedev/continue/issues/3545 and not related special character in your username. I got the same error with alpha numeric username, no special characters in it. Are you using remote docker DevContainer?
Fixed by https://github.com/continuedev/continue/pull/3608
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!