microsoft / microsoft/debug-adapter-protocol
Clarify separator format in path
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1.8k
- Forks
- 173
- Avg merge
- 7d 7h
- Merged PRs (30d)
- 2
Description
Currently it is not clear what path separator should be used by a client.
For example, nvim-dap currently defaults to using /, but with adapters like netcoredbg running on windows it will expect \ in source.path. The mismatch causes breakpoints to not be set correctly.
The client could set the path separator based on the system its running on, but that breaks down if client and debugger are running on different machines for remote debugging.
One option could be to mandate in the spec that debug adapters must be able to recognize / separators.
Given that FAT16,etc. and NTFS forbids / in filenames (https://en.wikipedia.org/wiki/Filename#Comparison_of_filename_limitations), there would be no ambiguity - in that it can never be a part of the filename.
But I'm not sure if this won't also break down if there are 3 systems involved: client, debug-adapter, debugger and if the debug-adapter runs on a different system than the adapter.
Seems to be somewhat related to https://github.com/microsoft/debug-adapter-protocol/issues/182
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading this issue and the related debug-adapter-protocol issue #182, then compare how clients, debug adapters, and debuggers handle path separators across local and remote setups. Done means the protocol specification states an unambiguous separator rule that covers the systems involved.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend-api-design
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100