processing/processing

Tweak Mode broken by // comment at end of code

クローズ

#6,168 opened on 2021/03/15

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Java (1,540 件のフォーク)batch import
help wantedtweak

Repository metrics

Stars
 (6,431 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド