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
{{ message }}
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
It would be super useful to have an argument in hie which when passed causes hie to start, load the project, typecheck files, report any errors and exit. This would allow one to diagnose problems with hie's operation without setting up a lsp client.
Observe a run on ghcide with no arguments:
$ ghcide
Starting ghcide (GHC v8.6)
/home/j/projects/upfind
[1/6] Finding hie-bios cradle
Cradle {cradleRootDir = "/home/j/projects/upfind", cradleOptsProg = CradleAction: default}
[2/6] Converting Cradle to GHC session
[3/6] Initialising IDE session
[4/6] Finding interesting files
Found 2 files
[5/6] Setting interesting files
[DEBUG] Set files of interest to: [NormalizedFilePath "./Setup.hs",NormalizedFilePath "./src/Main.hs"]
[DEBUG] Starting shakeRun (aborting the previous one took 0.00s)
[6/6] Loading interesting files
[DEBUG] Finishing shakeRun (took 0.00s, exception: thread killed)
[DEBUG] Starting shakeRun (aborting the previous one took 0.00s)
[DEBUG] Finishing shakeRun (took 0.15s, completed)
Files that worked: 2
Files that failed: 0
Done
The most important parts of this output to me are:
The root directory
The files of interest
The number of working and failed files
It might be the case that this already exists, if so then it would be great to:
Document this in the readme alongside searchable words like "debug" and "cli"