LSP icon indicating copy to clipboard operation
LSP copied to clipboard

Package is not installable

Open fenollp opened this issue 3 months ago • 2 comments

Describe the bug

Recently, my installed LSP package disappeared. Today, installing it though the command pallette is impossible: LSP doesn't shows up in the results of the query lsp.

Reinstalling other LSP packages e.g. Rust's seems to work, until it fails on the missing dependent LSP base package:

reloading plugin LSP-rust-analyzer.plugin_commands
Traceback (most recent call last):
  File "/opt/sublime_text/Lib/python38/sublime_plugin.py", line 325, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.8/importlib/__init__.py", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 868, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/pete/.config/sublime-text/Installed Packages/LSP-rust-analyzer.sublime-package/plugin_commands.py", line 1, in <module>
  File "/home/pete/.config/sublime-text/Installed Packages/LSP-rust-analyzer.sublime-package/plugin.py", line 1, in <module>
ModuleNotFoundError: No module named 'LSP'

To Reproduce

Steps to reproduce the behavior:

  1. Look for lsp in the command palette (Install package...)
  2. Scroll for ages because so many packages match just 3 letters
  3. Don't find the LSP package

Expected behavior

I'd expect either of these:

  • LSP package shows up in the package list, preferably at the top or "near" it
  • Installing a package that depends on LSP, should install LSP
  • Have a synonym package in the list with a longer (more precise) name e.g. LSP-bare-minimum
  • https://lsp.sublimetext.io/troubleshooting/ should prove a way to install LSP in a Terminal-only way

Environment (please complete the following information):

  • OS: Ubuntu 23.10
  • Sublime Text version: (stable) 4169
  • LSP version: _
  • Language servers used: rust-analyzer, gopls, ..

fenollp avatar May 08 '24 09:05 fenollp