Skip to content
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

Fix #3047 #3092

Merged
merged 9 commits into from
Aug 14, 2022
Merged

Fix #3047 #3092

merged 9 commits into from
Aug 14, 2022

Conversation

July541
Copy link
Collaborator

@July541 July541 commented Aug 11, 2022

It is because of the difference between hs-source-dirs: ./ and hs-source-dirs: ., take /user/project/Lib/A.hs as example,

hs-source-dirs: ./ hs-source-dirs: .
project path /user/project/./ /user/project/.
absolute project path /user/project/ /user/project
canonicalized project path /user/project /user/project

The canonicalized project path will be used as the prefix for /user/project/Lib/A.hs

Canonicalized it to prevent dropping one more character.

@July541 July541 requested a review from jneira as a code owner August 11, 2022 14:16
@July541
Copy link
Collaborator Author

July541 commented Aug 11, 2022

/cc @andrewufrank

@fendor
Copy link
Collaborator

fendor commented Aug 11, 2022

Excuse me for this drive-by review, I was just looking at it and found the usage of canonicalizePath might be tricky.

@July541
Copy link
Collaborator Author

July541 commented Aug 11, 2022

Excuse me for this drive-by review, I was just looking at it and found the usage of canonicalizePath might be tricky.

I'll try to evaluate the usage of canonicalizePath, at least find an alternative one.

Copy link
Collaborator

@fendor fendor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, awesome!

@July541 July541 added the merge me Label to trigger pull request merge label Aug 14, 2022
@mergify mergify bot merged commit 49373fd into haskell:master Aug 14, 2022
sloorush pushed a commit to sloorush/haskell-language-server that referenced this pull request Sep 12, 2022
* Make path canonicalized

* Update extra-source-files

* Replace with normalise

* Change to a more detailed log

* Comment patch detail

* 2 spaces indent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants