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
Our usage of c-h (cabal-helper) works roughly the following: Find a project context, initialise the context, find cradle for a filepath and load it.
The first step, find a project context, decides the the project context based on the location of a cabal.project, stack.yaml and *.cabal files. If there is a tie, e.g. cabal.project and stack.yaml are found in the same directory, we do not specify whether this a cabal-v2 project or a stack project but rather let the implementation decide. Practically, due to the implementation in c-h, we prefer cabal-v2 over stack.
However, it is possible that users have only one of the two installed, not both, thus, we can specify that if you have no cabal-install, or stack, installed, we never select a cabal-v2 project, or stack project, respectively.
@bubba This is what I meant with "Check, if the user has the build-tools on the Path, before selecting a project type" in #48 (comment).
Do you want to tackle this?
Our usage of c-h (cabal-helper) works roughly the following: Find a project context, initialise the context, find cradle for a filepath and load it.
The first step, find a project context, decides the the project context based on the location of a
cabal.project
,stack.yaml
and*.cabal
files. If there is a tie, e.g.cabal.project
andstack.yaml
are found in the same directory, we do not specify whether this a cabal-v2 project or a stack project but rather let the implementation decide. Practically, due to the implementation in c-h, we prefer cabal-v2 over stack.However, it is possible that users have only one of the two installed, not both, thus, we can specify that if you have no
cabal-install
, orstack
, installed, we never select a cabal-v2 project, or stack project, respectively.Responsible code is the function:
haskell-ide-engine/hie-plugin-api/Haskell/Ide/Engine/Cradle.hs
Line 110 in dcf81a1
The text was updated successfully, but these errors were encountered: