Comments (10)
Oh, I got it: I accidentally override all env vars when spawning the php process. Expect a fix soon.
from tenkawa-php-language-server.
I've pushed new version to the marketplace, should work now. Thanks for helping!
from tenkawa-php-language-server.
Hi, can you check if there is something in the logs? Like this:
from tenkawa-php-language-server.
Yes! And it says nothing else 😢:
from tenkawa-php-language-server.
Are you sure php executable you use for test.php
and the one in your PATH env variable are the same? Maybe PATH is changed in your console's init scripts? Try running php --info
in a clean cmd.exe
window. Or maybe you're using WSL? Did you set tenkawaphp.executablePath
setting?
I'm not able to reproduce it on my windows machine :(
Thanks
from tenkawa-php-language-server.
Yes, the php from PATH env is the same. I also tried to set tenkawaphp.executablePath
, but it throws the same message.
from tenkawa-php-language-server.
Ok. I went to the tenkawa.php
file from my installed extension, and stored the phpinfo result in a file. What I found was that is NOT loading my PHP_INI_SCAN_DIR
env variable (and I have both at user and system level)
from tenkawa-php-language-server.
But I really don't know why running php in my CLI is loading env vars like PHP_INI_SCAN_DIR
but not in the extension.
If I run a php file with vscode it also uses that env var!
from tenkawa-php-language-server.
Maybe because of this? microsoft/vscode#2809 (comment)
from tenkawa-php-language-server.
Is working as expected now!
Thanks for your work!
from tenkawa-php-language-server.
Related Issues (14)
- slow indexing
- No indexing with LanguageClient-neovim HOT 5
- Snippets and suggestions to slow HOT 6
- annotation supports not complete HOT 4
- Goto method definition bug when mixed type HOT 3
- Allow to change phpstan rule level HOT 6
- Auto import of open bracket on complete HOT 1
- Possible to add additional stubs or build project-specific index? HOT 3
- Problems in loaded and import HOT 1
- Make server as TCP Server
- Refactoring Issues on windows HOT 1
- Go to definition it doesn't update metadata HOT 5
- PHP 7.4 Exception - ReflextionType::__toString() is deprecated HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tenkawa-php-language-server.