Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@varungandhi-src is the note above still actual?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's still accurate. Sorbet has an extra flag
remove-path-prefixwhich is not accounted for here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So
scip-rubyis broken on Windows? Not a big deal, just curious how C++ folks get around with that. Why ProjectRoot is URI at all and not a path?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not supported on Windows. We haven't tried to build it on Windows, and there is no release binary for Windows.
Could you be a bit more specific here? It isn't clear to me what you're asking...
Windows paths can be in many different formats. Using a URI avoids downstream tooling having to deal with that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How C++ folks are normalizing paths to be cross-platform.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally it isn't an operation that makes sense, because the set of allowed characters in path components is different. E.g. you can have a backslash inside a component on Linux but not on Windows IIUC. There's also the question of case-sensitivity which varies across filesystems (not OSes).
If one really wants, one can use string replacement or similar based on what the exact requirements are...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The exact requirement is to have machine independent format in SCIP files. Storing absolute paths is probably not compatible with this use case.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That applies to most other fields of SCIP but not this one. For this particular field, it's not meant for the Sourcegraph backend, it's meant for any other tools in case the index is moved around/generated somewhere other than the project root. E.g. the
scip snapshotsubcommand from the scip CLI can generate sources annotated with occurrence information -- it needs an absolute path to locate the source code.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaking absolute project paths may be a security issue. Maybe I am just paranoid.