-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
ocaml layer without opam #7312
Comments
I'm not sure what you mean here. What problem? Is there some reason you can't just exclude the packages causing problems? That's the basic mechanism in Spacemacs for using only parts of a layer. |
I mean, it looks like tuareg and utop needs opam, so if you exclude tuareg and utop, won't that work? |
Sorry that for the short problem report. Actually the ocaml layer works however the auto-completion offered by merlin does not. In the funcs.el file the opam-init function takes care that the directory containing merlin.el, etc. is added to the load-path by querying opam where it installed merlin. The merlin-mode itself locates the needed binary by either querying opam itself or letting the user set it via a variable. My simple workaround for this is to replace opam-init with:
where merlin-prefix is my merlin installation path. |
Okay. Is there a reason you need to set |
Let me clarify. The code you have commented out
While the code you have added
Is there a reason for the discrepancies? |
As far as I can see the opam-load-path as well as the opam-share are not needed if opam is not available. The merlin-command is need when merlin is installed manually instead of through opam: |
Okay, thanks. |
Also |
Fix is merged. |
It would be nice if the ocaml layer could be used without opam. A quick check shows that the problem is currently the opam-init. I would suggest adding some variables as alternatives for specifying other paths for the location of the merlin, etc.
The text was updated successfully, but these errors were encountered: