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
Running a sketch in Tweak mode throws 'expecting "class", found TweakModeServer ' if the code ends with a // -style comment. A /* */ -style comment does not cause the issue. This issue appears only to be with a // comment at the end of the code.
void setup() {
size(512, 512);
}
void draw() {
strokeWeight(20);
}
// this comment throws 'expecting "class", found TweakModeServer'
Environment: Processing 3.5.4 on macOS 10.15.7.
The text was updated successfully, but these errors were encountered:
By adding an extra blank line after the last line of code, or by using a /* */-style comment instead of a //-style comment, you should be able to use Tweak Mode without encountering this error.
One possible solution to the Tweak Mode error you mentioned earlier would be to modify the Tweak class file to handle //-style comments at the end of the sketch. Specifically, you would need to modify the code injection process to ensure that it is not affected by these comments. if you can help me find the class I will be happy to fix it
Running a sketch in Tweak mode throws 'expecting "class", found TweakModeServer ' if the code ends with a // -style comment. A /* */ -style comment does not cause the issue. This issue appears only to be with a // comment at the end of the code.
Environment: Processing 3.5.4 on macOS 10.15.7.
The text was updated successfully, but these errors were encountered: