Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--error-file does not output the json diagnostics from GHC #326

Closed
jasagredo opened this issue Oct 3, 2024 · 1 comment
Closed

--error-file does not output the json diagnostics from GHC #326

jasagredo opened this issue Oct 3, 2024 · 1 comment
Labels
linear Created by Linear-GitHub Sync

Comments

@jasagredo
Copy link

What happened?

I'm running the following:

ghciwatch --command="cabal repl --repl-options=-ddump-json test-dev" --watch .  --error-file=ghc-out.json

When I introduce errors in the file, I see the json diagnostics from GHC pop-up in the ghciwatch process, but the file ghc-out.json is empty.

I was planning on using this as an activateCommand for alloglot, in the same spirit as the one described on its readme:

"alloglot.activateCommand": "ghcid --command=\"cabal repl --ghc-options=-ddump-json\" --output=\"ghc-out.json\""

What did you expect to happen?

No response

Steps to reproduce the issue

Run the above command, and cat ghc-out.json.

The version of ghciwatch with the bug

1.0.1

@github-actions github-actions bot added the linear Created by Linear-GitHub Sync label Oct 3, 2024
@jasagredo
Copy link
Author

I found this PR and reverse-engineering what it seemed to do I found out that it can be integrated into static-ls via outputting normal error output to ghcid.txt. So probably I don't need the feature above to be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

1 participant