I'm amazed to read this. I have been coding for years, even large projects and I can't remember Lazarus crashing on me, certainly not in recent years.I had it crash twice yesterday but, I agree it is very rare for it to crash. I know the reason of the crash is the same in both cases: codetools, it crashes when asked to locate a particular function (there is nothing special about the function other than codetools not "liking" it.)
At the moment, I use a Win 7 VM.
...
Win 7 may be the problem. But as well, there can be a problem with VMWare or the graphic-driver. Windows has some very nasty and very fuzzy issues. They are indeed rare, this is why it is so hard to catch them. All in all it is a really good operating system. However, I will say bye bye to it because I refuse Win 11.
At the moment, I use a Win 7 VM.
...
Win 7 may be the problem. But as well, there can be a problem with VMWare or the graphic-driver. Windows has some very nasty and very fuzzy issues. They are indeed rare, this is why it is so hard to catch them. All in all it is a really good operating system. However, I will say bye bye to it because I refuse Win 11.
I am not sure, what codetools means. However the word suggests, that it may be similar to a situation I came across several times:Most features that need to "understand" pascal.
When you paste, does your code get re-indented?
I like developing by using existing code. For this, I copy whole methods and paste them to create something new with their lines.
There is a lot to be aware of: Give them a new name, care for a not existing name, place it somewhere into context with other functions within the class. Be aware of begin and end in every loop. Very helpful is that I made the IDE drawing a line under every method. If the "end;" is under this line, it is a severe warning of messed loop.The lines are the highlighter / that is not codetools.
In this work, it happens frequently that anything gets messed. e.g. I forget to delete a
functiion TMyClass.myMethod: TmyIdea; or a begin end block is lost. Or the click-event from one button shall be copied to the event for another button and this is messed.
Sure, in this case the compiler is puzzled. Worse, if I try to double-click a button to jump to its click-event to fix it. In the best case, the IDE says "I cannot hop there". In the worst case, ... bye bye IDE, bye bye all changes of the last hour... How to file it? It is gone!