-
Notifications
You must be signed in to change notification settings - Fork 120
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
Exception has occurred: SystemExit 3 #253
Comments
Possibly related, but the exception is different and the error happens every time, regardless if it is a syntax error or not: #213 |
Hi @filipre, this seems to be a VS Code issue: https://stackoverflow.com/q/52372810. It's not related to #213. |
Thank you for your reply. The Stackoverflow thread shifts the question to "Why does the CLI debugger finishes with the exit code 3"? VS Code will always throw an exception, when python finishes with an error code. I think that's the correct behavior. For example, this code should not throw an exception sys_exit(0) But this one should sys_exit(1) I could disable "Uncaught Exceptions" but I do not want this because I would also ignore exceptions in my program code. The exact line that causes the system exit run_module_as_main(options.target, alter_argv=True) and options.target is Is there something else I could provide to figure out the root of the problem? |
I created https://github.com/filipre/vscode-debugger-exit-3-bug to debug the issue Here are some observations:
Maybe after changing a file, |
this error all about library's trigger method. there is a default "trigger_reload" method and it raises SystemExit when file has been changed.
or `def your_trigger_method(fn): pass reloader.trigger_reload = your_trigger_method` |
Which library do you mean? functions-framework or something else? |
Hi!
Sometimes (see below), I get the following exception when I run the functions framework in the VS Code debugger after detecting a code change.
Uncaught Exception
The exception is only thrown "sometimes" but when it's thrown, it happens multiple times in a row for each "change" or whenever I save a file. I do not see a pattern when it is thrown and when not. Do you have an idea where this could be coming from and why it only happens sometimes? I first thought it is related to broken code, but that does not seem to be the case.
VS Code Terminal
launch.json
file:Version
I'm happy about any pointer to the right direction!
The text was updated successfully, but these errors were encountered: