-
Notifications
You must be signed in to change notification settings - Fork 188
Description
Describe the bug
When attempting to upgrade LSP-copilot to the latest version of @github/copilot-language-server in the MR TerminalFi/LSP-copilot#236 on MacOS. It fails to install the library and fails to launch.
To Reproduce
Steps to reproduce the behavior:
- Go to 'LSP-copilot`
- Clone it into the
Packagesdirectory - Change branches to
feat/copilotModels - Restart Sublime
- See errir
Expected behavior
Downloads and installs the node library
Screenshots
[lsp_utils] Deleting outdated Node.js runtime directory "/Users/terminal/Library/Caches/Sublime Text/Package Storage/lsp_utils/node-runtime/20.18.0"
[lsp_utils] Downloading Electron 33.0.0 (Node.js runtime 20.18.0) from https://github.com/electron/electron/releases/download/v33.0.0/electron-v33.0.0-darwin-arm64.zip
Package Control: Skipping automatic upgrade, last run at 2025-02-14 11:22:24, next run at 2025-02-14 19:22:24 or after
Unable to start subprocess for LSP-copilot
Traceback (most recent call last):
File "/Users/terminal/Library/Application Support/Sublime Text/Lib/python38/sublime_lib/resource_path.py", line 521, in read_bytes
return sublime.load_binary_resource(str(self))
File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python38/sublime.py", line 1211, in load_binary_resource
raise FileNotFoundError(f'resource "{name}" not found')
FileNotFoundError: resource "Packages/LSP-copilot/language-server/node_modules/@github/copilot-language-server/native/darwin-arm64/copilot-language-server" not found
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/terminal/Library/Application Support/Sublime Text/Lib/python38/lsp_utils/server_npm_resource.py", line 121, in install_or_update
ResourcePath(self._server_src).copytree(self._server_dest, exist_ok=True)
File "/Users/terminal/Library/Application Support/Sublime Text/Lib/python38/sublime_lib/resource_path.py", line 608, in copytree
resource.copy(file_path)
File "/Users/terminal/Library/Application Support/Sublime Text/Lib/python38/sublime_lib/resource_path.py", line 582, in copy
data = self.read_bytes()
File "/Users/terminal/Library/Application Support/Sublime Text/Lib/python38/sublime_lib/resource_path.py", line 523, in read_bytes
raise FileNotFoundError(str(self)) from err
FileNotFoundError: Packages/LSP-copilot/language-server/node_modules/@github/copilot-language-server/native/darwin-arm64/copilot-language-server
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/terminal/Library/Application Support/Sublime Text/Installed Packages/LSP.sublime-package/plugin/core/windows.py", line 260, in start_async
plugin_class.install_or_update()
File "/Users/terminal/Library/Application Support/Sublime Text/Lib/python38/lsp_utils/_client_handler/abstract_plugin.py", line 109, in install_or_update
server.install_or_update()
File "/Users/terminal/Library/Application Support/Sublime Text/Lib/python38/lsp_utils/server_npm_resource.py", line 127, in install_or_update
raise Exception('Error installing the server:\n{}'.format(error))
Exception: Error installing the server:
Packages/LSP-copilot/language-server/node_modules/@github/copilot-language-server/native/darwin-arm64/copilot-language-server
Logs
Check https://lsp.sublimetext.io/troubleshooting/#self-help-instructions on how to provide additional logs.
Environment (please complete the following information):
sublime_text:
build: 4191
channel: dev
platform:
system: MacOS
arch: arm64
portable: false
env_vars: '/bin/zsh -l'
system_info:
hardware: MBP 14inch 2022, 10-Core M1 Max, 64 GB, 512GB, Apple M1 Max
software: macOS 13.3 (22E252)
kernel_version: Darwin 24.1.0
open_gl_context_information:
gl_api_version: 4.1 Metal - 83.1
glsl_version: 4.10
vendor: Apple
renderer: Apple M1 MaxAdditional context
Add any other context about the problem here. For example, whether you're using a helper
package or your manual server configuration in LSP.sublime-settings. When using
a manual server configuration please include it here if you believe it's applicable.