-
-
Notifications
You must be signed in to change notification settings - Fork 15
add message to prompt use of save_frame() #172
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
Conversation
Thanks for the PR, @zztkm ! This is a good start. You found the right file and line of code to change to improve the error message. There is one more change you need to make. Look at the previous line of code: if py5.bridge.check_run_method_callstack(): The original error message you received was "UnboundLocalError: local variable 'py5' referenced before assignment". That error message came from the above Do you see how you would get that UnboundLocalError exception on that line if You'll need to move one line of code for this next change. |
@hx2A Thanks for the Good advice. I've addressed it! I have one question. Should Currently, import is done in each function. |
The py5 imports should be done inside each function, as you've done here. This is perfect. One of the requirements of py5_tools is to provide a way for users to add jar files to the classpath or set JVM options. This must be done before the JVM is started. When you execute |
@zztkm , thanks for spotting the unused import and for noticing that other functions besides |
I see, so that was the reason. |
You are welcome! I'm happy you learned something doing this! |
#171
I would appreciate it if you could let me know if I have missed something.
backgroud: #170