-
Notifications
You must be signed in to change notification settings - Fork 7
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
Unable to start a local REPL with the created configuration #369
Comments
Could you see if the file |
BTW if you're getting a CLJS error and your project has no CLJS in it anywhere, the only thing I can think of is that you have CLJS stuff in a user profile somewhere that's injected into all your projects. Could that be the case? |
It seems it was something in the .lein profile which caused the error. But, in projects with clojurescript and profiles it fails too. Thanks. |
I've tested on a project that requires cljsbuild and it fails to open a local repl with the same message. |
Can you give me an example of a |
project.clj
profiles.clj
and the repl error (a local repl created by right clicking on project.clj and to run with leiningen)
And, as you mentioned in other message, I've tried to access /private/var/folders/xp/5sxgh_ln64z9lqrhbb5ncl740000gn/T/form-init2991208912110418539.clj but it does not exist. |
BTW one thing you can do to work around this problem until I can look at it is to start your repl on the command line with |
So I created a project with
Can you confirm that |
Yes. It is what I've been doing. I use the terminal plugin and two remore Juan Manuel 2014-05-24 11:18 GMT+02:00 cursiveclojure [email protected]:
|
The
|
Hmm, that's very strange, I don't know why it fails for me. Still, I can reproduce the Cursive issue so I'll try to figure that out. |
This appears to be a problem with |
I managed to integrate a local REPL into Cursive the normal way using the following leiningen template : https://github.com/jacksonja/clj-cljs-weasel-template. It uses lein-cljsbuild and weasel (not austin) to provide a working browser REPL. So the steps to use it the normal steps :
Not sure to understand why this one works but the other attempts (mine included) fail. |
This template works because it doesn't put |
You're welcome. |
Ran in to the same problem today with a completely new project created with lein new app some-name. Any progress on this issue? |
I'm not sure, since this seems to be a downstream issue with |
Darn, this just bit me too! I'll try to run from the command line |
I am not sure if this is acceptable for anyone or will work for you or not but this is what I did to solve it. Edit: I got the same problem after I played with cljs for a bit and then got back to simple CLJ projects using "lein new" - nothing to do with CLJS within that project but still got bit by it. |
Any progress on this issue? |
No - this is a downstream issue. cemerick closed the associated issue because after 18 months no-one had offered a patch to fix it. It's annoying for Cursive users, but realistically I don't know that toolchain at all, and people who do still couldn't figure it out, so I can't invest that much time trying to fix it myself. If anyone else wants to I'll be delighted, though! |
Ok. Just a hunch, but this could be related to http://dev.clojure.org/jira/browse/CLJ-1544 (referenced from cemerick/austin#23). |
Hmm, nice catch - that does look plausible, since Cursive is AOT compiled and unfortunately since AOT is infectious in Clojure right now, that means that the nREPL etc that I'm using is also AOT compiled. I'll need to read that issue more closely to see if I can come up with a plausible explanation for what is happening and perhaps a fix. |
There's another pointer that it might be the same issue - CLJ-1544 has been rolled back for the moment because it causes an issue with Clojure 1.7 alpha 5, but only under JDK 7, not JDK 8. I almost certainly tried to use JDK 7 to reproduce the issue originally, and I could reproduce the issue with |
CLJ-1544 was not rolled back because of a JDK-specific problem. We just want to get more clarity about the root problem and potential fixes. |
@puredanger Sure, but it seems like the issue with the patch could be reproduced on JDK 7 but not JDK 8, right? Anyway, just looking for similarities with this problem. |
No, that was an early (and wrong) assumption. |
today i had this issue, i rebooted intellij and it started working again |
Similar/related issue? My workaround is the same as above:
|
I experienced this issue when I had Parameters set to "dev.clj", a file that did not exist. The issue was resolved by clearing that value. This is the Parameters field under Common Options in the Run/Debug Configuration for a Local Clojure REPL. |
This hit me too, in my I got around it by commenting out |
I have a project doing this. It's a fresh project created with: lein new re-frame +handler +re-com +re-frisk Starting nREPL server... Process finished with exit code 1 |
I create a REPL configuration by right clicking on project.clj
And I get the following error:
which has no sense, because it is no a clojurescript project.
lein repl works perfecty on the command line.
My configuration for leiningen is the brew installed one and its path is:
with neither leiningen home nor leiningen jar overriden.
The text was updated successfully, but these errors were encountered: