Giter Site home page Giter Site logo

Comments (15)

mikebronner avatar mikebronner commented on August 14, 2024 10

Make sure to include the executable file as well, not just the path.

from ide-php.

damieng avatar damieng commented on August 14, 2024 5

I updated the description for the next version that will clarify the php.exe part should be included.

from ide-php.

na2axl avatar na2axl commented on August 14, 2024

@mikebronner this fixed my problem, thank you... But I've also a question... Why using the PATH seems to not work? I've also tried to include the executable file in the PHP_HOME variable (the path is C:\PHP\php.exe) but nothing... It has worked only when I've set the path to the php executable directly in ide-php settings.

from ide-php.

mikebronner avatar mikebronner commented on August 14, 2024

It's been a while, but I believe windows ignores executables in PATH variables. I'll defer to @damieng though, for a final answer. :)

from ide-php.

damieng avatar damieng commented on August 14, 2024

If you have configured a path in ide-php it will attempt to use that binary, e.g. c:\myapps\php7\php.exe

If you haven't then it will look for the PHP_HOME environment folder which points to a directory. It will try and execute php from in there.

If neither of these things are set it just tries to execute php which will search through your PATH. i.e. if you are able to type php --version from the command prompt in Windows and see correct output then you shouldn't need to configure or set anything.

Is found at really "..." on your system? If so I'd recommend going into your settings for ide-php and clearing the "PHP Path" field as it sounds like you have put ... in there by mistake.

from ide-php.

na2axl avatar na2axl commented on August 14, 2024

@damieng thank you for the answer...

I will explain what I've done exactly:

  1. I've use the PATH environment variable to set the path to php 7 (the path is C:\PHP) but the plugin reports the error "IDE-PHP could not launch your PHP runtime. No PHP interpreter found at php"
  2. I've use the PHP_HOME environment variable to set the same path to my php 7 installation but ide-php reports the same error
  3. I've set the path to php 7 directly in ide-php settings and it reports the error the error "IDE-PHP could not launch your PHP runtime. No PHP interpreter found at C:\PHP\"
  4. With the answer of @mikebronner, I've set the path to my php 7 executable (c:\php\php.exe) directly in ide-php settings and it's work perfectly

from ide-php.

damieng avatar damieng commented on August 14, 2024
  1. That's strange as that's the very configuration I use. Does typing php --version in the command prompt work okay?
  2. Should definitely work - at a loss as to why
  3. If you set the configuration by hand in ide-php it should be fully qualified including the php.exe so c:\PHP\php.exe should do it

I assume that's what you did in 4?

from ide-php.

na2axl avatar na2axl commented on August 14, 2024
  1. Yes, php -v works in the console
    php
  2. I've tried several times, with x86 and x64 releases of php 7 but nothing
  3. Yes it's exactly what I've done in 4

from ide-php.

damieng avatar damieng commented on August 14, 2024

Given this is working for you I'm going to close down this issue.

from ide-php.

madvik avatar madvik commented on August 14, 2024

I have the same problem.

from ide-php.

rsese avatar rsese commented on August 14, 2024

What operating system are you running and what's the output of this command @madvik?

php -v

Also, what did you set Settings > Packages > ide-php > PHP Path to?

from ide-php.

madvik avatar madvik commented on August 14, 2024

Windows 8.1 Entreprise
image

image

from ide-php.

rsese avatar rsese commented on August 14, 2024

The PHP Path setting should include the .exe file as mentioned in the setting description, can you add \php.exe to the end of your path?

from ide-php.

 avatar commented on August 14, 2024

hey, I use xampp instead of raw apache installation, how to make atom php ide work with xampp php intrepretor?.

from ide-php.

damieng avatar damieng commented on August 14, 2024

@develsrk The upstream langauge server https://github.com/felixfbecker/php-language-server requires the regular PHP runtime as far as I know but you could ask there.

from ide-php.

Related Issues (20)

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.