-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
"Failed to start language server" error when IDE installation path contains #
#1124
Comments
Thanks for your report @Wezz19. I am able to reproduce the issue when using the Arduino IDE from such a path, but didn't have any problems when running Arduino Language Server directly from the command line with equivalent parameters. So this leads me to believe the issue is here in the Arduino IDE 2.x code base rather than in the Arduino Language Server code base. |
No. Syntax coloring is done by |
This is caused by the |
Great instructions, thanks!
It's not a Windows-specific problem. I can reproduce it on macOS.
There may be a different reason.
PluginDeployerEntryImpl {
originId: 'local-dir:../plugins',
pluginId: 'vscode-arduino-tools',
_type: 0,
map: Map(1) { 'package.json' => [Object] },
changes: [ 'PluginVsCodeDirectoryHandler' ],
acceptedTypes: [ 1 ],
currentPath: '/Users/a.kitta/dev/git/arduino-ide/plugins/vscode-arduino-tools/extension',
initPath: '/Users/a.kitta/dev/git/arduino-ide/plugins/vscode-arduino-tools',
resolved: true,
resolvedByName: 'LocalDirectoryPluginDeployerResolver',
_rootPath: '/Users/a.kitta/dev/git/arduino-ide/plugins/vscode-arduino-tools'
},
1124.mp4The LS works in other source files: 1124_02.mp4 |
From the LS logs:
This bug might belong to another issue tracker. |
I can also see that the URI is incorrectly encoded. Maybe @cmaglie can advise:
Here the URI must be
and NOT
|
Ref: arduino/arduino-ide#1124 Signed-off-by: Akos Kitta <[email protected]>
fix: URL path encoding
Closes #1124 Signed-off-by: Akos Kitta <[email protected]>
@kittaakos What I meant with "no colors" is this: VS here where the IDE (zip version) is run from a path with no special characters By the way, I think you forgot to edit the last line from your comment 8h ago. You probably meant this:
Not that it probably makes any difference anymore but just wanted to mention it =) |
Thanks for the prompt reply. I will check it on Windows. I did not see any issues with the coloring on macOS.
Nice catch. I update it. 👍 |
I am still seeing errors on Windows. This correctly works after the go-lsp fix:
But the Arduino LS fails to publish the diagnostics from
I could not reproduce the coloring issue. I tend to split up this issue into two parts:
|
Closes #1124 Signed-off-by: Akos Kitta <[email protected]>
@Wezz19, could you please help us and try the tester build? I could reproduce the language server issues on both macOS and Windows. It's fixed, but I could not figure out what's causing the missing syntax coloring issue because I could not reproduce it. If you're willing to help, the PR is #1811, and you can find documentation about the beta testing here: https://github.com/arduino/arduino-ide/blob/main/docs/contributor-guide/beta-testing.md#beta-testing-guide. Thank you! |
Thanks for the quick reply, @Wezz19. I cannot reproduce it. The tester build works fine on my Windows machine when there is a Apparently, you have some other issues. The screenshot from #1124 (comment) shows there is no I would appreciate some info from you. If you have time, please share with us.
1124_02.mp4
|
Now, I can reproduce it. You have a # in the path to the IDE2 and not a # in the path to the sketch. (From here: #1124 (comment))
|
There are two separate issues here:
So this comment 👇 (#1124 (comment)) is also accurate and valuable. Thank you!
|
I could not find any easy way to provide a workaround for this flaw in IDE2. See why: eclipse-theia/theia#12064 (comment).
Here is the follow-up issue: #1815 #1811 fixes the bug when the sketch path contains a |
Closes #1124 Signed-off-by: Akos Kitta <[email protected]>
#
Describe the problem
The IDE is otherwise working. Verify, upload and serial monitor works normally.
To reproduce
Place a '#' in the IDE folder name and start the IDE.
Expected behavior
If '#' in the IDE folder name can't be supported in Windows due to limited support in other OS's then a notification to the user should make it clear that the IDE folder name contains an unsupported symbol.
Otherwise since the IDE seems to be running normally except for the language server then maybe it can be fixed to support '#' symbols in windows at least.
Arduino IDE version
nightly-20220628
Operating system
Windows
Operating system version
10
Additional context
Issue checklist
The text was updated successfully, but these errors were encountered: