i managed to get it to work again by restarting the IDE but I would still like to know what could have caused the strange behavior.
Very hard to tell....
In general: Codetools does cache certain information.
If that cache goes wrong, then unexplained errors happen.
What causes the cache to be wrong? No idea.
How to work around? Either
- restart the IDE
- edit text/source above the error pos (and/or at the start of the unit),
and trigger a look-up (completion or jump to declaration ...) of the edited source. That usually clears any cache for sources below the edit.
-----------
As for getting more info: Menu: View > Ide Internals > Show Code Tool node info.
(Though I can't help you with interpreting it.... sorry)