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

Wrong completion after a require with alias #21

Closed
arichiardi opened this issue May 30, 2016 · 1 comment
Closed

Wrong completion after a require with alias #21

arichiardi opened this issue May 30, 2016 · 1 comment

Comments

@arichiardi
Copy link

arichiardi commented May 30, 2016

It is very good to be able to inspect vars with dirac.

I know it is alpha/early stage, I just want to report one thing.

selection_008

If I require a namespace with an alias, then auto-completion shows symbols starting with the alias but no the namespace symbols (we have had the same problem on clojurescript.io btw).

@arichiardi arichiardi changed the title No completion after a require Wrong completion after a require with alias May 30, 2016
@darwin
Copy link
Member

darwin commented May 30, 2016

Good point. I'd like to support aliases at some point. But for this I need a reliable library to parse ns forms, which would give me back information about aliases. I haven't found any library to do that yet.

Currently I have to parse ns name at least, and I use Sierra's clojure.tools.namespace.parse library for that: https://github.com/binaryage/dirac/blob/master/src/implant/dirac/implant.cljs#L64

@darwin darwin closed this as completed in bcc95d4 Jun 5, 2016
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

2 participants