Using a number in a property name crashes Xojo

Every time I try to use a number in a property name, Xojo crashes. Is this a known bug?
For example: 1stLineIndent

No, it should instead show a Warning “The name must be a legal identifier: 1stLineIndent”
I think identifiers must start with a-z and A-Z.

Which Xojo IDE Version?

2 Likes

version 2023 r4

Maybe Clear Caches and restarting the IDE can fix it?
If not, please report it using a sime example project or describe how it can be reliable reproduced.

That’s true. They can contain numbers and glyphs after the first character though (except punctuation).

2 Likes

Make sure you report that.

Yup, that crashes nicely.

1 Like

When I try to add a Property and name it 1st… the IDE shows a ToolTip below it that says: “The name must be a legal identifier”, how do you manage to name a property like that?

Using Xojo2023r4 on a M2 mac with Sonoma.

same as @AlbertoD, and it is refused and reverts back to “untitled”

1 Like

Same behaviour for me, no crash.
André, how/where are you trying to add the property? I guess we’re not doing the same thing.
In my case, I tried adding a new property to an existing window, and pasted the example (1stLineIndent).

2 Likes

Exactly

1 Like

https://tracker.xojo.com/xojoinc/xojo/-/issues/75351

1 Like

in order to avoid such problems and other naming conflicts, I use to prefix any names with a personal identifier, for instance ‘im’.

For instance ‘imFirstLine’ or ‘im1stLine’, etc.

Which also helps to quickly identify my properties in sorted lists while debugging.

1 Like