D_Parser
D_Parser copied to clipboard
Infinite loop on a specific case scenario
When I need to type override
it starts an infinite loop. I tried debugging but the symbols aren't accessible in visual studio because it says the code is optimized even though I asked it to build in debug mode.
Here's where: https://github.com/etcimon/botan/blob/master/source/botan/pubkey/algo/dsa.d#L85
Type override in front of the function and it freezes.
The reason for why it's hanging is that you're debugging it - only then, no timeout for completion is set, which then may reveals you hangs like these :) So for productive operation, I'd just not debug it. I was able to reproduce the freeze though.
The bug doesn't show up if you compile in release? I've went to debug it after I had first experienced it on the linux release of mono-d
It shouldn't do so - but perhaps I just need to hack in such timeout-intermediary method when gathering method overloads as well :)
If it helps prevent the freeze it's good as well.
I was actually thinking about an option to disable showing auto-complete box when pressing space or dot, so that I can do it with CTRL+SPACE manually .. That would help avoid showing it when it's mostly unnecessary, even if it's to keep the editing zone clean while typing.
Lol, the freeze seems to be caused by the reference highlighter once again.. somehow it's not getting finished with handling imports properly.
The static if
could be the cause, it's not evaluating properly in the syntax highlighter.