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

Not Working After 3.8 Upgrade #2465

Closed
bradley opened this issue Apr 30, 2024 · 3 comments
Closed

Not Working After 3.8 Upgrade #2465

bradley opened this issue Apr 30, 2024 · 3 comments

Comments

@bradley
Copy link

bradley commented Apr 30, 2024

Describe the bug

Hate making a bug report that is essentially "it isnt working" but that's where Im at. Everything was fine until a couple weeks ago or so (vague for me because Ive been ignoring that LSP-Copilot stopped working for a bit but wanted to fix that today).

Having read many issue threads here I know that there was a recent upgrade to Python 3.8. I tried reinstalling LSP and LSP-Copilot in order to debug, but those steps arent working and not a single LSP or Copilot command will show up in my sublime's command prompt at all (yes Ive restarted a bunch and followed the guides in both projects).

After isolating LSP (e.g.; I removed copilot for now), and checking Subllime's logs on startup, I see the following issues (I'll follow with the full logs later):

ModuleNotFoundError: No module named 'typing_extensions'
plugins loaded
Package Control: Installing 4 libraries...
Package Control: The library "typing_extensions" is not available for Python 3.8
Package Control: The library "bracex" is not available for Python 3.8
Package Control: The library "wcmatch" is not available for Python 3.8
Package Control: The library "mdpopups" is not available for Python 3.8

To Reproduce

Steps to reproduce the behavior:

  1. I updated sublime text to latest version and have reinstalled LSP both via package control and via the git clone option.
  2. I see that LSP is listed as an installed package, but the dropdown commands for it are entirely greyed out, and no commands that begin with LSP: show up in the command prompt. Only the one to set its settings.
  3. This impacts Copilot and other LSP packages presumably.

Expected behavior

Expect to be able to run LSP commands and install additional LSP packages in a working manner.

Screenshots

N/A

startup, version: 4173 osx arm64 channel: dev
executable: /Applications/Sublime Text.app/Contents/MacOS/sublime_text
application: /Applications/Sublime Text.app
working dir: /
packages path: /Users/MY_USER_NAME/Library/Application Support/Sublime Text/Packages
state path: /Users/MY_USER_NAME/Library/Application Support/Sublime Text/Local
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/MY_USER_NAME/Library/Application Support/Sublime Text/Installed Packages
ignored_packages: ["Git Formats", "GitGutter", "PEGjs LiveScript", "Vintage"]
pre session restore time: 0.26953
OpenGL Context Information:
  GL API Version: 4.1 Metal - 88
  GLSL Version: 4.10
  Vendor: Apple
  Renderer: Apple M1 Max
startup time: 0.335146
git: using configuration from system git install
git: tracking working dir /Users/MY_USER_NAME/PATH/TO/PROJECT
first paint time: 0.347375
environment variables loaded using: /bin/zsh -l
reloading python 3.3 plugin Agila Theme.Agila
reloading plugin Default.arithmetic
reloading python 3.3 plugin Babel.plugin
reloading python 3.3 plugin Git.git_commands
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.echo
reloading plugin Default.exec
reloading python 3.3 plugin Mongoose CoffeeScript.CoffeeScript
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading python 3.3 plugin SublimeERB.erb_block
reloading plugin Default.html_print
reloading python 3.3 plugin JsPrettier.__init__
reloading python 3.3 plugin JsPrettier.JsPrettier
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.keymap
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.rename
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin Package Control.plugin
reloading plugin Pretty JSON.PrettyJson
reloading plugin Pretty JSON.PrettyJsonListeners
reloading plugin LSP.boot
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/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 "/Users/MY_USER_NAME/Library/Application Support/Sublime Text/Packages/LSP/boot.py", line 7, in <module>
    from .plugin.code_actions import LspCodeActionsCommand
  File "/Users/MY_USER_NAME/Library/Application Support/Sublime Text/Packages/LSP/plugin/__init__.py", line 3, in <module>
    from .core.edit import apply_text_edits
  File "/Users/MY_USER_NAME/Library/Application Support/Sublime Text/Packages/LSP/plugin/core/edit.py", line 3, in <module>
    from .protocol import Position
  File "/Users/MY_USER_NAME/Library/Application Support/Sublime Text/Packages/LSP/plugin/core/protocol.py", line 2, in <module>
    from .typing import StrEnum
  File "/Users/MY_USER_NAME/Library/Application Support/Sublime Text/Packages/LSP/plugin/core/typing.py", line 30, in <module>
    from typing_extensions import (  # noqa: F401
ModuleNotFoundError: No module named 'typing_extensions'
plugins loaded
Package Control: Installing 4 libraries...
Package Control: The library "typing_extensions" is not available for Python 3.8
Package Control: The library "bracex" is not available for Python 3.8
Package Control: The library "wcmatch" is not available for Python 3.8
Package Control: The library "mdpopups" is not available for Python 3.8
Package Control: Skipping automatic upgrade, last run at 2024-04-30 09:52:18, next run at 2024-04-30 17:52:18 or after

Check https://lsp.sublimetext.io/troubleshooting/#self-help-instructions on how to provide additional logs.

Environment (please complete the following information):

  • OS: macOS 14.4 (23E214)
  • Sublime Text version: 4173
  • LSP version: Latest from Git. Package Control says "No Description Provided, goto git repository". The VERSION file in my installed version says 2.0.0.
  • Language servers used: N/A So far. This may be relevant? However, I was using copilot previously which also stopped working.

Additional context

N/A

@rchl
Copy link
Member

rchl commented Apr 30, 2024

Open Preferences: Package Control Settings from the command palette and paste your settings here.

@bradley
Copy link
Author

bradley commented Apr 30, 2024

Open Preferences: Package Control Settings from the command palette and paste your settings here.

Oh wow, thank you @rchl. Running that caused me to see the details about python 3.8 in Package Control.sublime-settings in its updated channels section. Modifying my channels definition in my user version of Package Control.sublime-settings to include channel_v4.json fixed this and copilot for me. Thank you.

To anyone else who might arrive here, try running the command @rchl said, and adding v4 with:

{
    ... rest of your config...
    "channels":
    [
        "https://packagecontrol.github.io/channel/channel_v4.json",
        "https://packagecontrol.io/channel_v3.json"
    ],
}

@bradley bradley closed this as completed Apr 30, 2024
@rchl
Copy link
Member

rchl commented May 2, 2024

The recommendation is to not override the default setting as it already includes those.

(unless you of course want to also add some channels of your own but most people don't do that)

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

2 participants