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

No completion for unsourced namespace #40

Open
abo-abo opened this issue Oct 2, 2013 · 3 comments
Open

No completion for unsourced namespace #40

abo-abo opened this issue Oct 2, 2013 · 3 comments

Comments

@abo-abo
Copy link

abo-abo commented Oct 2, 2013

I have a buffer with contents:

#_(ns test)
(Double/)

With point behind /, I get proper completion. Note that nothing has been sourced yet.

But if I uncomment the first form, I get Namespace not found error when I try to complete.
After sourcing, the problem disappears.

It's a bit of a nuisance, since at the point when I need completion,
the code isn't in the valid state. And I'm currently just editing
within org-babel source blocks, so I need to drop out of source block etc.

@purcell
Copy link
Member

purcell commented Oct 2, 2013

Yep: in general, completion doesn't work well if the namespace isn't defined yet. I don't know if there's a practical strategy for dealing with this.

@Profpatsch
Copy link

I kind of solved it with this hook:

(add-hook 'clojure-mode-hook (lambda ()
                               (when (member 'cider-mode minor-mode-list)
                                 (cider-eval-ns-form))))

I don’t know if there are any bad side effects yet.

@MalloZup
Copy link

MalloZup commented Aug 5, 2019

autogenerated with https://github.com/MalloZup/doghub: issue inactive since 450 days. Please update the issue or close it

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

4 participants