Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Use new cabal-helper #1245

Closed
wants to merge 5 commits into from
Closed

Conversation

lukel97
Copy link
Collaborator

@lukel97 lukel97 commented May 5, 2019

This removes cabal-helper-wrapper, and so will open up the way for static binaries until hie-bios lands.
Also noticeably, it removes the build plugin since it relied on the old cabal-helper API: I plan on removing this in #1105 anyway as it is only used by the old JSON transport.

Please dogfood this a bit!

lukel97 added 2 commits May 5, 2019 16:39
Relied on old verison of cabal-helper
@lukel97
Copy link
Collaborator Author

lukel97 commented May 5, 2019

@alanz this is all using your work on new-cabal-helper with ghc-mod, should I create a PR to merge this into your fork?

@@ -32,7 +32,7 @@ spec = describe "behaviour on malformed projects" $ do
d ^. code `shouldBe` Nothing
d ^. source `shouldBe` Just "ghcmod"
d ^. message `shouldBe`
(T.pack "readCreateProcess: stack \"build\" \"--only-configure\" \".\" (exit 1): failed\n")
(T.pack "callProcessStderr: stack --stack-yaml=/root/build/test/testdata/badProjects/cabal/stack.yaml build --only-configure . (exit 1): failed\n")
Copy link
Collaborator

Choose a reason for hiding this comment

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

For the HaRe tests I copy certain projects to $TEMPDIR/testproj, and then work with that. This looks like a very brittle hard coded path.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I never even noticed the path, I just copied and pasted it verbatim. Will do a fuzzier expectation

@fendor
Copy link
Collaborator

fendor commented Aug 28, 2019

While the stability seems to be improved in general, it reopens #1264, probably since the patch for it was submitted after this pr had been opened.
Patch was in https://github.com/alanz/ghc-mod/pull/20/files (only the changes to ModuleLoader.hs)

@fendor
Copy link
Collaborator

fendor commented Aug 28, 2019

When you open haskell-ide-engine repository, you no longer get diagnostics for modules in the sub-package hie-plugin-api. Instead, it fails with the error message, when I open TypeMap.hs:

/home/user/Documents/haskell/bubba-hie/hie-plugin-api/stack.yaml: getFileStatus: does not exist (No such file or directory)

@infinisil infinisil mentioned this pull request Aug 31, 2019
@NickSeagull
Copy link

What's missing for this to be merged? I see that the cabal job has passed, but the others are failing with some allow-newer errors. I guess this is due to the version bump of cabal-helper?

I'd love to help in order to get this merged

@lukel97
Copy link
Collaborator Author

lukel97 commented Sep 17, 2019 via email

@lukel97
Copy link
Collaborator Author

lukel97 commented Nov 19, 2019

This is done in hie-bios

@lukel97 lukel97 closed this Nov 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants