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

adapt default environment to julia version #33

Open
gdkrmr opened this issue Sep 4, 2020 · 2 comments
Open

adapt default environment to julia version #33

gdkrmr opened this issue Sep 4, 2020 · 2 comments

Comments

@gdkrmr
Copy link
Owner

gdkrmr commented Sep 4, 2020

lsp-julia-default-environment contains the julia version number and if we want to set it automatically, we have to query the julia version or similar.

The Julia version number can be queried via:

julia -e "println(VERSION.major, '.', VERSION.minor)"

or

julia -e "println(dirname(Base.load_path()[1]))"

#25 (comment)

@non-Jedi
Copy link
Collaborator

non-Jedi commented Sep 4, 2020

You could also do as we do with eglot-jl and let julia determine the appropriate project instead of doing it manually in elisp: https://github.com/non-Jedi/eglot-jl/blob/84cff9d6ef1643f3eac6c9d620cc1e380a9847d9/eglot-jl.jl#L27

@gdkrmr
Copy link
Owner Author

gdkrmr commented Sep 5, 2020

Thanks for the tip. I was wondering for a while, if there is any value in making this configurable. If you want to change the default environment with eglot-js, you just use an environmental variable, right?

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