Comments (15)
Make sure to include the executable file as well, not just the path.
from ide-php.
I updated the description for the next version that will clarify the php.exe part should be included.
from ide-php.
@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.
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.
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.
@damieng thank you for the answer...
I will explain what I've done exactly:
- 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 atphp
" - 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 - 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\
" - 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.
- That's strange as that's the very configuration I use. Does typing
php --version
in the command prompt work okay? - Should definitely work - at a loss as to why
- 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.
- Yes,
php -v
works in the console
- I've tried several times, with x86 and x64 releases of php 7 but nothing
- Yes it's exactly what I've done in 4
from ide-php.
Given this is working for you I'm going to close down this issue.
from ide-php.
I have the same problem.
from ide-php.
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.
from ide-php.
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.
hey, I use xampp instead of raw apache installation, how to make atom php ide work with xampp php intrepretor?.
from ide-php.
@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)
- Won't properly detect Xdebug HOT 1
- issue in uninstalling ide-php package HOT 1
- not outline visible HOT 3
- Should you write a separate version for atom-ide-community HOT 1
- Crash: xdebug-handler: A non well formed numeric value encountered
- PHP 7.4 support HOT 1
- IDE-PHP and PHP 7.4 not working HOT 1
- ErrorException: Array and string offset access syntax with curly braces is deprecated
- Not compatible to PHP 7.4 using php-fpm and XDEBUG? HOT 1
- Listar funciones de un archivo externo HOT 1
- FelixFBecker initializing for htdocs HOT 1
- ide-php atom package makes some autocorrect packages to not function correctly [Urgent]
- Functions don't fold completely when HEREDOC is used HOT 1
- FelixFBecker keeps initializing HOT 8
- php-ide crash HOT 8
- Update JsonMapper.php
- php pakage is not working
- [Feature Request] PHP 8 Support HOT 4
- PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in php 7.4
- Linux Mint: No Paths to PHP Work 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 ide-php.