blindcoder, to php
@blindcoder@toot.berlin avatar

Just spent TWO HOURS debugging PHP code because I relied on my IDE and github Copilot which both didn't catch the bug in the code below:

<?php
if (array_key_exists("error", $response){
$return_value = [];
}
?>

Error message was: PHP Parse error: syntax error, unexpected token ";" in <file> on line 3

Yes, it's on me, but I'm supposed to test this tech for my employer and results are not looking favorably.

Edit: added proper line number for my example

#PHP #IDE #SoftwareDevelopment #Copilot

Sdfendor,
@Sdfendor@chaos.social avatar

@blindcoder If you cut out the code and paste it in again, does anything change? I have problems with #PHPStorm myself with the more recent versions, sometimes their #Intellisense (code highlighting, error reporting, warnings, refactorings etc.) seems to get stuck in a certain state, false positives or false negatives are the consequence. So I fix a problem which is underlined red and afterwards the underline stays in.
I as well tinker around with the #copilot plugin.

michael,
@michael@thms.uk avatar

@Sdfendor

This is happening so so much these days. It’s really getting beyond annoying. Today I had to actually quit phpstorm twice, because it was stuck in a false negative state.

I wish they’d just spend some time improving/fixing this, instead of inventing ‘new terminals’, AI, or whatever else

#PHPStorm #Intellisense

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • Durango
  • megavids
  • InstantRegret
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ethstaker
  • osvaldo12
  • modclub
  • normalnudes
  • provamag3
  • tester
  • anitta
  • Leos
  • lostlight
  • All magazines