Skip to content

Commit def63f4

Browse files
tomotognikit
authored andcommitted
fix: catch RecursionError in initialization
1 parent 9a86506 commit def63f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fortls/langserver.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,10 @@ def workspace_init(self):
14891489
pool.close()
14901490
pool.join()
14911491
for path, result in results.items():
1492-
result_obj = result.get()
1492+
try:
1493+
result_obj = result.get()
1494+
except:
1495+
result_obj = traceback.format_exc()
14931496
if isinstance(result_obj, str):
14941497
self.post_message(
14951498
f"Initialization failed for file {path}: {result_obj}"

0 commit comments

Comments
 (0)