nim-lang / langserver

The Nim language server implementation (based on nimsuggest)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

infinite loop on windows

veksha opened this issue · comments

in getProjectFileAutoGuess while loop can be infinite on Windows

while path.len > 0 and path != "/":

path will always be "D:" for example and loop never breaks.

fix:

+    if path == dir:
+      break
     path = dir

here:

path = dir

good catch!