Skip to content

Commit

Permalink
fix: catch RecursionError in initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoto committed Dec 8, 2024
1 parent 3cf8f29 commit 3c17071
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fortls/langserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,10 @@ def workspace_init(self):
pool.close()
pool.join()
for path, result in results.items():
result_obj = result.get()
try:
result_obj = result.get()
except:
result_obj = traceback.format_exc()
if isinstance(result_obj, str):
self.post_message(
f"Initialization failed for file {path}: {result_obj}"
Expand Down

0 comments on commit 3c17071

Please sign in to comment.