-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Run maven et al. in jobs if available #18
Comments
I think from about here vim-classpath/autoload/classpath.vim Line 125 in 88a7e8a
'path' on the correct buffer. The original function would probably have to return &l:path unmodified
|
Changing the behavior from deterministic to nondeterministic is a massive penalty. I could maybe get behind using the stale cached version while the new one is computed (though that only mitigates the nondeterminism) and/or providing an opt-in async API to give users enough rope to hang themselves.
Am I reading this correctly that you want to provide backwards compatibility by returning a bogus value? I do not approve. My initial inclination is to add an optional callback argument to |
Agreed, fair enough. Not sure what the "opt-in async API" should look like—a variable that says "prefer aysnc over sync"?
Well, that certainly simplifies making a prototype :) I do agree that doing something bogus is not good. One option you mentioned is the stale cache—but what happens when this doesn't exist? Probably for a prototype I would just leave
Argh, I forget about neovim everytime... I take it compatibility is a goal? |
I was thinking exposing a lower level function that the user could invoke directly, but we'd still need an option to disable the built-in behavior. Cross that bridge when we come to it.
The first time should always block, probably.
Story of my life. Neovim does need to be supported. You could keep the |
Alright, I'll at least mock-up a function that does one of the three, and we can go from there?
Not sure I follow: are you saying if there's no cache, do a blocking load ( |
This would greatly alleviate startuptime costs when jobs are available, at the penalty of not syncing path with the results until after the job completes.
Thoughts? I think I can work up a start.
The text was updated successfully, but these errors were encountered: