@@ -66,19 +66,14 @@ func InstallLanguageServer() (string, error) {
6666 }
6767 // git submodule init
6868 log .Error ("Installing pylsp..." )
69- if err := exec .Command ("git" , "submodule" , "init" ).Run (); err != nil {
70- log .Error ("git submodule init failed: %v" , err )
71- return "" , err
72- }
73- // git submodule update
74- if err := exec .Command ("git" , "submodule" , "update" ).Run (); err != nil {
75- log .Error ("git submodule update failed: %v" , err )
69+ if err := exec .Command ("git" , "submodule" , "update" , "--remote" , "--init" , "-f" ).Run (); err != nil {
70+ log .Error ("git clone failed: %v" , err )
7671 return "" , err
7772 }
7873 // python -m pip install -e projectRoot/pylsp
7974 log .Error ("Running `python3 -m pip install -e pylsp/` .\n This might take some time, make sure the network connection is ok." )
80- if err := exec .Command ("python3" , "-m" , "pip" , "install" , "-e" , "pylsp/" ).Run (); err != nil {
81- log .Error ("python -m pip install failed: %v" , err )
75+ if err := exec .Command ("python3" , "-m" , "pip" , "install" , "--break-system-packages" , "- e" , "pylsp/" ).Run (); err != nil {
76+ log .Error ("python3 -m pip install failed: %v" , err )
8277 return "" , err
8378 }
8479 if err := exec .Command ("pylsp" , "--version" ).Run (); err != nil {
0 commit comments