sublimelsp / LSP-intelephense

PHP support for Sublime's LSP plugin provided through intelephense.
MIT License
96 stars 3 forks source link

Intelephense disabled NoneType, no attribute cache_path #75

Closed martijndeb closed 2 years ago

martijndeb commented 2 years ago

Hi! With the current installed package I have some problems starting lsp-intelephense. I get the following traceback when using the following versions:

Sublime Text: 4126 Sublime-lsp: 1.16.1 lsp-intelephense: 1.0.24

Unable to start subprocess for LSP-intelephense
Traceback (most recent call last):
  File "C:\<snip>\Installed Packages\LSP.sublime-package\plugin/core/windows.py", line 246, in start_async
    additional_variables = plugin_class.additional_variables()
  File "C:\<snip>\AppData\Roaming\SUBLIM~1\Packages\LSP_UT~1\st3\lsp_utils\_client_handler\abstract_plugin.py", line 96, in additional_variables
    return cls.get_additional_variables()
  File "C:\<snip>\Installed Packages\LSP-intelephense.sublime-package\plugin.py", line 33, in get_additional_variables
AttributeError: 'NoneType' object has no attribute 'cache_path'
jfcherng commented 2 years ago

Did you try restarting ST? That error message indicates sublime is None... 🤔

martijndeb commented 2 years ago

I restarted the whole machine, which seems to fix it. I often have multiple windows open, so one might have been left open while updating. Thanks, the best fixes are no fixes :D.