atom-julia-client icon indicating copy to clipboard operation
atom-julia-client copied to clipboard

JULIA_PKGDIR (partly) ignored

Open tkoolen opened this issue 7 years ago • 3 comments

I use a non-standard JULIA_PKGDIR. If I start atom from the command line after having set the JULIA_PKGDIR environment variable, the REPL does pick it up (Pkg.dir() points to the correct location), but all other Juno functionality is broken. For example, if I try to open a package in a new window, the list of available packages is empty.

This seems to be due to

https://github.com/JunoLab/atom-julia-client/blob/838f726ea3019b7213387d31261c5cbc326a8f3a/lib/misc/paths.coffee#L14-L16

which is solely based on JULIA_HOME and doesn't take JULIA_PKGDIR into account.

tkoolen avatar Mar 11 '18 22:03 tkoolen

Also an issue on the 0.7 branches. I don't think there is a way to do this without reimplementing the whole package path handling from Pkg3, unfortunately.

pfitzseb avatar Jun 29 '18 08:06 pfitzseb

Not sure how this would change for 0.7, but is it not possible to do something like https://github.com/JuliaEditorSupport/julia-vscode/blob/58afeec6b5244c8ae4358c8ce7000b5121751001/src/packagepath.ts#L15-L17

tkoolen avatar Jun 29 '18 11:06 tkoolen

Possibly, but that'd require starting Julia :) Probably not too big a deal though since startup time is pretty good now.

pfitzseb avatar Jun 29 '18 11:06 pfitzseb