You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code displays the error ' on 'switch' has been suppressed, which is perhaps related to this problem without displaying the text of the actual error that caused the problem.
The full and correct error message is The local variable noise may not have been initialised. Note that a problem regarding missing 'default' on 'switch' has been suppressed, which is perhaps related to this problem. Without this context, the 'on switch has been suppressed' message will be confusing, especially to newer programmers.
The full message is temporarily displayed in the status line above the console when typing the line that first attempts to use 'noise' (println(noise); above), but not on running the program.
Expected Behavior
I would expect the full message to be displayed in the console on running. Or perhaps more helpfully just the first sentence The local variable noise may not have been initialised. since the switch error is a bit misleading.
Your Environment
Processing version: 4 beta 8
Operating System and OS version: MacOS 11.6.5 (Bug Sur)
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.
Created by: jwoLondon
Description
The following code displays the error
' on 'switch' has been suppressed, which is perhaps related to this problem
without displaying the text of the actual error that caused the problem.The full and correct error message is
The local variable noise may not have been initialised. Note that a problem regarding missing 'default' on 'switch' has been suppressed, which is perhaps related to this problem
. Without this context, the 'on switch has been suppressed' message will be confusing, especially to newer programmers.The full message is temporarily displayed in the status line above the console when typing the line that first attempts to use 'noise' (
println(noise);
above), but not on running the program.Expected Behavior
I would expect the full message to be displayed in the console on running. Or perhaps more helpfully just the first sentence
The local variable noise may not have been initialised.
since the switch error is a bit misleading.Your Environment
The text was updated successfully, but these errors were encountered: