DEVSENSE / phptools-docs

PHP Tools public content
Apache License 2.0
82 stars 10 forks source link

False error messages in Codeigniter 3 #677

Open ringerattila opened 1 month ago

ringerattila commented 1 month ago

When I develop in Codeigniter 3 PHP, the DEVSENSE report lot of errors, for e.g. undefined objects. The referenced objects are defined, no real errors, the code runs without any error. These are hundreds of false error messages (depending on project size). Even it makes false errors messages with a brand new Codeigniter installation - of course it contains no errors. I tried some other intellephense, all of them makes false error messages in Codeigniter 3.

jakubmisek commented 1 month ago

Thank you for trying our tools, and for reporting the issue.

We're aware that CodeIgniter has many broken (or not properly used) annotations across its codebase. It confuses the editor, code suggestions, and IntelliSense itself.

Currently, we work basically one by one and adjust the problems; as a workaround, I can only suggest disabling full workspace-wide analysis (F1 -> Command Palette -> Workspace Analysis - "opened").

Of course if you have a frequent case where a problem is falsely reported, please post a short reproducible sample and we will try to fix it first.

ringerattila commented 1 month ago

Hello Jakub, thank you for answering my question, I will try it.

regards, Attila

Jakub Míšek @.***> ezt írta (időpont: 2024. szept. 29., V, 12:43):

Thank you for trying our tools, and for reporting the issue.

We're aware that CodeIgniter has many broken (or not properly used) annotations across its codebase. It confuses the editor, code suggestions, and IntelliSense itself.

Currently, we work basically one by one and adjust the problems; as a workaround, I can only suggest disabling full workspace-wide analysis (F1 -> Command Palette -> Workspace Analysis - "opened").

Of course if you have a frequent case where a problem is falsely reported, please post a short reproducible sample and we will try to fix it first.

— Reply to this email directly, view it on GitHub https://github.com/DEVSENSE/phptools-docs/issues/677#issuecomment-2381306129, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIS5LSI3RT43P3LEHJURUO3ZY7KTJAVCNFSM6AAAAABPAYKGLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBRGMYDMMJSHE . You are receiving this because you authored the thread.Message ID: @.***>