ccrma / chuck

ChucK Music Programming Language
http://chuck.stanford.edu/
GNU General Public License v2.0
803 stars 128 forks source link

comments causing crash (or not being formatted as comments unless followed by an empty line) #369

Closed mhzareei closed 12 months ago

mhzareei commented 12 months ago

Hello again, When trying to run some older codes on miniAudicle I started getting crashes and realised that it was due to the commented text not being formatted as such unless an empty line is added after:

Screenshot 2023-09-19 at 9 49 41 AM

Adding the shred above would give me this error: comment error.txt

Adding a line would fix the colour coding of the comment and in turn the crashing issue.

Screenshot 2023-09-19 at 9 49 48 AM
gewang commented 12 months ago

thanks for the report! FYI the above code will crash miniAudicle but not CLI chuck, unless you try to eval it from string Machine.eval("//comment");

this appears related to #366, and a fix has been pushed in bd4dc38; the fix will be part of chuck-1.5.1.4

mhzareei commented 12 months ago

Great thanks!