You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cloning an object ending with a number create an exception #228
Describe the bug
Cloning an object ending with a number create an exception
To Reproduce
Steps to reproduce the behavior:
Go to the "Object dictionary" pane
Rename an object to add a number at the end
Clone this object
See error
Version used
Latest
Expected behavior
Being able to clone the object without an exception message (or a message that cloning an object with a name ending with a number is not allowed)
It is because the regex at the top here tries to detect numbers and increment them.
The bug is triggered because it does not work with words that ends with numbers, only numbers separated by space.
It tries to parse the word+number as a int and that fails causing the crash
Activity
nimrof commentedon Jul 25, 2026
Sorry for late reply.
Confirmed
It is because the regex at the top here tries to detect numbers and increment them.
The bug is triggered because it does not work with words that ends with numbers, only numbers separated by space.
It tries to parse the word+number as a int and that fails causing the crash
https://github.com/CANopenNode/CANopenEditor/blob/main/EDSEditorGUI/InsertObjects.cs#L162-L171
I will try to fix, but if anyone else would like a go please go ahead.