sublimelsp / LSP-intelephense

PHP support for Sublime's LSP plugin provided through intelephense.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

global name 'path' is not defined

anovsiradj opened this issue · comments

hello.

in the last few days, the package keep complaining about global name 'path' is not defined.
i am not pretty sure how this happen.

image

sublime console

Unable to start subprocess for LSP-intelephense
Traceback (most recent call last):
  File "C:\Users\JMC002\AppData\Roaming\Sublime Text 3\Installed Packages\LSP.sublime-package\plugin/core/windows.py", line 324, in start_async
    cwd = plugin_class.on_pre_start(self._window, initiating_view, workspace_folders, config)
  File "C:\Users\JMC002\AppData\Roaming\SUBLIM~1\Packages\LSP_UT~1\st3\lsp_utils\_client_handler\abstract_plugin.py", line 130, in on_pre_start
    extra_paths = path.pathsep.join(cls.get_additional_paths())
NameError: global name 'path' is not defined

(sorry forr my english)

apparently, my lsp_utils folder is not update.

uninstall then re-install the LSP-intelephense will delete and re-create lsp_utils folder.
(but re-installing LSP package will not).

In case anyone stumbles upon this issue, the solution is to run Package Control: Satisfy Dependencies from the Command Palette.