You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We frequently received issues about "java.lang.IllegalArgumentException: URI is not hierarchical" during "Initialize workspace". The root cause is that the user's settings like java.settings.url or java.format.settings.url point to an illegal url format, and JLS just fails silently.
I think we can improve two things:
Since this error is fatal, we should report a more explicit notification to tell user what's happening and guide user how to fix it.
We should catch this exception in JLS, and avoid breaking the startup of language server.
The text was updated successfully, but these errors were encountered:
It definitly helps if the client side could provide some validation logic to guard these settings. Also it's better to provide some samples of these settings in the description section.
Currently these url settings accept a file path or a url, that's too flexible and error-prone to configure manually. To be honest, I didn't really know how to properly configure these settings at first.
See #2260 (comment) and microsoft/vscode-java-debug#1148 (comment).
We frequently received issues about
"java.lang.IllegalArgumentException: URI is not hierarchical"
during "Initialize workspace". The root cause is that the user's settings likejava.settings.url
orjava.format.settings.url
point to an illegal url format, and JLS just fails silently.I think we can improve two things:
The text was updated successfully, but these errors were encountered: