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
Non-deterministic compilation errors on startup #176
Comments
Can you try running our snapshot elisp and removing any mention of refactor-nrepl from your profile? Our middleware dep is injected automagically, just like for CIDER, in the latest snapshot and that might give you a more favorable ordering. |
/cc @SevereOverfl0w played with this a bit. I can only reproduce the problem if I run At this point I can only offer a workaround to enable clj-refactor for yada. Set
This enables building and caching ASTs at start up. Note that Also if you set Please also note that these variables can be set on a per project basis: http://endlessparentheses.com/a-quick-guide-to-directory-local-variables.html If you are interested in the context, reasons etc of this problem more details available on #134. |
That's really helpful, thanks. I'll try the workaround - I don't mind the extra wait for the ASTs. As an aside, I was chatting about this issue with @bbatsov last night (in person, we were both at f(by) in Minsk), and he suggested it was due to the AST building. |
Feel free to re-open if the workaround doesn't work, but I'm closing this for now as there isn't much we can do about AST generation since that's delegated to tools.analyzer. Long term we're hoping to find a more robust solution, but for the time being none of us has the time to write a new analyzer. |
Expected behavior
(dev)
should work without errorsActual behavior
(dev)
sometimes yields errors.See clj-commons/byte-streams#25
A sample:
Steps to reproduce the problem
Ensure
[refactor-nrepl "2.2.0"]
is in your.lein/profiles.clj
Using emacs, CIDER 0.14.0,
clojure-jack-in
Type
(dev)
from the REPLEnvironment & Version information
clj-refactor.el and refactor-nrepl version information
2.2.0
CIDER version information
0.14.0
Include here the version string displayed when
CIDER's REPL is launched. Here's an example:
Leiningen or Boot version
2.7.1
Emacs version
25.1.1
Operating system
Arch Linux - kernel version 4.8.11-1-ARCH x86_64
The text was updated successfully, but these errors were encountered: