D_Parser icon indicating copy to clipboard operation
D_Parser copied to clipboard

Infinite loop on a specific case scenario

Open etcimon opened this issue 10 years ago • 6 comments

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.

etcimon avatar Dec 08 '14 22:12 etcimon

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.

aBothe avatar Dec 09 '14 12:12 aBothe

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

etcimon avatar Dec 09 '14 12:12 etcimon

It shouldn't do so - but perhaps I just need to hack in such timeout-intermediary method when gathering method overloads as well :)

aBothe avatar Dec 09 '14 12:12 aBothe

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.

etcimon avatar Dec 09 '14 12:12 etcimon

Lol, the freeze seems to be caused by the reference highlighter once again.. somehow it's not getting finished with handling imports properly.

aBothe avatar Dec 09 '14 12:12 aBothe

The static if could be the cause, it's not evaluating properly in the syntax highlighter.

etcimon avatar Dec 09 '14 13:12 etcimon