Skip to content
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

lein trampoline repl :headless blows up if a reboot clears /tmp directory #1396

Closed
kenrestivo opened this issue Dec 6, 2013 · 5 comments
Closed
Labels
Milestone

Comments

@kenrestivo
Copy link
Contributor

This is in 2.3.3, currently (I had to go back to 2.3.3 because of problems with pedantic in 2.3.4):

To reproduce:

  1. lein trampoline repl :headless in a project
  2. Reboot machine or otherwise clear /tmp
  3. lein trampoline repl :headless again in the same project
  4. Enjoy the assplosion:
Exception in thread "main" java.io.FileNotFoundException: /tmp/form-init3168213487887277968.clj (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at java.io.FileInputStream.<init>(FileInputStream.java:97)
    at clojure.lang.Compiler.loadFile(Compiler.java:7017)
    at clojure.main$load_script.invoke(main.clj:294)
    at clojure.main$init_opt.invoke(main.clj:299)
    at clojure.main$initialize.invoke(main.clj:327)
    at clojure.main$null_opt.invoke(main.clj:362)
    at clojure.main$main.doInvoke(main.clj:440)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at clojure.lang.Var.invoke(Var.java:419)
    at clojure.lang.AFn.applyToHelper(AFn.java:163)
    at clojure.lang.Var.applyTo(Var.java:532)
    at clojure.main.main(main.java:37)

Workaround is to run lein clean in the project, then lein trampline repl again.

@technomancy
Copy link
Owner

Do you have LEIN_FAST_TRAMPOLINE set by any chance?

@kenrestivo
Copy link
Contributor Author

Yes, I do.

@technomancy
Copy link
Owner

Thanks for the info. we'll try to get this fixed for 2.4.0, but I don't have a concrete timeline for that release yet.

@technomancy
Copy link
Owner

I'm unable to reproduce this problem; is anyone else seeing it?

@technomancy
Copy link
Owner

Never mind; I was clearing /tmp/lein* which did not include the relevant file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants