-
Notifications
You must be signed in to change notification settings - Fork 114
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
VSCode: Cannot find "Watch Ghcid output" command #239
Comments
This was removed in 9bd2a47. I should have cleaned up the documentation too. Although I'm wondering why it was removed, since that would have been rather handy for me some of the time. Were you hoping to use it? What's your use case for it? If so, I'll reinstate it and release. |
Hi @ndmitchell, so right now I am using obelisk project in my windows machine (WSL) and want to develop using VSCode installed in my windows. So whenever we run moreover, it has been discussed in obsidiansystems/obelisk#184 (comment) also. |
I have been using this feature actually (when using vscode). |
Slightly off-topic: I'd love to have this feature on Emacs (which is what I use right now) as well. :-) |
@srid that is good to hear. I think this feature is very useful. |
Have you seen the |
Would be nice to have this option back. The problem faced here is when you have to enter a specific environment with nix or direnv for example which default "Start ghcid" doesn't seem to handle well. The watch option seems good to have since it's pretty environment agnostic relative to the way to generate the ghcid.txt. |
@ndmitchell That setting doesn't seem to know how to run complex CLI like the following (which I use in a non-obelisk project):
|
Yea. And sometimes I do want to leave ghcid running in a terminal inside tmux, so that I can reattach to my project environment from elsewhere without being tied to VScode. |
Okay I am able to work around this issue by putting the long CLI in a script file, and then using that script file in the vscode settings. Works now! (However I don't see error inlines; but that's outside the scope of this issue ...) |
I think the tmux argument is compelling. Definitely something to add back. PR welcome, or I'll get to it one day. |
Great! I wonder if we should resurrect this feature but provide a somewhat different (arguably improved) UX. That is:
Then the extension can work automatically by reading the configured file, instead of the user having to manually open the said file. Just a suggestion, though. |
Makes a lot of sense @srid - I still like the menu entry "open with this file" (since that's the primitive), but having configuration options that let everyone just "start ghcid" makes a lot of sense. PR most welcome. |
I think having ghcid watch file output solves another problem - trying to start ghcid once and for all in a single project is often not possible. The test suite usually has a different set of dependencies, and ghcid gets confused. In emacs-land, where I usually work, I have to tell my ghcid integration to use a different target based on the directory the source file is in. |
All sounds great. Patches welcome. I suspect I'm not likely to get to this in the near term, since I've stopped using the ghcid extension in favour of ghcide where I can (somewhat to dogfood ghcide). |
Fix pending in #313 |
I tried running haskell project which create
ghcid-output.txt
and follow the instructions:Open ghcid.txt in VS Code as the active editor. Run the VS Code command (Ctrl+Shift+P) named "Watch Ghcid output".
but I can't find the
watch ghcid output
Does the command still there?
The text was updated successfully, but these errors were encountered: