Hi there is a plugin to show the signature of php native function
for example if i write in_array it must show :
in_array(mixed $needle, array $haystack, bool $strict = false): bool
thank you
Hi there is a plugin to show the signature of php native function
for example if i write in_array it must show :
in_array(mixed $needle, array $haystack, bool $strict = false): bool
thank you
Do you have node.js installed on your machine? Do you press “OK” or “Yes” if you are asked to install?
Also, may try to restart ST.
Try installing node.js and also see the console, maybe take a screenshot of the console for more debuging feedback and output cause like this it may give you this particular error but at times it could be something different that is hidden.
May update to Package Control first by executing the following code in ST’s console.
from urllib.request import urlretrieve;urlretrieve(url="https://github.com/wbond/package_control/releases/latest/download/Package.Control.sublime-package", filename=sublime.installed_packages_path() + '/Package Control.sublime-package')
Installed from package control :
git: untracking working dir /home/stefano/localhost/gestionalefirenzeufficio
Unable to start subprocess for LSP-intelephense
Traceback (most recent call last):
File “/home/stefano/.config/sublime-text/Installed Packages/LSP.sublime-package/plugin/core/windows.py”, line 279, in start_async
transport = create_transport(transport_config, transport_cwd, session)
File “/home/stefano/.config/sublime-text/Installed Packages/LSP.sublime-package/plugin/core/transports.py”, line 265, in create_transport
process = start_subprocess()
File “/home/stefano/.config/sublime-text/Installed Packages/LSP.sublime-package/plugin/core/transports.py”, line 253, in start_subprocess
return _start_subprocess(config.command, stdin, stdout, subprocess.PIPE, startupinfo, config.env, cwd)
File “/home/stefano/.config/sublime-text/Installed Packages/LSP.sublime-package/plugin/core/transports.py”, line 332, in _start_subprocess
process = subprocess.Popen(
File “./python3.8/subprocess.py”, line 858, in init
File “./python3.8/subprocess.py”, line 1704, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: ‘intelephense’
If you execute
from pathlib import Path; list((Path(sublime.cache_path())/'../Package Storage/lsp_utils/node-runtime').glob('*'))
in ST console, what’s the output?
[PosixPath(’/home/stefano/.cache/sublime-text/Cache/…/Package Storage/lsp_utils/node-runtime/18.18.1’)]
Seeing
Nodejs Plugin - INFO - 2024-04-22T19:01:31.522375 => Running `node_builddocs` to generate Node.js completions
in your console, I wonder “install package control” means you installed this… https://github.com/tanepiper/SublimeText-Nodejs No. That’s not required.
Though that doesn’t explain why FileNotFoundError: [Errno 2] No such file or directory: 'intelephense'
. You didn’t change any plugin settings after installing LSP and LSP-intelephense right?
Could you run troubleshooting LSP server for LSP-intelephense from the quick panel and paste the result here?
[Errno 2] No such file or directory: 'intelephense'
[
"intelephense",
"--stdio"
]
intelephense --stdio
embedding.php
(source.php)
{
"clearCache": false,
"licenceKey": ""
}
{}
{
"PATH": "/home/stefano/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:/home/stefano/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin:"
}
/home/stefano/localhost/garanzieariete/app/Views/user/doa_righe_sparate/lista_doa_righe_sparate.php
{
"auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc",
"lsp_active": null,
"syntax": "Packages/PHP/PHP.sublime-syntax"
}
embedding.php
[
"/home/stefano/localhost/garanzieariete"
]