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
scriptcs -debug without -repl does not configure REPL correctly. #990
Comments
The
Right now the |
OK, well, we need to do something about the UX here then. To any user this will just appear as the bug I have described. Shall we just prevent REPL when |
the easiest would be just treat single debug argument same way as single log argument - and force repl https://github.com/scriptcs/scriptcs/blob/dev/src/ScriptCs/Argument/ArgumentParser.cs#L30 |
That line of code redundant, since the command factory now falls back to REPL when no script name is passed. This PR gets rid of it - #944 |
...that is why |
In which case, I think the bug stands. Either we disable REPL when in debug mode, or we have to fix it. |
but does it set the REPL flag? the flag is important since that's how the module chooses the appropriate engine. |
here
Right now this flag is missing, and everything fails. ArgumentParser sets it if the only argument is |
Ah I see. Yes, that's the problem then. |
can you make sure the PR in #944 handles this scenario? |
Yes, will do. |
This is not new in 0.14. It is pre-existing in 0.13.3.
Leads to all kinds of problems, e.g.
Without
-debug
, there is no error.The text was updated successfully, but these errors were encountered: