ndmitchell / ghcid

Very low feature GHCi based IDE
Other
1.13k stars 114 forks source link

cannot supress ghc warnings #340

Open andrewufrank opened 3 years ago

andrewufrank commented 3 years ago

I try to avoid some warnings (especially -Wno-deprecations) and I have put the ghc option in my stack.yaml (going into .cabal file) and I do not see the warning in stack build but I cannot get rid of it in the problem panel ghcid produces automatically. my .ghci file is:

:set -fwarn-unused-binds 
:set -fwarn-unused-imports 
:set -Wno-deprecations
:set -fno-missing-signatures

:set -isrc
:set -itest

but I still get the warning.

I get additionally messages: ghcide compiled by GHC 8.10 failed to load packages: : cannot satisfy -package completeMeta-0.0.1.1 (use -v for more information). Please ensure that ghcide is compiled with the same GHC installation as the project.

I have compiled stack build ghcide in the same project, assuming the same 8.10.4 GHC.

I assume I misunderstand something. What is wrong?

ndmitchell commented 3 years ago

This project is called ghcid - are you mistaking it for the ghcide (with the trailing e)? Note that using ghcide is no longer recommended, and you should use the Haskell Language Server directly https://github.com/haskell/haskell-language-server