sublimelsp / LSP-julia

Julia support for Sublime's LSP plugin using LanguageServer.jl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to connect LSP-julia "permission denied"

Tetsuro-Ishida opened this issue · comments

I got the error "permission denied" when trying to connect LSP-julia to my Julia environment. I have Julia installed in Applications folder, and symlinked to "/usr/local/bin". I've also set "julia_executable_path": "/usr/local/bin", as mentioned in the instruction page.

The troubleshooting message:

# Troubleshooting: julia
## Version
 - LSP: 1.28.0
 - Sublime Text: 4169
## Server Test Run
 - exit code: -1
 - output
[Errno 13] Permission denied
## Server Configuration
 - command
[
  "$julia_exe", 
  "--startup-file=no", 
  "--history-file=no", 
  "--project=$server_path", 
  "--eval", 
  "using LanguageServer; runserver()"
]
 - shell command

/usr/local/bin --startup-file=no --history-file=no "--project=/Users/ishidatetsurou/Library/Caches/Sublime Text/Package Storage/LSP-julia/languageserver" --eval "using LanguageServer; runserver()"
 - selector
source.julia

 - priority_selector
source.julia

 - init_options
{
  "julialangTestItemIdentification": true
}
 - settings
{
  "julia": {
    "completionmode": "qualify", 
    "lint": {
      "call": true, 
      "constif": true, 
      "datadecl": true, 
      "disabledDirs": [
        "docs", 
        "test"
      ], 
      "iter": true, 
      "lazy": true, 
      "missingrefs": "none", 
      "modname": true, 
      "nothingcomp": true, 
      "pirates": true, 
      "run": true, 
      "typeparam": true, 
      "useoffuncargs": true
    }
  }
}

 - env
{}
## Active view
 - File name
/Users/~/Desktop/test.jl

 - Settings
{
  "auto_complete_selector": "meta.tag - punctuation.definition.tag.begin, source - meta.disable-completion - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc", 
  "lsp_active": null, 
  "syntax": "Packages/Julia/Julia.sublime-syntax"
}

 - base scope
source.julia

## Project / Workspace
 - folders
[]

 - is project: False
## LSP configuration

<not found>
## System PATH
 - /Users/~/.pyenv/shims
 - /Library/Frameworks/Python.framework/Versions/3.9/bin
 - /Library/Frameworks/Python.framework/Versions/3.8/bin
 - /usr/local/bin
 - /usr/bin
 - /bin
 - /usr/sbin
 - /sbin
 - /Library/TeX/texbin
 - /usr/local/go/bin
 - /opt/X11/bin
 - /Library/Apple/usr/bin
 - /Library/Frameworks/Mono.framework/Versions/Current/Commands

"julia_executable_path" must include the executable file. Try /usr/local/bin/julia

Thank you, but after trying to set /usr/local/bin/julia the following error occurred.

The julia server has crashed 5 times in the last 180 seconds.

Are there any errors in the Sublime Text console or in the LSP server log output panel?

There were several errors about some packages in the LSP server log output panel. I reinstalled a newer version of Julia (v1.10) and updated all packages, then those errors were cleared.
Thank you so much for your help!