You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My understanding is that the GHC version used to build haskell-code-explorer needs to match the GHC version of the project you're indexing (eg see #16 (comment)).
This wasn't initially clear to me when initially trying to get haskell-code-indexer working, and using a haskell-code-indexer built with the wrong version of GHC lead to confusing error messages, eg
2019-03-20 17:18:19.736738839 EDT : [error] Error while indexing component li
KSLx7jSwdIM:
MonadRandom-0.5.1.1-9vmCiRoafqTKSLx7jSwdIM is unusable due to missing dep
primitive-0.6.4.0-1mvPxVOk6Q6KOkWCZxqESf transformers-0.5.5.0 transform
(use -v for more information)
Because of this, would it make sense to adopt Haskell IDE Engine's convention for executable naming? They append each executable with the GHC version used to build it, eg:
$ ls hie*
hie hie-8.2.1 hie-8.4 hie-8.4.3 hie-8.6 hie-8.6.2
hie-8.2 hie-8.2.2 hie-8.4.2 hie-8.4.4 hie-8.6.1 hie-wrapper
As you can see they also build one version of hie without the GHC version appended, but I'm not sure we even need that.
This would also make it really easy to have lots of different versions of haskell-code-indexer on your machine at once.
The text was updated successfully, but these errors were encountered:
I will implement a GHC version check in haskell-code-indexer. It should be simple because the first line of the setup-config file from the dist directory of each Cabal package contains the version of GHC, e.g., "Saved package config for haskell-code-explorer-0.1.0.0 written by Cabal-2.4.0.1 using ghc-8.6".
I agree it makes sense to adopt Haskell IDE Engine's convention for executable naming.
My understanding is that the GHC version used to build
haskell-code-explorer
needs to match the GHC version of the project you're indexing (eg see #16 (comment)).This wasn't initially clear to me when initially trying to get
haskell-code-indexer
working, and using ahaskell-code-indexer
built with the wrong version of GHC lead to confusing error messages, egBecause of this, would it make sense to adopt Haskell IDE Engine's convention for executable naming? They append each executable with the GHC version used to build it, eg:
$ ls hie* hie hie-8.2.1 hie-8.4 hie-8.4.3 hie-8.6 hie-8.6.2 hie-8.2 hie-8.2.2 hie-8.4.2 hie-8.4.4 hie-8.6.1 hie-wrapper
As you can see they also build one version of
hie
without the GHC version appended, but I'm not sure we even need that.This would also make it really easy to have lots of different versions of
haskell-code-indexer
on your machine at once.The text was updated successfully, but these errors were encountered: