Comments (8)
I haven't tested with PHP8, but for PHP7.4 the quickest/easiest solution for this problem is to ensure php.ini for the CLI is set to NOT output errors for use of deprecated functions.
In other words, users with this problem probably have error_reporting set to E_ALL in php.ini. Changing it to :
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
and restarting Atom should resolve the problem (it did for me). Preferable to downgrading PHP to 7.3.
I believe a permanent fix is being sought here in the upstream code: https://github.com/felixfbecker/php-advanced-json-rpc/issues. It's probably a trivial change, but beyond my abilities.
from ide-php.
I haven't tested with PHP8, but for PHP7.4 the quickest/easiest solution for this problem is to ensure php.ini for the CLI is set to NOT output errors for use of deprecated functions.
In other words, users with this problem probably have error_reporting set to E_ALL in php.ini. Changing it to :
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
and restarting Atom should resolve the problem (it did for me). Preferable to downgrading PHP to 7.3.
Tried using php8.0, I can confirm this workaround don't work.
It's sad to see that I'm not able to try this plugin just because it uses deprecated functions...
from ide-php.
Same on OpenSUSE Leap 15.3 & PHP 7.4.6, Atom 1.52.0 x64.
I've found out that maximum PHP version supported is 7.3.9.
from ide-php.
When using older PHP version it works indeed. I couldn't find anywhere details about the supported php versions, they should mention it.
from ide-php.
You shouldn't have closed it :) it's PHP 8 released already :)
from ide-php.
Ah yes :)
from ide-php.
I haven't tested with PHP8, but for PHP7.4 the quickest/easiest solution for this problem is to ensure php.ini for the CLI is set to NOT output errors for use of deprecated functions.
In other words, users with this problem probably have error_reporting set to E_ALL in php.ini. Changing it to :
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
and restarting Atom should resolve the problem (it did for me). Preferable to downgrading PHP to 7.3.I believe a permanent fix is being sought here in the upstream code: https://github.com/felixfbecker/php-advanced-json-rpc/issues. It's probably a trivial change, but beyond my abilities.
This fix worked for me, ditched PHP 8 to go back to PHP 7.4. I am hopeful about a fix and this language server being updated for 8, but nothing for 2 years from Felix.
from ide-php.
I've been able to reliably reproduce this.
- With a fresh Atom profile (
mv ~/.atom ~/.atom-backup
) - Install these packages:
apm install atom-ide-ui ide-php linter
- Start Atom. (This will install
busy-signal
,intentions
,linter-ui-default
.) - Choose "Disable Linter" in the prompt
- From now on, every PHP file opened will result in a new PHP Language Server being started.
The following error can be seen on the JavaScript console within Atom:
~/.atom/packages/ide-php/node_modules/atom-languageclient/build/lib/server-manager.js:5 Uncaught (in promise) Error: Emitter has been disposed
at Emitter.on (/usr/share/atom/resources/app/static/<embedded>:11)
at yt.onDidDestroy (~/.atom/packages/linter/dist/index.js:1)
at LinterPushV2Adapter.attach (~/.atom/packages/ide-php/node_modules/atom-languageclient/build/lib/adapters/linter-push-v2-adapter.js:28)
at PHPLanguageClient.startExclusiveAdapters (~/.atom/packages/ide-php/node_modules/atom-languageclient/build/lib/auto-languageclient.js:362)
at PHPLanguageClient.<anonymous> (~/.atom/packages/ide-php/node_modules/atom-languageclient/build/lib/auto-languageclient.js:298)
at Generator.next (<anonymous>)
at fulfilled (~/.atom/packages/ide-php/node_modules/atom-languageclient/build/lib/auto-languageclient.js:4)
I've worked around this by disabling the "Diagnostics" feature within atom-ide-ui
.
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
- 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.