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

SublimeText launched from GUI doesn't find ocamlmerlin #11

Open
rebeccacremona opened this issue Jan 31, 2016 · 1 comment
Open

SublimeText launched from GUI doesn't find ocamlmerlin #11

rebeccacremona opened this issue Jan 31, 2016 · 1 comment

Comments

@rebeccacremona
Copy link

As mentioned in the SublimeREPL repo, "On POSIX system SublimeText launched from GUI does not inherit a proper environment. Often leading to problems with finding interpreters or not using the ones affected by changes in ~/.profile / *rc files".

Though this is a Sublime bug, it has the effect that Merlin often doesn't work for people who open their ml files using the Sublime GUI.... the ocamlmerlin binary often can't be found. The SublimeREPL folks have added a workaround to their plugin. It might be nice to do similar here.

Or, it might be worth documenting that users running into trouble when opening files from the GUI should manually set "ocamlmerlin_path" in their Merlin package user settings.

@cynddl
Copy link
Owner

cynddl commented Jan 31, 2016

Hi @rebeccacremona, thanks for reporting this issue.

Indeed, manually setting ocamlmerlin_path fixes this wrong behavior. I currently think that documenting the ocamlmerlin_path variable is easier than starting to update environment variables provided by ST, but will have a look at the solution from SublimeREPL.

Meanwhile, if you want to provide a solution or update the README file, your contribution is welcome. 😄

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