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

FileNotFoundError: resource "Packages/LSP/popups.css" not found #2502

Open
joshmfrankel opened this issue Jul 8, 2024 · 3 comments
Open
Labels
sublime issue Issues related to shortcomings or bugs in the ST API

Comments

@joshmfrankel
Copy link

joshmfrankel commented Jul 8, 2024

Describe the bug

Installing LSP and enabling the plugin produces a FileNotFoundError for popups.css

To Reproduce

Steps to reproduce the behavior:

  1. Package Control: Install Package
  2. Select "LSP"
  3. Console produces error

Expected behavior

popups.css should be found when loading package allowing package to load

Logs

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python38/sublime_plugin.py", line 432, in load_module
    m.plugin_loaded()
  File "/Users/joshfrankel/Library/Application Support/Sublime Text/Installed Packages/LSP.sublime-package/boot.py", line 197, in plugin_loaded
    load_css()
  File "/Users/joshfrankel/Library/Application Support/Sublime Text/Installed Packages/LSP.sublime-package/plugin/core/css.py", line 23, in load
    _css = CSS()
  File "/Users/joshfrankel/Library/Application Support/Sublime Text/Installed Packages/LSP.sublime-package/plugin/core/css.py", line 7, in __init__
    self.popups = sublime.load_resource("Packages/LSP/popups.css")
  File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python38/sublime.py", line 1199, in load_resource
    raise FileNotFoundError(f'resource "{name}" not found')
FileNotFoundError: resource "Packages/LSP/popups.css" not found

Environment (please complete the following information):

  • OS: macOS Sonoma 14.5
  • Sublime Text version: 4169
  • LSP version: 2.2.0
  • Language servers used: ruby-lsp
  • Python: 3.9.6

Additional context

  • I am utilizing asdf-vm locally BUT python is whatever macOS has installed by default.
  • Sublime Text is located within the /Application folder
  • Sublime Text is authorized for Full Disk Access
@rchl
Copy link
Member

rchl commented Jul 14, 2024

  • Is this the first and only error that you see on ST startup?
  • Does it happen on every start of ST or only during installation of the LSP package?

@tungp99
Copy link

tungp99 commented Jul 15, 2024

  • Is this the first and only error that you see on ST startup?

    • Does it happen on every start of ST or only during installation of the LSP package?

I experience the same issue, only when installing LSP package.

@rchl
Copy link
Member

rchl commented Jul 18, 2024

We are trying to load those resources from within a def plugin_loaded() hook so if it fails on install, it feels more like an ST issue. Though we could probably work around it.

Seems like a trivial issue if it only happens on install since it will be fine after first restart (which is recommended anyway).

@rchl rchl added the sublime issue Issues related to shortcomings or bugs in the ST API label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sublime issue Issues related to shortcomings or bugs in the ST API
Projects
None yet
Development

No branches or pull requests

3 participants