-
Notifications
You must be signed in to change notification settings - Fork 235
v2.0.0-preview.6 fails with OmniSharp Error: System.InvalidOperationException: This operation is not supported for a relative URI. #1104
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
Comments
@ant-druha does Intelij offer the ability to see the payloads of the requests that are being sent to and from it via the language server protocol? I get the feeling that the issue here is that that is sending a relative path for the "rootPath" property of the @david-driscoll @mholo65 this is a solid reason for OmniSharp/csharp-language-server-protocol#181 |
The path is absolute. Attached the dump file. |
Thanks for the context @ant-druha and apologies for the issues here - it was a particularly large change that went into preview.6 Would you mind trying a build from master? I did make a change in the exact spot that threw the exception and am curious if the issue is already fixed. |
Sure @TylerLeonhardt Actually, could you advise how do I release the build package to try? Thanks. |
Here you go 😄 let us know how it goes @ant-druha! |
Thanks! But, unfortunately, same issue.
|
Sorry that last one didn't fix it - but I'm fairly confident this one will, @ant-druha! This comes from #1110 |
@TylerLeonhardt that did it! It fixed the reported issue. Unfortunately, I'm getting different error now, related to protocol messaging. My client gets unexpected content in incoming message:
Need to investigate, may be some headers have changed. But anyway the initial issue is resolved. Please feel free to close this issue, thanks! |
@ant-druha The issue you are seeing is probably related to the the C# LSP implementation sends a interface ServerCapabilities {
...
/**
* The server provides code actions. The `CodeActionOptions` return type is only
* valid if the client signals code action literal support via the property
* `textDocument.codeAction.codeActionLiteralSupport`.
*/
codeActionProvider?: boolean | CodeActionOptions;
...
} |
@mholo65 I've updated lsp4j library to latest one and it worked. Thanks 👍 |
@ant-druha so it sounds like you'll be unblocked and intellij-powershell will be able to use the next Preview? 😊 |
Yes, this great! Not sure about bundled it yet, though. As this will not work with 5 and older versions. I might need to provide some hint for them. |
FWIW, the single telemetry data point we get from the vscode extension shows that almost no one is using v3 or v4 within their editor. They might have v3 or v4 on a server somewhere, but they don't seem to be using it with the vscode extension. Have you seen something else? The PSReadLine we need only supports v5.1+ so we have no choice here and across the board said we won't support it. You could try using the |
Should work with 5.1 and up. (5.0 hasn't been around for a while, since 5.1 was a mandatory upgrade) |
@ant-druha have you given this another go? We've changed quite a bit under the hood so you should have a better experience. |
@ant-druha this should be working now. I'm gonna close this but let me know if you still see the issue! |
Full trace is
EditorServices-IJ-2.log
Start-EditorServices-EditorServices-IJ-2.log
The text was updated successfully, but these errors were encountered: