Bug(?): Orphaned brace breaks workflow parsing (C#)

Studio version: 24.10.9 (C# project)

If there is an orphaned opening brace { in any activity, the whole workflow up to that point breaks with CS0106 errors.
Ironically, the activity with the orphaned brace does not have a validation error.
It’s not a bug per se, as it’s clearly a “user error”, but more of an unintended behavior when the user does make this error.

Repro:

  1. Create a new workflow.
  2. Put any activities in it.
  3. Add a LogMessage activity (or assign or anything else) with this as the variable value: {"Break here"
  4. Marvel in the sea of validation errors :slight_smile:

As you can see in the picture below, it is not easy to find the error causing char if you don’t know what you’re looking for (diffs for the win).

EDIT:
For lost souls trying to search for this in the future by error message:
CS0106: The modifier 'public' is not valid for this item

Hi @andrzej.kniola,
This was fixed a while ago, but unfortunately it didn’t get backported to 24.10.x.
Could you get a newer version of Studio(25.x.x) and try again? I’ve just tried it myself and it works as expected now. Please see the image attached.
Thank you!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.