williamboman / nvim-lsp-installer

Further development has moved to https://github.com/williamboman/mason.nvim!
https://github.com/williamboman/mason.nvim
Apache License 2.0
2k stars 123 forks source link

EFM server won't install #123

Closed punk-dev-robot closed 3 years ago

punk-dev-robot commented 3 years ago

It's the only one that won't work.

It simply creates empty directory for efm.

Arch Linux Neovim 0.5.1

Debug log:

     49 [DEBUG Mon 04 Oct 2021 02:30:48 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:348: Installing server {¬                                                                                                                                                                                                                                                                                                     
     48 │ _default_options = {¬                                                                                                                                                                                                                                                                                                                                                                                                           
     47 │ │ cmd = { "/home/kuba/.local/share/nvim/lsp_servers/efm/efm-langserver" }¬                                                                                                                                                                                                                                                                                                                                                      
     46 │ },¬                                                                                                                                                                                                                                                                                                                                                                                                                             
     45 │ _installer = <function 1>,¬                                                                                                                                                                                                                                                                                                                                                                                                     
     44 │ _root_dir = "/home/kuba/.local/share/nvim/lsp_servers/efm",¬                                                                                                                                                                                                                                                                                                                                                                    
     43 │ name = "efm",¬                                                                                                                                                                                                                                                                                                                                                                                                                  
     42 │ root_dir = "/home/kuba/.local/share/nvim/lsp_servers/efm",¬                                                                                                                                                                                                                                                                                                                                                                     
     41 │ <metatable> = <1>{¬                                                                                                                                                                                                                                                                                                                                                                                                             
     40 │ │ __index = <table 1>,¬                                                                                                                                                                                                                                                                                                                                                                                                         
     39 │ │ create_root_dir = <function 2>,¬                                                                                                                                                                                                                                                                                                                                                                                              
     38 │ │ get_default_options = <function 3>,¬                                                                                                                                                                                                                                                                                                                                                                                          
     37 │ │ install = <function 4>,¬                                                                                                                                                                                                                                                                                                                                                                                                      
     36 │ │ install_attached = <function 5>,¬                                                                                                                                                                                                                                                                                                                                                                                             
     35 │ │ is_installed = <function 6>,¬                                                                                                                                                                                                                                                                                                                                                                                                 
     34 │ │ new = <function 7>,¬                                                                                                                                                                                                                                                                                                                                                                                                          
     33 │ │ setup = <function 8>,¬                                                                                                                                                                                                                                                                                                                                                                                                        
     32 │ │ uninstall = <function 9>¬                                                                                                                                                                                                                                                                                                                                                                                                     
     31 │ }¬                                                                                                                                                                                                                                                                                                                                                                                                                              
     30 } nil¬                                                                                                                                                                                                                                                                                                                                                                                                                            
     29 [DEBUG Mon 04 Oct 2021 02:30:48 PM BST] ...nvim-lsp-installer/lua/nvim-lsp-installer/ui/display.lua:208: Buffer or window is no longer valid 1002 3¬                                                                                                                                                                                                                                                                              
     28 [INFO  Mon 04 Oct 2021 02:30:48 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:286: Starting install server_name="efm", requested_version="N/A"¬                                                                                                                                                                                                                                                             
     27 [DEBUG Mon 04 Oct 2021 02:30:48 PM BST] ...nvim-lsp-installer/lua/nvim-lsp-installer/ui/display.lua:261: Opening window¬                                                                                                                                                                                                                                                                                                          
     26 [DEBUG Mon 04 Oct 2021 02:30:48 PM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:51: Spawning go {¬                                                                                                                                                                                                                                                                                                            
     25 │ args = { "get", "-v", "github.com/mattn/efm-langserver" },¬                                                                                                                                                                                                                                                                                                                                                                     
     24 │ cwd = "/home/kuba/.local/share/nvim/lsp_servers/efm",¬                                                                                                                                                                                                                                                                                                                                                                          
     23 │ env = { "FZF_CTRL_T_COMMAND=fd --type file --hidden --exclude .git --color always --follow", "HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew", "VISUAL=nvim", "_ZPLUG_CONFIG_SUBSHELL=:", "XDG_SESSION_CLASS=user", "_ZPLUG_PREZTO=sorin-ionescu/prezto", "INFOPATH=/home/linuxbrew/.linuxbrew/share/info:", "KITTY_LISTEN_ON=/tmp/mykitty", "LS>
     22 │ stdio_sink = {¬                                                                                                                                                                                                                                                                                                                                                                                                                 
     21 │ │ stderr = <function 1>,¬                                                                                                                                                                                                                                                                                                                                                                                                       
     20 │ │ stdout = <function 2>,¬                                                                                                                                                                                                                                                                                                                                                                                                       
     19 │ │ <metatable> = {¬                                                                                                                                                                                                                                                                                                                                                                                                              
     18 │ │ │ __tostring = <function 3>¬                                                                                                                                                                                                                                                                                                                                                                                                  
     17 │ │ }¬                                                                                                                                                                                                                                                                                                                                                                                                                            
     16 │ }¬                                                                                                                                                                                                                                                                                                                                                                                                                              
     15 }¬                                                                                                                                                                                                                                                                                                                                                                                                                                
     14 [DEBUG Mon 04 Oct 2021 02:30:48 PM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:91: Spawned with pid 88791¬                                                                                                                                                                                                                                                                                                   
     13 [DEBUG Mon 04 Oct 2021 02:30:49 PM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:51: Spawning go {¬                                                                                                                                                                                                                                                                                                            
     12 │ args = { "clean", "-modcache" },¬                                                                                                                                                                                                                                                                                                                                                                                               
     11 │ cwd = "/home/kuba/.local/share/nvim/lsp_servers/efm",¬                                                                                                                                                                                                                                                                                                                                                                          
     10 │ env = {"FZF_CTRL_T_COMMAND=fd --type file --hidden --exclude .git --color always --follow", "HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew", "VISUAL=nvim", "_ZPLUG_CONFIG_SUBSHELL=:", "XDG_SESSION_CLASS=user", "_ZPLUG_PREZTO=sorin-ionescu/prezto", "INFOPATH=/home/linuxbrew/.linuxbrew/share/info:", "KITTY_LISTEN_ON=/tmp/mykitty", "LS>
      9 │ stdio_sink = {¬                                                                                                                                                                                                                                                                                                                                                                                                                 
      8 │ │ stderr = <function 1>,¬                                                                                                                                                                                                                                                                                                                                                                                                       
      7 │ │ stdout = <function 2>,¬                                                                                                                                                                                                                                                                                                                                                                                                       
      6 │ │ <metatable> = {¬                                                                                                                                                                                                                                                                                                                                                                                                              
      5 │ │ │ __tostring = <function 3>¬                                                                                                                                                                                                                                                                                                                                                                                                  
      4 │ │ }¬                                                                                                                                                                                                                                                                                                                                                                                                                            
      3 │ }¬                                                                                                                                                                                                                                                                                                                                                                                                                              
      2 }¬                                                                                                                                                                                                                                                                                                                                                                                                                                
      1 [DEBUG Mon 04 Oct 2021 02:30:49 PM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:91: Spawned with pid 88867¬                                                                                                                                                                                                                                                                                                   
      0 [INFO  Mon 04 Oct 2021 02:30:49 PM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:305: Installation completed server_name="efm", success=true¬                                                                                                                                                                                                                                                                  
williamboman commented 3 years ago

Hey! It seems like the logs have been cut off, are you copying the terminal contents directly? Could you download the latest version of the plugin and then re-run the installation for efm (with DEBUG log level set)?

punk-dev-robot commented 3 years ago

I'm on the latest version. Thank you for looking into that and I apologize for late reply.

Logs look ok to me. Like I said previous /lsp_servers/efm folder is removed and replaced with new empty one.

My current workaround is putting symlink to efm-langserver that I manually installed with go.

[INFO  Fri 15 Oct 2021 09:10:31 AM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:449: Starting install server_name="efm", requested_version="N/A"
[DEBUG Fri 15 Oct 2021 09:10:31 AM BST] ...art/nvim-lsp-installer/lua/nvim-lsp-installer/server.lua:118: Uninstalling server efm
[DEBUG Fri 15 Oct 2021 09:10:31 AM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:30: fs: mkdirp /home/kuba/.local/share/nvim/lsp_servers/efm
[DEBUG Fri 15 Oct 2021 09:10:31 AM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:87: Spawning cmd="go", spawn_opts={
  args = { "get", "-v", "github.com/mattn/efm-langserver" },
  cwd = "/home/kuba/.local/share/nvim/lsp_servers/efm",
  env = { "REACT_APP_GITHUB_PERSONAL_ACCESS_TOKEN=<redacted>", "FZF_CTRL_T_COMMAND=<redacted>", "HOMEBREW_PREFIX=<redacted>", "VISUAL=<redacted>", "_ZPLUG_CONFIG_SUBSHELL=<redacted>", "XDG_SESSION_CLASS=<redacted>", "_ZPLUG_PREZTO=<redacted>", "INFOPATH=<redacted>", "KITTY_LISTEN_ON=<redacted>", "LS_COLORS=<redacted>", "ZSH_CACHE_DIR=<redacted>", "XDG_CONFIG_HOME=<redacted>", "DISPLAY=<redacted>", "OLDPWD=<redacted>", "SWAYSOCK=<redacted>", "P9K_SSH=<redacted>", "FZF_DEFAULT_COMMAND=<redacted>", "XKB_DEFAULT_LAYOUT=<redacted>", "LESS_TERMCAP_me=<redacted>", "_ZPLUG_OHMYZSH=<redacted>", "ZPLUG_THREADS=<redacted>", "TILLER_NAMESPACE=<redacted>", "ZPLUG_BIN=<redacted>", "KITTY_PID=<redacted>", "NVM_DIR=<redacted>", "XDG_SESSION_ID=<redacted>", "_ZPLUG_VERSION=<redacted>", "P9K_TTY=<redacted>", "ZPLUG_CACHE_DIR=<redacted>", "GREP_COLORS=<redacted>", "GOBIN=/home/kuba/go/bin", "FPATH=<redacted>", "INVOCATION_ID=<redacted>", "NPM_CONFIG_USERCONFIG=<redacted>", "ZPLUG_ERROR_LOG=<redacted>", "DATADOG_APP_KEY=<redacted>", "TERM=<redacted>", "MOTD_SHOWN=<redacted>", "QT_WAYLAND_DISABLE_WINDOWDECORATION=<redacted>", "ZPLUG_LOADFILE=<redacted>", "MOZ_PLUGIN_PATH=<redacted>", "XCURSOR_SIZE=<redacted>", "QT_QPA_PLATFORMTHEME=<redacted>", "LESS_TERMCAP_ue=<redacted>", "_=<redacted>", "ZPLUG_USE_CACHE=<redacted>", "HOMEBREW_CELLAR=<redacted>", "NVIM_LOG_FILE=<redacted>", "READER=<redacted>", "ZPLUG_LOG_LOAD_SUCCESS=<redacted>", "XDG_CURRENT_DESKTOP=<redacted>", "QT_QPA_PLATFORM=<redacted>", "TERMINAL=<redacted>", "KITTY_WINDOW_ID=<redacted>", "COLORTERM=<redacted>", "PATH=/home/kuba/.zplug/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/kuba/go/bin:/home/kuba/node_modules/.bin:./node_modules/.bin:/home/kuba/.local/bin/tools:/home/kuba/.local/bin/cron:/home/kuba/.local/bin/__pycache__:/home/kuba/.local/bin/i3cmds:/home/kuba/.local/bin/statusbar:/home/kuba/.local/bin/:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/kuba/.node_modules/bin:/home/kuba/.yarn/bin", "SYSTEMD_EXEC_PID=<redacted>", "SSH_AGENT_PID=<redacted>", "I3SOCK=<redacted>", "LESS_TERMCAP_so=<redacted>", "VIMRUNTIME=<redacted>", "XDG_SEAT=<redacted>", "KEYTIMEOUT=<redacted>", "ZPLUG_PROTOCOL=<redacted>", "TERMINFO=<redacted>", "ZDOTDIR=<redacted>", "MANPATH=<redacted>", "ZPLUG_REPOS=<redacted>", "GOPATH=/home/kuba/go", "HOME=<redacted>", "_ZPLUG_URL=<redacted>", "MYVIMRC=<redacted>", "NVM_CD_FLAGS=<redacted>", "LANG=<redacted>", "_ZPLUG_AWKPATH=<redacted>", "DATADOG_API_KEY=<redacted>", "MOZ_ENABLE_WAYLAND=<redacted>", "LESS_TERMCAP_se=<redacted>", "SCMPUFF_GIT_CMD=<redacted>", "FZF_DEFAULT_OPTS=<redacted>", "LESS_TERMCAP_md=<redacted>", "PERIOD=<redacted>", "FILE=<redacted>", "FASTLY_API_KEY=<redacted>", "ZPLUG_FILTER=<redacted>", "HOMEBREW_REPOSITORY=<redacted>", "XDG_SESSION_TYPE=<redacted>", "ZPLUG_ROOT=<redacted>", "GITHUB_PERSONAL_ACCESS_TOKEN=<redacted>", "SHELL=<redacted>", "XDG_DATA_HOME=<redacted>", "XDG_RUNTIME_DIR=<redacted>", "EDITOR=<redacted>", "ZPLUG_LOG_LOAD_FAILURE=<redacted>", "MAIL=<redacted>", "NVIM_LISTEN_ADDRESS=<redacted>", "MOZ_DBUS_REMOTE=<redacted>", "NPM_TOKEN=<redacted>", "USER=<redacted>", "LOGNAME=<redacted>", "COINMARKET_API_KEY=<redacted>", "SSH_AUTH_SOCK=<redacted>", "JOURNAL_STREAM=<redacted>", "DBUS_SESSION_BUS_ADDRESS=<redacted>", "DOCKER_HIDE_LEGACY_COMMANDS=<redacted>", "PWD=<redacted>", "GREP_COLOR=<redacted>", "KITTY_CONFIG_DIRECTORY=<redacted>", "LESS_TERMCAP_mb=<redacted>", "ZSH=<redacted>", "LESS_TERMCAP_us=<redacted>", "WAYLAND_DISPLAY=<redacted>", "ZPLUG_HOME=<redacted>", "HISTFILE=<redacted>", "SHLVL=<redacted>", "XDG_CACHE_HOME=<redacted>", "BROWSER=<redacted>", "XDG_VTNR=<redacted>", "_P9K_TTY=<redacted>", "GOPATH=/home/kuba/.local/share/nvim/lsp_servers/efm", "GO111MODULE=on", "GOBIN=/home/kuba/.local/share/nvim/lsp_servers/efm" }
}
[DEBUG Fri 15 Oct 2021 09:10:31 AM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:133: Spawned with pid 18710
[DEBUG Fri 15 Oct 2021 09:10:31 AM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:119: Job pid=18710 exited with exit_code=0, signal=0
[DEBUG Fri 15 Oct 2021 09:10:31 AM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:87: Spawning cmd="go", spawn_opts={
  args = { "clean", "-modcache" },
  cwd = "/home/kuba/.local/share/nvim/lsp_servers/efm",
  env = { "REACT_APP_GITHUB_PERSONAL_ACCESS_TOKEN=<redacted>", "FZF_CTRL_T_COMMAND=<redacted>", "HOMEBREW_PREFIX=<redacted>", "VISUAL=<redacted>", "_ZPLUG_CONFIG_SUBSHELL=<redacted>", "XDG_SESSION_CLASS=<redacted>", "_ZPLUG_PREZTO=<redacted>", "INFOPATH=<redacted>", "KITTY_LISTEN_ON=<redacted>", "LS_COLORS=<redacted>", "ZSH_CACHE_DIR=<redacted>", "XDG_CONFIG_HOME=<redacted>", "DISPLAY=<redacted>", "OLDPWD=<redacted>", "SWAYSOCK=<redacted>", "P9K_SSH=<redacted>", "FZF_DEFAULT_COMMAND=<redacted>", "XKB_DEFAULT_LAYOUT=<redacted>", "LESS_TERMCAP_me=<redacted>", "_ZPLUG_OHMYZSH=<redacted>", "ZPLUG_THREADS=<redacted>", "TILLER_NAMESPACE=<redacted>", "ZPLUG_BIN=<redacted>", "KITTY_PID=<redacted>", "NVM_DIR=<redacted>", "XDG_SESSION_ID=<redacted>", "_ZPLUG_VERSION=<redacted>", "P9K_TTY=<redacted>", "ZPLUG_CACHE_DIR=<redacted>", "GREP_COLORS=<redacted>", "GOBIN=/home/kuba/go/bin", "FPATH=<redacted>", "INVOCATION_ID=<redacted>", "NPM_CONFIG_USERCONFIG=<redacted>", "ZPLUG_ERROR_LOG=<redacted>", "DATADOG_APP_KEY=<redacted>", "TERM=<redacted>", "MOTD_SHOWN=<redacted>", "QT_WAYLAND_DISABLE_WINDOWDECORATION=<redacted>", "ZPLUG_LOADFILE=<redacted>", "MOZ_PLUGIN_PATH=<redacted>", "XCURSOR_SIZE=<redacted>", "QT_QPA_PLATFORMTHEME=<redacted>", "LESS_TERMCAP_ue=<redacted>", "_=<redacted>", "ZPLUG_USE_CACHE=<redacted>", "HOMEBREW_CELLAR=<redacted>", "NVIM_LOG_FILE=<redacted>", "READER=<redacted>", "ZPLUG_LOG_LOAD_SUCCESS=<redacted>", "XDG_CURRENT_DESKTOP=<redacted>", "QT_QPA_PLATFORM=<redacted>", "TERMINAL=<redacted>", "KITTY_WINDOW_ID=<redacted>", "COLORTERM=<redacted>", "PATH=/home/kuba/.zplug/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/kuba/go/bin:/home/kuba/node_modules/.bin:./node_modules/.bin:/home/kuba/.local/bin/tools:/home/kuba/.local/bin/cron:/home/kuba/.local/bin/__pycache__:/home/kuba/.local/bin/i3cmds:/home/kuba/.local/bin/statusbar:/home/kuba/.local/bin/:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/kuba/.node_modules/bin:/home/kuba/.yarn/bin", "SYSTEMD_EXEC_PID=<redacted>", "SSH_AGENT_PID=<redacted>", "I3SOCK=<redacted>", "LESS_TERMCAP_so=<redacted>", "VIMRUNTIME=<redacted>", "XDG_SEAT=<redacted>", "KEYTIMEOUT=<redacted>", "ZPLUG_PROTOCOL=<redacted>", "TERMINFO=<redacted>", "ZDOTDIR=<redacted>", "MANPATH=<redacted>", "ZPLUG_REPOS=<redacted>", "GOPATH=/home/kuba/go", "HOME=<redacted>", "_ZPLUG_URL=<redacted>", "MYVIMRC=<redacted>", "NVM_CD_FLAGS=<redacted>", "LANG=<redacted>", "_ZPLUG_AWKPATH=<redacted>", "DATADOG_API_KEY=<redacted>", "MOZ_ENABLE_WAYLAND=<redacted>", "LESS_TERMCAP_se=<redacted>", "SCMPUFF_GIT_CMD=<redacted>", "FZF_DEFAULT_OPTS=<redacted>", "LESS_TERMCAP_md=<redacted>", "PERIOD=<redacted>", "FILE=<redacted>", "FASTLY_API_KEY=<redacted>", "ZPLUG_FILTER=<redacted>", "HOMEBREW_REPOSITORY=<redacted>", "XDG_SESSION_TYPE=<redacted>", "ZPLUG_ROOT=<redacted>", "GITHUB_PERSONAL_ACCESS_TOKEN=<redacted>", "SHELL=<redacted>", "XDG_DATA_HOME=<redacted>", "XDG_RUNTIME_DIR=<redacted>", "EDITOR=<redacted>", "ZPLUG_LOG_LOAD_FAILURE=<redacted>", "MAIL=<redacted>", "NVIM_LISTEN_ADDRESS=<redacted>", "MOZ_DBUS_REMOTE=<redacted>", "NPM_TOKEN=<redacted>", "USER=<redacted>", "LOGNAME=<redacted>", "COINMARKET_API_KEY=<redacted>", "SSH_AUTH_SOCK=<redacted>", "JOURNAL_STREAM=<redacted>", "DBUS_SESSION_BUS_ADDRESS=<redacted>", "DOCKER_HIDE_LEGACY_COMMANDS=<redacted>", "PWD=<redacted>", "GREP_COLOR=<redacted>", "KITTY_CONFIG_DIRECTORY=<redacted>", "LESS_TERMCAP_mb=<redacted>", "ZSH=<redacted>", "LESS_TERMCAP_us=<redacted>", "WAYLAND_DISPLAY=<redacted>", "ZPLUG_HOME=<redacted>", "HISTFILE=<redacted>", "SHLVL=<redacted>", "XDG_CACHE_HOME=<redacted>", "BROWSER=<redacted>", "XDG_VTNR=<redacted>", "_P9K_TTY=<redacted>", "GOPATH=/home/kuba/.local/share/nvim/lsp_servers/efm", "GO111MODULE=on", "GOBIN=/home/kuba/.local/share/nvim/lsp_servers/efm" }
}
[DEBUG Fri 15 Oct 2021 09:10:31 AM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:133: Spawned with pid 18789
[DEBUG Fri 15 Oct 2021 09:10:31 AM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:119: Job pid=18789 exited with exit_code=0, signal=0
[INFO  Fri 15 Oct 2021 09:10:31 AM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:468: Installation completed server_name="efm", success=true
[DEBUG Fri 15 Oct 2021 09:10:37 AM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:509: Installing server {
  _default_options = {
    cmd = { "/home/kuba/.local/share/nvim/lsp_servers/efm/efm-langserver" }
  },
  _installer = <function 1>,
  _root_dir = "/home/kuba/.local/share/nvim/lsp_servers/efm",
  homepage = "https://github.com/mattn/efm-langserver",
  name = "efm",
  root_dir = "/home/kuba/.local/share/nvim/lsp_servers/efm",
  <metatable> = <1>{
    __index = <table 1>,
    create_root_dir = <function 2>,
    get_default_options = <function 3>,
    install = <function 4>,
    install_attached = <function 5>,
    is_installed = <function 6>,
    new = <function 7>,
    setup = <function 8>,
    uninstall = <function 9>
  }
} nil
[INFO  Fri 15 Oct 2021 09:10:37 AM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:449: Starting install server_name="efm", requested_version="N/A"
[DEBUG Fri 15 Oct 2021 09:10:37 AM BST] ...art/nvim-lsp-installer/lua/nvim-lsp-installer/server.lua:118: Uninstalling server efm
[DEBUG Fri 15 Oct 2021 09:10:37 AM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:14: fs: rmrf /home/kuba/.local/share/nvim/lsp_servers/efm
[DEBUG Fri 15 Oct 2021 09:10:37 AM BST] ...r/start/nvim-lsp-installer/lua/nvim-lsp-installer/fs.lua:30: fs: mkdirp /home/kuba/.local/share/nvim/lsp_servers/efm
[DEBUG Fri 15 Oct 2021 09:10:37 AM BST] ...nvim-lsp-installer/lua/nvim-lsp-installer/ui/display.lua:350: Opening window
[DEBUG Fri 15 Oct 2021 09:10:37 AM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:87: Spawning cmd="go", spawn_opts={
  args = { "get", "-v", "github.com/mattn/efm-langserver" },
  cwd = "/home/kuba/.local/share/nvim/lsp_servers/efm",
  env = { "REACT_APP_GITHUB_PERSONAL_ACCESS_TOKEN=<redacted>", "FZF_CTRL_T_COMMAND=<redacted>", "HOMEBREW_PREFIX=<redacted>", "VISUAL=<redacted>", "_ZPLUG_CONFIG_SUBSHELL=<redacted>", "XDG_SESSION_CLASS=<redacted>", "_ZPLUG_PREZTO=<redacted>", "INFOPATH=<redacted>", "KITTY_LISTEN_ON=<redacted>", "LS_COLORS=<redacted>", "ZSH_CACHE_DIR=<redacted>", "XDG_CONFIG_HOME=<redacted>", "DISPLAY=<redacted>", "OLDPWD=<redacted>", "SWAYSOCK=<redacted>", "P9K_SSH=<redacted>", "FZF_DEFAULT_COMMAND=<redacted>", "XKB_DEFAULT_LAYOUT=<redacted>", "LESS_TERMCAP_me=<redacted>", "_ZPLUG_OHMYZSH=<redacted>", "ZPLUG_THREADS=<redacted>", "TILLER_NAMESPACE=<redacted>", "ZPLUG_BIN=<redacted>", "KITTY_PID=<redacted>", "NVM_DIR=<redacted>", "XDG_SESSION_ID=<redacted>", "_ZPLUG_VERSION=<redacted>", "P9K_TTY=<redacted>", "ZPLUG_CACHE_DIR=<redacted>", "GREP_COLORS=<redacted>", "GOBIN=/home/kuba/go/bin", "FPATH=<redacted>", "INVOCATION_ID=<redacted>", "NPM_CONFIG_USERCONFIG=<redacted>", "ZPLUG_ERROR_LOG=<redacted>", "DATADOG_APP_KEY=<redacted>", "TERM=<redacted>", "MOTD_SHOWN=<redacted>", "QT_WAYLAND_DISABLE_WINDOWDECORATION=<redacted>", "ZPLUG_LOADFILE=<redacted>", "MOZ_PLUGIN_PATH=<redacted>", "XCURSOR_SIZE=<redacted>", "QT_QPA_PLATFORMTHEME=<redacted>", "LESS_TERMCAP_ue=<redacted>", "_=<redacted>", "ZPLUG_USE_CACHE=<redacted>", "HOMEBREW_CELLAR=<redacted>", "NVIM_LOG_FILE=<redacted>", "READER=<redacted>", "ZPLUG_LOG_LOAD_SUCCESS=<redacted>", "XDG_CURRENT_DESKTOP=<redacted>", "QT_QPA_PLATFORM=<redacted>", "TERMINAL=<redacted>", "KITTY_WINDOW_ID=<redacted>", "COLORTERM=<redacted>", "PATH=/home/kuba/.zplug/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/kuba/go/bin:/home/kuba/node_modules/.bin:./node_modules/.bin:/home/kuba/.local/bin/tools:/home/kuba/.local/bin/cron:/home/kuba/.local/bin/__pycache__:/home/kuba/.local/bin/i3cmds:/home/kuba/.local/bin/statusbar:/home/kuba/.local/bin/:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/kuba/.node_modules/bin:/home/kuba/.yarn/bin", "SYSTEMD_EXEC_PID=<redacted>", "SSH_AGENT_PID=<redacted>", "I3SOCK=<redacted>", "LESS_TERMCAP_so=<redacted>", "VIMRUNTIME=<redacted>", "XDG_SEAT=<redacted>", "KEYTIMEOUT=<redacted>", "ZPLUG_PROTOCOL=<redacted>", "TERMINFO=<redacted>", "ZDOTDIR=<redacted>", "MANPATH=<redacted>", "ZPLUG_REPOS=<redacted>", "GOPATH=/home/kuba/go", "HOME=<redacted>", "_ZPLUG_URL=<redacted>", "MYVIMRC=<redacted>", "NVM_CD_FLAGS=<redacted>", "LANG=<redacted>", "_ZPLUG_AWKPATH=<redacted>", "DATADOG_API_KEY=<redacted>", "MOZ_ENABLE_WAYLAND=<redacted>", "LESS_TERMCAP_se=<redacted>", "SCMPUFF_GIT_CMD=<redacted>", "FZF_DEFAULT_OPTS=<redacted>", "LESS_TERMCAP_md=<redacted>", "PERIOD=<redacted>", "FILE=<redacted>", "FASTLY_API_KEY=<redacted>", "ZPLUG_FILTER=<redacted>", "HOMEBREW_REPOSITORY=<redacted>", "XDG_SESSION_TYPE=<redacted>", "ZPLUG_ROOT=<redacted>", "GITHUB_PERSONAL_ACCESS_TOKEN=<redacted>", "SHELL=<redacted>", "XDG_DATA_HOME=<redacted>", "XDG_RUNTIME_DIR=<redacted>", "EDITOR=<redacted>", "ZPLUG_LOG_LOAD_FAILURE=<redacted>", "MAIL=<redacted>", "NVIM_LISTEN_ADDRESS=<redacted>", "MOZ_DBUS_REMOTE=<redacted>", "NPM_TOKEN=<redacted>", "USER=<redacted>", "LOGNAME=<redacted>", "COINMARKET_API_KEY=<redacted>", "SSH_AUTH_SOCK=<redacted>", "JOURNAL_STREAM=<redacted>", "DBUS_SESSION_BUS_ADDRESS=<redacted>", "DOCKER_HIDE_LEGACY_COMMANDS=<redacted>", "PWD=<redacted>", "GREP_COLOR=<redacted>", "KITTY_CONFIG_DIRECTORY=<redacted>", "LESS_TERMCAP_mb=<redacted>", "ZSH=<redacted>", "LESS_TERMCAP_us=<redacted>", "WAYLAND_DISPLAY=<redacted>", "ZPLUG_HOME=<redacted>", "HISTFILE=<redacted>", "SHLVL=<redacted>", "XDG_CACHE_HOME=<redacted>", "BROWSER=<redacted>", "XDG_VTNR=<redacted>", "_P9K_TTY=<redacted>", "GOPATH=/home/kuba/.local/share/nvim/lsp_servers/efm", "GO111MODULE=on", "GOBIN=/home/kuba/.local/share/nvim/lsp_servers/efm" }
}
[DEBUG Fri 15 Oct 2021 09:10:37 AM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:133: Spawned with pid 18811
[DEBUG Fri 15 Oct 2021 09:10:37 AM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:119: Job pid=18811 exited with exit_code=0, signal=0
[DEBUG Fri 15 Oct 2021 09:10:37 AM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:87: Spawning cmd="go", spawn_opts={
  args = { "clean", "-modcache" },
  cwd = "/home/kuba/.local/share/nvim/lsp_servers/efm",
  env = { "REACT_APP_GITHUB_PERSONAL_ACCESS_TOKEN=<redacted>", "FZF_CTRL_T_COMMAND=<redacted>", "HOMEBREW_PREFIX=<redacted>", "VISUAL=<redacted>", "_ZPLUG_CONFIG_SUBSHELL=<redacted>", "XDG_SESSION_CLASS=<redacted>", "_ZPLUG_PREZTO=<redacted>", "INFOPATH=<redacted>", "KITTY_LISTEN_ON=<redacted>", "LS_COLORS=<redacted>", "ZSH_CACHE_DIR=<redacted>", "XDG_CONFIG_HOME=<redacted>", "DISPLAY=<redacted>", "OLDPWD=<redacted>", "SWAYSOCK=<redacted>", "P9K_SSH=<redacted>", "FZF_DEFAULT_COMMAND=<redacted>", "XKB_DEFAULT_LAYOUT=<redacted>", "LESS_TERMCAP_me=<redacted>", "_ZPLUG_OHMYZSH=<redacted>", "ZPLUG_THREADS=<redacted>", "TILLER_NAMESPACE=<redacted>", "ZPLUG_BIN=<redacted>", "KITTY_PID=<redacted>", "NVM_DIR=<redacted>", "XDG_SESSION_ID=<redacted>", "_ZPLUG_VERSION=<redacted>", "P9K_TTY=<redacted>", "ZPLUG_CACHE_DIR=<redacted>", "GREP_COLORS=<redacted>", "GOBIN=/home/kuba/go/bin", "FPATH=<redacted>", "INVOCATION_ID=<redacted>", "NPM_CONFIG_USERCONFIG=<redacted>", "ZPLUG_ERROR_LOG=<redacted>", "DATADOG_APP_KEY=<redacted>", "TERM=<redacted>", "MOTD_SHOWN=<redacted>", "QT_WAYLAND_DISABLE_WINDOWDECORATION=<redacted>", "ZPLUG_LOADFILE=<redacted>", "MOZ_PLUGIN_PATH=<redacted>", "XCURSOR_SIZE=<redacted>", "QT_QPA_PLATFORMTHEME=<redacted>", "LESS_TERMCAP_ue=<redacted>", "_=<redacted>", "ZPLUG_USE_CACHE=<redacted>", "HOMEBREW_CELLAR=<redacted>", "NVIM_LOG_FILE=<redacted>", "READER=<redacted>", "ZPLUG_LOG_LOAD_SUCCESS=<redacted>", "XDG_CURRENT_DESKTOP=<redacted>", "QT_QPA_PLATFORM=<redacted>", "TERMINAL=<redacted>", "KITTY_WINDOW_ID=<redacted>", "COLORTERM=<redacted>", "PATH=/home/kuba/.zplug/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/kuba/go/bin:/home/kuba/node_modules/.bin:./node_modules/.bin:/home/kuba/.local/bin/tools:/home/kuba/.local/bin/cron:/home/kuba/.local/bin/__pycache__:/home/kuba/.local/bin/i3cmds:/home/kuba/.local/bin/statusbar:/home/kuba/.local/bin/:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/kuba/.node_modules/bin:/home/kuba/.yarn/bin", "SYSTEMD_EXEC_PID=<redacted>", "SSH_AGENT_PID=<redacted>", "I3SOCK=<redacted>", "LESS_TERMCAP_so=<redacted>", "VIMRUNTIME=<redacted>", "XDG_SEAT=<redacted>", "KEYTIMEOUT=<redacted>", "ZPLUG_PROTOCOL=<redacted>", "TERMINFO=<redacted>", "ZDOTDIR=<redacted>", "MANPATH=<redacted>", "ZPLUG_REPOS=<redacted>", "GOPATH=/home/kuba/go", "HOME=<redacted>", "_ZPLUG_URL=<redacted>", "MYVIMRC=<redacted>", "NVM_CD_FLAGS=<redacted>", "LANG=<redacted>", "_ZPLUG_AWKPATH=<redacted>", "DATADOG_API_KEY=<redacted>", "MOZ_ENABLE_WAYLAND=<redacted>", "LESS_TERMCAP_se=<redacted>", "SCMPUFF_GIT_CMD=<redacted>", "FZF_DEFAULT_OPTS=<redacted>", "LESS_TERMCAP_md=<redacted>", "PERIOD=<redacted>", "FILE=<redacted>", "FASTLY_API_KEY=<redacted>", "ZPLUG_FILTER=<redacted>", "HOMEBREW_REPOSITORY=<redacted>", "XDG_SESSION_TYPE=<redacted>", "ZPLUG_ROOT=<redacted>", "GITHUB_PERSONAL_ACCESS_TOKEN=<redacted>", "SHELL=<redacted>", "XDG_DATA_HOME=<redacted>", "XDG_RUNTIME_DIR=<redacted>", "EDITOR=<redacted>", "ZPLUG_LOG_LOAD_FAILURE=<redacted>", "MAIL=<redacted>", "NVIM_LISTEN_ADDRESS=<redacted>", "MOZ_DBUS_REMOTE=<redacted>", "NPM_TOKEN=<redacted>", "USER=<redacted>", "LOGNAME=<redacted>", "COINMARKET_API_KEY=<redacted>", "SSH_AUTH_SOCK=<redacted>", "JOURNAL_STREAM=<redacted>", "DBUS_SESSION_BUS_ADDRESS=<redacted>", "DOCKER_HIDE_LEGACY_COMMANDS=<redacted>", "PWD=<redacted>", "GREP_COLOR=<redacted>", "KITTY_CONFIG_DIRECTORY=<redacted>", "LESS_TERMCAP_mb=<redacted>", "ZSH=<redacted>", "LESS_TERMCAP_us=<redacted>", "WAYLAND_DISPLAY=<redacted>", "ZPLUG_HOME=<redacted>", "HISTFILE=<redacted>", "SHLVL=<redacted>", "XDG_CACHE_HOME=<redacted>", "BROWSER=<redacted>", "XDG_VTNR=<redacted>", "_P9K_TTY=<redacted>", "GOPATH=/home/kuba/.local/share/nvim/lsp_servers/efm", "GO111MODULE=on", "GOBIN=/home/kuba/.local/share/nvim/lsp_servers/efm" }
}
[DEBUG Fri 15 Oct 2021 09:10:37 AM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:133: Spawned with pid 18889
[DEBUG Fri 15 Oct 2021 09:10:37 AM BST] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:119: Job pid=18889 exited with exit_code=0, signal=0
[INFO  Fri 15 Oct 2021 09:10:37 AM BST] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:468: Installation completed server_name="efm", success=true
[DEBUG Fri 15 Oct 2021 09:10:43 AM BST] ...nvim-lsp-installer/lua/nvim-lsp-installer/ui/display.lua:170: Deleting window
williamboman commented 3 years ago

I believe this might be caused by you already having GOBIN environment variable defined. The intended behavior is for lsp-installer's GOBIN to have precedence, but it seems like that might not be happening here. I think that might be causing the executable to be installed elsewhere. This should of course not happen, will look into this asap!

williamboman commented 3 years ago

@kuba-gaj What happens if you do the following?

$ cd `mktemp -d`
$ GO111MODULE=on GOBIN="$PWD" GOPATH="$PWD" go get -v golang.org/x/tools/gopls
$ ls -l
punk-dev-robot commented 3 years ago

Thanks again for looking into this:

.rwxr-xr-x 23M kuba 15 Oct 17:53 gopls
drwxr-xr-x   - kuba 15 Oct 17:53 pkg
williamboman commented 3 years ago

Alright so that looks like it should. What about (assuming you're using bash):

$ unset GOBIN
$ nvim +LspInstall\ gopls
# wait for installtion to complete
$ ls -l ~/.local/share/nvim/lsp_servers/go
punk-dev-robot commented 3 years ago

That looks ok

ls -l ~/.local/share/nvim/lsp_servers/go
.rwxr-xr-x 23M kuba 15 Oct 18:23  gopls

Also tried efm and that also worked fine, so it looks like unsetting GOBIN worked

williamboman commented 3 years ago

Thanks! May I ask what your

$ uname -a
$ nvim --version
williamboman commented 3 years ago

Also could you please verify that #155 (branch fix-env-precedence) fixes this :pray:?

punk-dev-robot commented 3 years ago

Yes, that branch worked for me. Thank you so much.

It created both binary and pkg folder.

uname -a
Linux thinkpad 5.14.11-zen1-1-zen #1 ZEN SMP PREEMPT Sun, 10 Oct 2021 00:48:31 +0000 x86_64 GNU/Linux

nvim --version
NVIM v0.5.1
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/build/neovim/src/neovim-0.5.1/build/config -I/build/neovim/src/neovim-0.5.1/src -I/usr/include -I/build/neovim/src/neovim-0.5.1/build/src/nvim/auto -I/build/neovim/src/neovim-0.5.1/build/include
Compiled by builduser

Features: +acl +iconv +tui
williamboman commented 3 years ago

@kuba-gaj Thanks! Just out of curiosity - are you able to remove that directory through rm -rf pkg?

punk-dev-robot commented 3 years ago

Yes, I could remove it.

Thanks again for a very quick fix :)

williamboman commented 3 years ago

Cool! That was me just checking another... problem 😅. Thanks for reporting the issue and helping out :)