-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Theia send canonical paths to the adapter #13883
Comments
@jonahgraham Can you clarify? |
Theia should try to send canonical paths to the adapter as this issue may affect all adapters (not just cdt-gdb-adapter). The issue is (extracted from the log) that sometimes Theia is sending e.g., from the log in eclipse-cdt-cloud/cdt-cloud#42 Initial
Later
As you can see in the former it uses VSCode has a similar problem a long time ago, see microsoft/vscode#43959 |
@jonahgraham I'm not sure this has anything to do with Theia being inconsistent. If I read the code correctly, the only way we would update the path from a lower-case |
In the end, the concrete reason we send lowercase drive letters to the debug adapter is because we get the uri from a string map key in Interesting also PR descriptions like this one: microsoft/vscode#83060. I guess the VS Code folks are well aware that their approach is broken, but it's too late to fix it. |
One solution would be to not replace the source of the breakpoint with the one that the debug adapter returns from the |
A bit of a backgrounder on working with file systems in node: https://nodejs.org/en/learn/manipulating-files/working-with-different-filesystems |
That sounds close to what is happening. What I see is insert breakpoint on
This makes Theia open the The adapter side needs a fix in eclipse-cdt-cloud/cdt-gdb-adapter#330. Whether Theia make a similar change on the client side of the adapter I leave up to you. |
@jonahgraham happy if you have a solution that works for the moment. I have this issue on my "todo" list, but it's on the back burner for the moment because the right thing to do is not clear to me at the moment. |
Feature Description:
When Debug between theia and cdt-gdb-adapter, there is a problem with the path theia sends to the adapter, it is not only about cdt-gdb-adapter, maybe another adapter has the same problem, the discussion detail is eclipse-cdt-cloud/cdt-cloud#42 (reply in thread), should theia send canonical paths to the adapter?
The text was updated successfully, but these errors were encountered: