-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: increase default Python recursion limit #207
Comments
Maybe the workspace is too large and the stack is too deep? |
I probably solve this question temporarily.
Then I restart the workspace, the Modern Fortran wouldn't issue any errors! Thanks for your excellent software for Fortran programmer! |
Yeah, I don't think we can change the recursion limit since it would greatly affect the performance and memory consumption of the language server. I don't remember the specifics on this but when I run into this around a year ago there was a non-trivial reason as to why I could not change it for fortls. Having said that I don't think this is a bug. It could be considered a feature request, but for me to consider it seriously I would need to know the size of the code base and some info for a MWE. I don't feel comfortable changing the recursion limit (by default 1000) unless there are practical usecases and fortls' performance has been benchmarked before and after. |
Describe the bug
Server initialization failed. Message: Error sending result: '<fortls.parse_fortran.FortranFile object at 0x7fddce1c8d60>'. Reason: 'RecursionError('maximum recursion depth exceeded while calling a Python object')'
To Reproduce
Initialising Language Server for workspace: *.F with command-line options: --enable_code_actions, --hover_signature, --use_signature_help, --lowercase_intrinsics, --nthreads=4, --incremental_sync
Alternatively, you can try and describe the steps that you followed to encounter the bug:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots & Animations
If applicable, add screenshots or GIF/MP4 animations to help explain your problem.
Setup information (please complete the following information):
The text was updated successfully, but these errors were encountered: