NetLogo / Galapagos

NetLogo model simulation visualizer (Beak) and the netlogoweb.org website 🐢
https://netlogoweb.org/
Other
62 stars 43 forks source link

Visually indicate when a plot has invalid code #308

Open TheBizzle opened 9 years ago

TheBizzle commented 9 years ago

When you click a button that contains bad code (including prims that don't yet compile), they don't indicate that they're invalid, and they throw an error on use. Instead, they should be unclickable, and they should show specifically that the code is invalid (like how the text gets red in JVM NetLogo).

nicolaspayette commented 9 years ago

Plots with non-compilable code should probably give some visual indication of that too.

TheBizzle commented 9 years ago

Agreed. I wasn't clear about this when I originally wrote the ticket, but any widget with invalid code (slider, plot, button, monitor, chooser) should be shown as broken.

TheBizzle commented 8 years ago

With the introduction of c435db994cf7e4384927c2ca534fd45a6f27e0bc, this issue has been solved for all widgets but plots.

LaCuneta commented 5 months ago

If a plot has a runtime error it is squelched in the runWithErrorHandling() method from set-up-widgets.coffee to avoid interrupting the model. It should be displayed to the user in some non-intrusive way as it would be in NetLogo desktop. This is slightly different than the compile time error display, but I think it makes sense to address both at the same time.