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

cider-jack-in: nil #949

Closed
manuel-uberti opened this issue Jan 16, 2015 · 4 comments
Closed

cider-jack-in: nil #949

manuel-uberti opened this issue Jan 16, 2015 · 4 comments

Comments

@manuel-uberti
Copy link
Contributor

I'm trying to start CIDER via cider-jack-in on a .clj file I'm working on. This is the error I got (I turned on debug-on-error):

Debugger entered--Lisp error: (void-function nil)
  nil()
  cider-jack-in(nil)
  funcall-interactively(cider-jack-in nil)
  #<subr call-interactively>(cider-jack-in nil nil)
  ad-Advice-call-interactively(#<subr call-interactively> cider-jack-in nil nil)
  apply(ad-Advice-call-interactively #<subr call-interactively> (cider-jack-in nil nil))
  call-interactively(cider-jack-in nil nil)
  command-execute(cider-jack-in)

I'm using CIDER 0.9.0snapshot (package20150114.512)

@manuel-uberti
Copy link
Contributor Author

My bad. I was operating on a single clj file without a lein project.

@bbatsov
Copy link
Member

bbatsov commented Jan 16, 2015

Actually, this is probably a bug. CIDER should work even without a project. The regression was likely introduced by f01b6f9. //cc @pandeiro

@pandeiro
Copy link
Contributor

@bbatsov Sure, I'll get this. If we don't find a project.clj nor build.boot, should we just default to lein?

@pandeiro
Copy link
Contributor

Or would some kind of cider-default-build-tool var be appropriate, which could be consulted?

Edit: OK I'm going to try adding a custom var called cider-default-project-type, which defaults to "lein". PR forthcoming.

pandeiro added a commit to pandeiro/cider that referenced this issue Jan 16, 2015
Custom var is used with `cider-jack-in` when connecting to
project-less REPLs.
pandeiro added a commit to pandeiro/cider that referenced this issue Jan 16, 2015
Custom var is used with `cider-jack-in` when connecting to
project-less REPLs.
bbatsov added a commit that referenced this issue Jan 22, 2015
[Fix #949] Define custom cider-default-project-type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants