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
Fails to lookup opam installed libs #26
Comments
Btw. a command to print the lookup paths would be nice. (e.g. `diagnose``) |
Thanks a lot for the feedback ! |
I'm not sure the problem is only here. For example in one directory of my projects it works:
But in emacs when I edit a file in this directory in doesn't complete. Do you have any ints on how to debug in emacs ? |
Should be fixed by 34618b7. Can you confirm ? |
Yes it works now when I'm outside a project on the command line. However it doesn't work in my emacs. It seems I get only auto-completions available from the current project (taken from When I try to complete a non-project identifier (e.g.
...
|
Ok now I would really like to fix that. However it seems that
|
Ah sorry, I've been trying to reproduce but without success, this is quite weird :/ |
Wouldn't it be easier to add an |
I think that asking your users to add an opam repository to test things is less convenient (e.g. it will try to update all the other tools). |
err, yeah, I was focused on having the repo work properly, but that's the best solution in the meantime, right. Sorry for the trouble+noise, bad timing :). Adding the opam files to the repos now |
There's still a problem:
|
Ok, that should be fixed now ! Thanks for your patience and for the reports :) |
Ok. So I still have the same problem, the only completions I get are the ones per project (from the |
It does work in the terminal though, it's really in emacs that it doesn't work. |
|
Then you should feed it your file as stdin |
This is really weird. The calls for
|
To be clear, the first call works, the second one doesn't. |
It must be something in your emacs environment variables then. Depending on how you run emacs the proper OPAM initialization might not be done there ? |
Could you try |
returns
It returns
|
Mmmh I see you use |
Ok so here I have:
But:
So that must be the issue. We need to find a way so that we can work correctly on osx with these damned environment variables. |
What I like about the approach mentioned is that you don't have to kill your emacs whenever you switch. Would it be an absolute horror to wrap the ocp-{index,indent} calls with emacs' shell commands ? This would also kill these lines from my .emacs (I thought that by having them would solve the environment problem, not the dynamic switching though, but I didn't think ocp-index would itself call
|
Ok so here's my proposal. By having
in your
This also allows me to get rid of that |
Sounds perfect ! Thanks a lot for helping investigate and solve this :) |
Your welcome. Btw. could we have the same for |
Yup, I intend to do that too |
According to @samoht
ocp-index
should look intoopam
installed libs. This doesn't seem to be the case here:But
with
The text was updated successfully, but these errors were encountered: