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

VS Code exception in problems window caused by PHP IntelliSense when VS Code starts up/ #684

Closed
Maelstorm1973 opened this issue Nov 13, 2018 · 1 comment

Comments

@Maelstorm1973
Copy link

Maelstorm1973 commented Nov 13, 2018

I am getting the following error from the VS Code on startup which VS Code identifies as PHP IntelliSense being the cause:

TypeError: Argument 1 passed to LanguageServer\uriToPath() must be of the type string, null given, called in C:\Users\Restricted User\.vscode\extensions\felixfbecker.php-intellisense-2.3.9\vendor\felixfbecker\language-server\src\LanguageServer.php on line 171 and defined in C:\Users\Restricted User\.vscode\extensions\felixfbecker.php-intellisense-2.3.9\vendor\felixfbecker\language-server\src\utils.php:38
Stack trace:
#0 C:\Users\Restricted User\.vscode\extensions\felixfbecker.php-intellisense-2.3.9\vendor\felixfbecker\language-server\src\LanguageServer.php(171): LanguageServer\uriToPath(NULL)
#1 C:\Users\Restricted User\.vscode\extensions\felixfbecker.php-intellisense-2.3.9\vendor\felixfbecker\advanced-json-rpc\lib\Dispatcher.php(160): LanguageServer\LanguageServer->initialize(Object(LanguageServerProtocol\ClientCapabilities), NULL, 388, NULL)
#2 C:\Users\Restricted User\.vscode\extensions\felixfbecker.php-intellisense-2.3.9\vendor\felixfbecker\language-server\src\LanguageServer.php(131): AdvancedJsonRpc\Dispatcher->dispatch(Object(AdvancedJsonRpc\Request))
#3 [internal function]: LanguageServer\LanguageServer->LanguageServer\{closure}()
#4 C:\Users\Restricted User\.vscode\extensions\felixfbecker.php-intellisense-2.3.9\vendor\sabre\event\lib\coroutine.php(64): Generator->valid()
#5 C:\Users\Restricted User\.vscode\extensions\felixfbecker.php-intellisense-2.3.9\vendor\sabre\event\lib\coroutine.php(118): Sabre\Event\{closure}()
#6 C:\Users\Restricted User\.vscode\extensions\felixfbecker.php-intellisense-2.3.9\vendor\felixfbecker\language-server\src\LanguageServer.php(154): Sabre\Event\coroutine(Object(Closure))
#7 C:\Users\Restricted User\.vscode\extensions\felixfbecker.php-intellisense-2.3.9\vendor\sabre\event\lib\EmitterTrait.php(88): LanguageServer\LanguageServer->LanguageServer\{closure}(Object(LanguageServer\Message))
#8 C:\Users\Restricted User\.vscode\extensions\felixfbecker.php-intellisense-2.3.9\vendor\felixfbecker\language-server\src\ProtocolStreamReader.php(56): Sabre\Event\Emitter->emit('message', Array)
#9 C:\Users\Restricted User\.vscode\extensions\felixfbecker.php-intellisense-2.3.9\vendor\sabre\event\lib\Loop\Loop.php(311): LanguageServer\ProtocolStreamReader->LanguageServer\{closure}()
#10 C:\Users\Restricted User\.vscode\extensions\felixfbecker.php-intellisense-2.3.9\vendor\sabre\event\lib\Loop\Loop.php(233): Sabre\Event\Loop\Loop->runStreams(NULL)
#11 C:\Users\Restricted User\.vscode\extensions\felixfbecker.php-intellisense-2.3.9\vendor\sabre\event\lib\Loop\Loop.php(194): Sabre\Event\Loop\Loop->tick(true)
#12 C:\Users\Restricted User\.vscode\extensions\felixfbecker.php-intellisense-2.3.9\vendor\sabre\event\lib\Loop\functions.php(122): Sabre\Event\Loop\Loop->run()
#13 C:\Users\Restricted User\.vscode\extensions\felixfbecker.php-intellisense-2.3.9\vendor\felixfbecker\language-server\bin\php-language-server.php(55): Sabre\Event\Loop\run()
#14 {main}
@felixfbecker
Copy link
Owner

🎉 This issue has been resolved in version 5.4.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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