trice icon indicating copy to clipboard operation
trice copied to clipboard

`trice insert` does not assign a new ID, when a Trice was copied with ID and no `trice clean` was performed.

Open rokath opened this issue 5 months ago • 1 comments

Describe the bug See title

To Reproduce Copy any Trice line with ID and do NOT perform trice clean but just do trice insert. This will not change the ID of the copied or original Trice. As a result, a wrong location information is possible.

Expected behavior The same ID is allowed to occur only once in the user source code to guarantee correct location information.

To Do Write a test first.

rokath avatar Jul 10 '25 12:07 rokath

The compiled result will work well, but the to a 2nd location copied Trice will show the 1st location information instead. By the way: What happens, if some code lines inserted, to the location information of the following Trice(s) if no trice clean was performed before? Write a test for that.

rokath avatar Nov 13 '25 09:11 rokath