Giter VIP home page Giter VIP logo

Comments (13)

johejo avatar johejo commented on May 30, 2024 1

Hi, @tsuyoshicho might plan to fix this issue, wait for #25 .

from vim-lsp-settings.

tsuyoshicho avatar tsuyoshicho commented on May 30, 2024 1

Just now total fixing progress...

from vim-lsp-settings.

mattn avatar mattn commented on May 30, 2024

Do you have python3.exe?

from vim-lsp-settings.

mattn avatar mattn commented on May 30, 2024

Could you please try last change?

from vim-lsp-settings.

habamax avatar habamax commented on May 30, 2024

Do you have python3.exe?

Yes. I actually have python-language server installed manually some months ago with pip install 'python-language-server[all]'.

I just wanted to remove it and use what is provided by this plugin. So what I did is:

  1. installed this plugin
  2. removed settings from vimrc:
" if executable('pyls')
" 	"" pip install 'python-language-server[all]'
" 	au User lsp_setup call lsp#register_server({
" 				\ 'name': 'pyls',
" 				\ 'cmd': {server_info->['pyls']},
" 				\ 'whitelist': ['python'],
" 				\ })
" endif

from vim-lsp-settings.

mattn avatar mattn commented on May 30, 2024

Ah, I forgot this. #25

from vim-lsp-settings.

habamax avatar habamax commented on May 30, 2024

Could you please try last change?

Didn't help

image

from vim-lsp-settings.

habamax avatar habamax commented on May 30, 2024

I have removed all @echo offs:

C:\Users\maksim.kim\scoop\apps\vim-nightly\current>cd /d C:\Users\maksim.kim\vimfiles\pack\minpac\start\vim-lsp-settings\installer\

C:\Users\maksim.kim\vimfiles\pack\minpac\start\vim-lsp-settings\installer>call pip_install pyls python-language-server

C:\Users\maksim.kim\vimfiles\pack\minpac\start\vim-lsp-settings\installer>if "xpyls" EQU "x" goto :EOF

C:\Users\maksim.kim\vimfiles\pack\minpac\start\vim-lsp-settings\installer>if "xpython-language-server" EQU "x" goto :EOF

C:\Users\maksim.kim\vimfiles\pack\minpac\start\vim-lsp-settings\installer>set server_dir=..\servers\pyls

C:\Users\maksim.kim\vimfiles\pack\minpac\start\vim-lsp-settings\installer>if exist "..\servers\pyls" rd /Q /S "..\servers\pyls"

C:\Users\maksim.kim\vimfiles\pack\minpac\start\vim-lsp-settings\installer>md "..\servers\pyls"

C:\Users\maksim.kim\vimfiles\pack\minpac\start\vim-lsp-settings\installer>cd /d "..\servers\pyls"

C:\Users\maksim.kim\vimfiles\pack\minpac\start\vim-lsp-settings\servers\pyls>where python3  2>NUL
C:\Users\maksim.kim\AppData\Local\Microsoft\WindowsApps\python3.exe

C:\Users\maksim.kim\vimfiles\pack\minpac\start\vim-lsp-settings\servers\pyls>if 0 NEQ 0 (
python3 -m venv ./venv
 venv\bin\pip3 install python-language-server
)  else (
python -m venv ./venv
 venv\bin\pip install python-language-server
)
The system cannot find the path specified.

C:\Users\maksim.kim\vimfiles\pack\minpac\start\vim-lsp-settings\servers\pyls>%~dp0\venv\bin\pyls.cmd %*
 1>pyls.cmd
The system cannot find the path specified.

from vim-lsp-settings.

habamax avatar habamax commented on May 30, 2024

Why bin is used though?

I can see no bin folder in venv, all binaries are in Scripts folder instead:

image

from vim-lsp-settings.

habamax avatar habamax commented on May 30, 2024

I have changed bin to Scripts and was able to half-install the server:

image

Not sure what is pyls.cmd and where it is copied/made from.

from vim-lsp-settings.

mattn avatar mattn commented on May 30, 2024

@habamax Where is pyls.cmd ?

C:\Users\maksim.kim\vimfiles\pack\minpac\start\vim-lsp-settings\servers\pyls\bin\pyls.cmd

?

from vim-lsp-settings.

tsuyoshicho avatar tsuyoshicho commented on May 30, 2024

@habamax #25 is merged. Please re-try it.

from vim-lsp-settings.

habamax avatar habamax commented on May 30, 2024

@mattn not sure. I tried to figure out what is going on in the cmd file and there was empty pyls.cmd created somewhere in the path. But I stopped looking into it as soon as I was told the issue is being handling at that moment.

@tsuyoshicho thx, it works now!

from vim-lsp-settings.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.