-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add component root directory #166
Conversation
3973d66
to
8bc55af
Compare
Hi, i am testing this version in the hls repo and i've got no error about the missing header, but neither compiler warnings or errors:
The ghc options now has |
@jneira Thanks for the feedback! |
With |
I tried hls (current master, based on multi-rebase) at first but then i observed the result of calling directly could be the difference |
I dont know. Do you have a branch for it? |
Mmm, i am not sure if i understand. I am in the project root dir of haskell-language-server, after checking out actual master:
|
@fendor the last commit makes I am gonna test it using as a lib in hls. |
I've adapted hls to this branch and it can load ghcide modules! great work 👍 |
@jneira what is the next step? |
@mpickering Are you fine with merging this? |
Generally good but please don't modify the interface to |
d5b7fc9
to
d88195a
Compare
src/HIE/Bios/Environment.hs
Outdated
@@ -167,6 +167,17 @@ addCmdOpts cmdOpts df1 = do | |||
liftIO $ hPutStrLn stderr "cannot set package flags with :seti; use :set" | |||
-} | |||
|
|||
makePathsAbsolute :: FilePath -> DynFlags -> DynFlags |
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.
Should this be part of the public API? Probably, but then I think a better name could be helpful?
875e8d1
to
e199358
Compare
Add makePathsAbsolute functions to normalise GHC flags. Wire root directory for each cradle. Add component root to output of `flags` CLI command. Rename and expose makeDynFlagsAbsolute.
e199358
to
89d2881
Compare
Looks good with a CHANGELOG entry as this may break ghcide. |
ChangeLog is updated! |
Thanks. Great patch. Merge as you feel fit after squashing etc. |
Supersedes #157
Implements the suggestion to wait until GHC is done parsing its flag to modify certain filepaths in DynFlags if they arent already absolute paths.
Con: Ghc options now may contain relative filepaths.
Pro: fixes bugs.