Hi, cheers for the wonderful keynote at MuniHac. I tried using hie-core
on a sample project generated with cabal
, and then on hie-core
's own source. The former works, the latter doesn't. Poking around I found that the difference is in *hie-stderr*
. In the sample project I have:
Starting hie-core
/home/carlo/code/haskell/first
Starting LSP server...
Started LSP server in 0.00s
[DEBUG] Set files of interest to: [NormalizedFilePath "/home/carlo/code/haskell/first/src/First.hs"]
[DEBUG] Starting shakeRun (aborting the previous one took 0.00s)
[INFO] Opened text document: file:///home/carlo/code/haskell/first/src/First.hs
#!/usr/bin/env bash
if [ "$1" == "--interactive" ]; then
pwd
echo "$@"
else
ghc "$@"
fi
/home/carlo/code/haskell/first
res
(ExitSuccess,"",["-w","-v0","-fbuilding-cabal-package","-O0","-outputdir","/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build","-odir","/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build","-hidir","/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build","-stubdir","/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build","-i/home/carlo/code/haskell/first/","-i/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build","-i/home/carlo/code/haskell/first/src","-i/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build/autogen","-i/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build/global-autogen","-I/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build/autogen","-I/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build/global-autogen","-I/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build","-optP-include","-optP/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build/autogen/cabal_macros.h","-this-unit-id","first-0.1.0.0-inplace","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","/home/carlo/.cabal/store/ghc-8.6.5/package.db","-package-db","/home/carlo/code/haskell/first/dist-newstyle/packagedb/ghc-8.6.5","-package-db","/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/package.conf.inplace","-package-id","base-4.12.0.0","-package-id","lens-4.17.1-5KWPr0cbJPU7JFmHfmTuKl","-XHaskell2010","First","-hide-all-packages"],"")
["-w","-v0","-fbuilding-cabal-package","-O0","-outputdir","/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build","-odir","/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build","-hidir","/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build","-stubdir","/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build","-i/home/carlo/code/haskell/first/","-i/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build","-i/home/carlo/code/haskell/first/src","-i/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build/autogen","-i/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build/global-autogen","-I/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build/autogen","-I/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build/global-autogen","-I/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build","-optP-include","-optP/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/build/autogen/cabal_macros.h","-this-unit-id","first-0.1.0.0-inplace","-hide-all-packages","-Wmissing-home-modules","-no-user-package-db","-package-db","/home/carlo/.cabal/store/ghc-8.6.5/package.db","-package-db","/home/carlo/code/haskell/first/dist-newstyle/packagedb/ghc-8.6.5","-package-db","/home/carlo/code/haskell/first/dist-newstyle/build/x86_64-linux/ghc-8.6.5/first-0.1.0.0/package.conf.inplace","-package-id","base-4.12.0.0","-package-id","lens-4.17.1-5KWPr0cbJPU7JFmHfmTuKl","-XHaskell2010","First","-hide-all-packages"]
40
(["First"],0)
[DEBUG] Finishing shakeRun (took 1.90s, completed)
Starting hie-core
/home/carlo/code/haskell/forks/daml
Starting LSP server...
Started LSP server in 0.00s
[DEBUG] Set files of interest to: [NormalizedFilePath "/home/carlo/code/haskell/forks/daml/compiler/hie-core/src/Development/IDE/LSP/CodeAction.hs"]
[DEBUG] Starting shakeRun (aborting the previous one took 0.00s)
[INFO] Opened text document: file:///home/carlo/code/haskell/forks/daml/compiler/hie-core/src/Development/IDE/LSP/CodeAction.hs
res (ExitSuccess,"cat: '': No such file or directory\n",[],"")
[]
0
([],0)
[DEBUG] Finishing shakeRun (took 0.28s, completed)