-
Notifications
You must be signed in to change notification settings - Fork 301
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
Fable CLI 3.7 watch stales #2727
Comments
Note: invoking the CLI manually |
Ah, I see. Does watch mode doesn't work at all (no JS files are generated) or you just don't see the logs on screen? For Fable 3.7 I tried to bring back the one-line logs because they're very nice to see the progress of compilation: But it may happen they don't play well with this CliWrap tool. I'm trying to disable the logs in CI where usually rewriting the same line is not possible. Maybe is there a way to also detect when the tool is being called as a subprocess? Lines 79 to 91 in ac9bec8
|
I think they are generated, I need to check further, but CliWrap allows me to set env vars for the process perhaps I can add the CI env var, I'll test in a couple of hours and let you know |
Hmm, interesting. So I guess that trying to move the cursor when being called from CliWrap is breaking/freezing the process somehow. Maybe opening an issue about that in CliWrap? Or you may need to spawn the process with its own shell. |
Had a talk with CliWrap's author on discord he was kind enough to give this issue a glance
Interestingly it doesn't seem to throw or crash the process (maybe it does? I just know that the program keeps running waiting for the command to finish)
You might be able to use this one instead of the CI env var possibly?
I Will try to investigate further over the weekend if I have a chance in the meantime I can workaround this issue with the CI env var, I'll let you know if I find something |
Thanks for checking with CliWrap author @AngelMunoz! I've added the |
Description
Hey! sorry to bother again
When invoking the fable cli
3.7.0-beta-*
in watch mode through a library likeCliWrap
it never goes into watch mode this behavior is not observed inv3.6.3
using the same conditionsRepro code
Here's a reproduction repository: https://github.com/AngelMunoz/fable37-cli
Expected and actual results
I expect to observe the same behavior as Fable
3.6.3
, it should compile and start watching for file changesRelated information
dotnet fable --version
:3.7.0-beta-009
Windows 11
The text was updated successfully, but these errors were encountered: