-
Notifications
You must be signed in to change notification settings - Fork 39
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
Critic timeout #108
Comments
Sure, this is a good idea. The 25 seconds is fairly arbitrary. I didn't want Critic processes hanging around forever, especially if they've hung or are otherwise not needed. Some related thoughts below: A config parameter would be straightforward. Alternatively, I could add a "large document mode" for files > N lines that would automatically increase this value. The other piece worth considering is the delay between making changes and kicking off diagnostics. When editing, the Navigator doesn't run critic (or PerlNavigator/server/src/server.ts Line 228 in fc14c47
Related, the Navigator doesn't kill processes that are no longer needed. If you are editing a file (with typing gaps of at least 1 second), the Navigator will keep spinning off subprocesses to run |
Thanks for thinking about this. A "large document mode" is interesting and makes sense. Or perhaps values which are proportional to the size of the document? But in any case there still might be times the values need to be overridden somehow. I currently have In the meantime I have increased the timeout locally and everything is working well. |
This is probably mostly for my benefit, but may help others who have hit the same problem. To change the timeout I run:
Change the path to match where the code is installed for you. |
I have some large modules where critic times out and so no problems are reported.
The timeout is currently set to 25 seconds.
Would it be possible to make this configurable? This could be either per diagnostic or as a common value.
The text was updated successfully, but these errors were encountered: