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

Psalm (PHP lsp) did not run #1227

Open
mdtrooper opened this issue Jun 14, 2021 · 0 comments
Open

Psalm (PHP lsp) did not run #1227

mdtrooper opened this issue Jun 14, 2021 · 0 comments

Comments

@mdtrooper
Copy link

mdtrooper commented Jun 14, 2021

  • Did you upgrade to latest plugin version?

Yes

  • Did you upgrade to/compile latest binary?
$ ./languageclient --version
languageclient 0.1.161
  • (Neovim users only) Did you check output of :checkhealth LanguageClient?
health#LanguageClient#check                                                     
========================================================================        
Buscando "autoload/health/LanguageClient.vim" en "/home/panacea/.config/nvim,/home/panacea/.config/nvim/plugged/indentLine,/home/panacea/.config/nvim/plugged/vim-workspace,/home/panacea/.config/nvim/plugged/vim-commentary,/home/panacea/.config/nvim/plugged/vim-sleuth,/home/panacea/.config/nvim/plugged/vim-  
↪ closetag,/home/panacea/.config/nvim/plugged/emmet-vim,/home/panacea/.config/nvim/plugged/LanguageClient-neovim,/home/panacea/.config/nvim/plugged/ncm2,/home/panacea/.config/nvim/plugged/nvim-yarp,/home/panacea/.config/nvim/plugged/fzf,/home/panacea/.config/nvim/plugged/fzf.vim,/home/panacea/.config/nvim/  
↪ plugged/kotlin-vim,/etc/xdg/xdg-mate/nvim,/etc/xdg/nvim,/home/panacea/.local/share/nvim/site,/usr/share/mate/nvim/site,/home/panacea/.local/share/flatpak/exports/share/nvim/site,/var/lib/flatpak/exports/share/nvim/site,/usr/local/share/nvim/site,/usr/share/nvim/site,/usr/share/nvim/runtime,/usr/share/nvim/
↪ runtime/pack/dist/opt/matchit,/usr/share/nvim/site/after,/usr/local/share/nvim/site/after,/var/lib/flatpa
Buscando "/home/panacea/.config/nvim/autoload/health/LanguageClient.vim"        
Buscando "/home/panacea/.config/nvim/plugged/indentLine/autoload/health/LanguageClient.vim"
Buscando "/home/panacea/.config/nvim/plugged/vim-workspace/autoload/health/LanguageClient.vim"
Buscando "/home/panacea/.config/nvim/plugged/vim-commentary/autoload/health/LanguageClient.vim"
Buscando "/home/panacea/.config/nvim/plugged/vim-sleuth/autoload/health/LanguageClient.vim"
Buscando "/home/panacea/.config/nvim/plugged/vim-closetag/autoload/health/LanguageClient.vim"
Buscando "/home/panacea/.config/nvim/plugged/emmet-vim/autoload/health/LanguageClient.vim"
Buscando "/home/panacea/.config/nvim/plugged/LanguageClient-neovim/autoload/health/LanguageClient.vim"
chdir(/home/panacea/mio)                                                        
chdir(/home/panacea/.config/nvim/plugged/LanguageClient-neovim/autoload/health) 
chdir(/home/panacea/mio)                                                        
línea 21: ejecutando /home/panacea/.config/nvim/plugged/LanguageClient-neovim/autoload/health/LanguageClient.vim
La ejecución de /home/panacea/.config/nvim/plugged/LanguageClient-neovim/autoload/health/LanguageClient.vim ha terminado
continuando en function health#check                                            
¦·- OK: binary found: /home/panacea/.config/nvim/plugged/LanguageClient-neovim/bin/languageclient
Executing command: "'/home/panacea/.config/nvim/plugged/LanguageClient-neovim/bin/languageclient' '--version'"
                                                                                
                                                                                
¦·- OK: languageclient 0.1.161                                                  
¦·- OK: Floating window is supported and will be used for hover                 

Describe the bug

I installed https://github.com/vimeo/psalm and I am set the config to run, but it did not run.

Environment

  • neovim/vim version (nvim --version or vim --version):
$ nvim --version
NVIM v0.4.3
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-gOb7vg/neovim-0.4.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=1 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim-gOb7vg/neovim-0.4.3/build/config -I/build/neovim-gOb7vg/neovim-0.4.3/src -I/usr/include -I/usr/include/lua5.1 -I/build/neovim-gOb7vg/neovim-0.4.3/build/src/nvim/auto -I/build/neovim-gOb7vg/neovim-0.4.3/build/include
Compilado por [email protected]

Features: +acl +iconv +tui
See ":help feature-compile"

     archivo "vimrc" del sistema: "$VIM/sysinit.vim"
            predefinido para $VIM: "/usr/share/nvim"

Run :checkhealth for more info
  • This plugin version (git rev-parse --short HEAD):
$ git rev-parse --short HEAD
a42594c
  • This plugin's binary version (bin/languageclient --version):
$ git rev-parse --short HEAD
a42594c
  • Minimal vimrc content (A minimal vimrc is the smallest vimrc that could
    reproduce the issue. Refer to an example [here][min-vimrc.vim]):
let g:LanguageClient_serverCommands = {                           
   \ 'python': ['/usr/local/bin/pylsp'],                         
   \ 'rust': ['rls'],                                            
   \ 'kotlin': ['kotlin-language-server'],                       
   \ 'javascript': ['typescript-language-server', '--stdio'],    
   \ 'typescript': ['typescript-language-server', '--stdio'],    
   \ 'javascript.jsx': ['typescript-language-server', '--stdio'],
   \ 'typescript.tsx': ['typescript-language-server', '--stdio'],
   \ 'php': ['psalm-language-server', '--verbose'],              
   \ }        
  • Language server link and version:

https://github.com/vimeo/psalm

  • Log of LanguageClient
#######
LanguageClient 0.1.161
#######
12:24:07 INFO unnamed src/language_server_protocol.rs:3580 settings synced
12:24:07 WARN unnamed src/utils.rs:88 Unknown project type. Fallback to use dir as project root: Ok("/tmp")
12:24:07 INFO unnamed src/language_server_protocol.rs:3607 Project root: /tmp
12:24:07 INFO unnamed src/language_server_protocol.rs:840 initialize; params=Object({"bufnr": Number(1), "filename": String("/tmp/prueba.php"), "languageId": String("php"), "position": Object({"character": Number(0), "line": Number(0)}), "viewport": Object({"end": Number(3), "start": Number(0)})})
12:24:07 ERROR reader-Some("php") src/rpcclient.rs:64 Thread reader-Some("php") exited with error: Unable to read from language server
12:24:09 INFO reader-None src/rpcclient.rs:241 reader-None terminated

To Reproduce

Steps to reproduce the behavior:

  • Install this plugin.
  • Install Psalm
  • Config the pslam in the init.vim
  • Try something in PHP as test.php
<?php
$a = 123;
print_r($a);
?>

Current behavior

Ẁell, I expect to run similitar when code python with autocomplete and this things.

Expected behavior

It does not show any sugestion to autocomplete for example.

Screenshots

Additional context

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

1 participant