gama-platform / gama.graphical.modeling

The graphical modeling plugin developed for GAMA
5 stars 3 forks source link

Graphical Modeling: Error "Character expected \n" with a comment line #6

Closed tcquang closed 6 years ago

tcquang commented 7 years ago

Hello,

When adding a comment line ( // ) into the Gaml code box of an action or a reflex, I got an error "Character expected \n" as in the figure attached. But it is OK with the comments by / / I am using GAMA git version on Windows 10 64 bit. Thank you!

Quang image

ptaillandier commented 6 years ago

It seems to work for me. Maybe the error does not come from the commentary. Can try to delete the commentary and see if it is working without it?

tcquang commented 6 years ago

I just tested with new version of GM on GAMA continuous build version It' still not working for me. Please take a look on the diagram attached

Thank you!

models.zip

image

ptaillandier commented 6 years ago

I commited a fix. It should work now (just update the plugin).

tcquang commented 6 years ago

Dear Patrick, I just tested the new update of GM plugin, the issue seems to be not fixed.

  1. In the fist case, I wrote a comment line above a code line, it didn't know the variable var_a //test comments var_a <-var_a + var_a * 0.01;

  2. In the seconds case, when I put a blank line, it didn't show errors but it still shows red line on the top of the diagram. When I generated the gaml code it show errors as in the 3rd image

Thank you for your help! Best regards, Quang

[image: Inline image 2]

[image: Inline image 1] [image: Inline image 3]

On Fri, Jan 19, 2018 at 10:37 PM, ptaillandier notifications@github.com wrote:

Closed #6 https://github.com/gama-platform/gama.graphical.modeling/issues/6.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gama-platform/gama.graphical.modeling/issues/6#event-1432681178, or mute the thread https://github.com/notifications/unsubscribe-auth/ALRxbFgtcHy5AxwKWQvK-amMQq8xivHNks5tMLbWgaJpZM4MmWvh .

ptaillandier commented 6 years ago

You are rigth

tcquang commented 6 years ago

Dear Patrick, Thank you very much for fixing, It works well know, Best regards,

Quang

On Tue, Jan 23, 2018 at 3:32 PM, ptaillandier notifications@github.com wrote:

Closed #6 https://github.com/gama-platform/gama.graphical.modeling/issues/6 via 0e897d3 https://github.com/gama-platform/gama.graphical.modeling/commit/0e897d3fe0f9f23d78af8887e59cf851f7d01f33 .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gama-platform/gama.graphical.modeling/issues/6#event-1436797349, or mute the thread https://github.com/notifications/unsubscribe-auth/ALRxbJuZu2tU_XKBu89_YgQWGCrRK1wgks5tNZk4gaJpZM4MmWvh .