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
First error is:
I used stack new command for making new project directory. And I opened folder at vscode.
Extension successfully worked with app/Main.hs and src/Lib.hs which were made by stack new command.
But Extension doesn't worked with test/Spec.hs and Setup.hs.
Error Message Is: Fail on initialisation for "/home/junyoung/Haskell/new-project/test/Spec.hs". Could not obtain flags for: "test/Spec.hs". This module was not part of any component we are aware of. Component: ChLibName ChMainLibName with source directory: ["src"] Component: ChExeName "new-project-exe" with source directory: ["app"] To expose a module, refer to: https://docs.haskellstack.org/en/stable/GUIDE/ If you are usingpackage.yamlthen you don't have to manually expose modules. Maybe you didn't set the source directories for your project correctly.
same error messages for Setup.hs.
I think this extension only work with code that makes executable file, How can I use this extension with Setup and test code files?
And the Second Error is:
I made my own module and named it NewModule. Placed It in same director(lib) and imported it in Lib.hs like this.
moduleLib
( someFunc
) whereimportNewModule
Then a red underline appeared at "import NewModule"
Error message is: Could not find module ‘GS’ Use -v (or:set -vin ghci) to see a list of the files searched for
but ghci and stack build worked normally. Why this error message happens?
The text was updated successfully, but these errors were encountered:
You can not use this extension for files like Setup.hs. However, the loading of test-components is a known issue and discussed in haskell/haskell-ide-engine#1564.
TLDR; Execute stack test before opening the project with hie, then it ought to work.
Hi, I'm using Haskell Language Server extension 0.0.37 on Arch Linux. I'm using ghc-8.8.2 with stack(lts-15.3).
And I installed hie-8.8.2 by Aura(https://github.com/haskell/haskell-ide-engine#installation-on-arch-linux)
First error is:
I used stack new command for making new project directory. And I opened folder at vscode.
Extension successfully worked with app/Main.hs and src/Lib.hs which were made by stack new command.
But Extension doesn't worked with test/Spec.hs and Setup.hs.
Error Message Is:
Fail on initialisation for "/home/junyoung/Haskell/new-project/test/Spec.hs". Could not obtain flags for: "test/Spec.hs". This module was not part of any component we are aware of. Component: ChLibName ChMainLibName with source directory: ["src"] Component: ChExeName "new-project-exe" with source directory: ["app"] To expose a module, refer to: https://docs.haskellstack.org/en/stable/GUIDE/ If you are using
package.yamlthen you don't have to manually expose modules. Maybe you didn't set the source directories for your project correctly.
same error messages for Setup.hs.
I think this extension only work with code that makes executable file, How can I use this extension with Setup and test code files?
And the Second Error is:
I made my own module and named it NewModule. Placed It in same director(lib) and imported it in Lib.hs like this.
Then a red underline appeared at "import NewModule"
Error message is:
Could not find module ‘GS’ Use -v (or
:set -vin ghci) to see a list of the files searched for
but ghci and stack build worked normally. Why this error message happens?
The text was updated successfully, but these errors were encountered: