-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support workspaces as symlinks and symlinks within a workspace
Fix #639
- Loading branch information
Showing
4 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit ca95f48
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.
I was running into a problem where even absolute path names (from compile_commands.json file) were getting prefixed with root path. i.e. file '/path/to/file.foo'
will become '/path/to/root//path/to/file.foo'
In debugging why my setup stopped working after I upgraded to latest, I found this commit to be the potential reason why.
I noticed there are times real.size()
is 0 and the code then concatenates root with the path here:
path = root + path.substr(real.size());
Adding the real.size() check and concatenating only when non-zero seemed to fix my issues.
Thanks for a great server implementation.
Should this be conditional on
real.size()
being non-zero? Looks like this check was there before the change.