Git Product home page Git Product logo

Comments (10)

tsufeki avatar tsufeki commented on May 27, 2024 1

Oh, I got it: I accidentally override all env vars when spawning the php process. Expect a fix soon.

from tenkawa-php-language-server.

tsufeki avatar tsufeki commented on May 27, 2024 1

I've pushed new version to the marketplace, should work now. Thanks for helping!

from tenkawa-php-language-server.

tsufeki avatar tsufeki commented on May 27, 2024

Hi, can you check if there is something in the logs? Like this:

image

from tenkawa-php-language-server.

lgraziani2712 avatar lgraziani2712 commented on May 27, 2024

Yes! And it says nothing else 😢:

image

from tenkawa-php-language-server.

tsufeki avatar tsufeki commented on May 27, 2024

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.

lgraziani2712 avatar lgraziani2712 commented on May 27, 2024

Yes, the php from PATH env is the same. I also tried to set tenkawaphp.executablePath, but it throws the same message.

image

from tenkawa-php-language-server.

lgraziani2712 avatar lgraziani2712 commented on May 27, 2024

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.

lgraziani2712 avatar lgraziani2712 commented on May 27, 2024

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.

lgraziani2712 avatar lgraziani2712 commented on May 27, 2024

Maybe because of this? microsoft/vscode#2809 (comment)

from tenkawa-php-language-server.

lgraziani2712 avatar lgraziani2712 commented on May 27, 2024

Is working as expected now!

Thanks for your work!

from tenkawa-php-language-server.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.