bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.61k stars 94 forks source link

When using Remote-SSH Intelephense shows every object as 'Undefined Type' so all my PHP scripts have tons of errors #2788

Open NBA707 opened 8 months ago

NBA707 commented 8 months ago

Describe the bug When using a remote SSH server to develop a laravel app on, I have the Use App\Models\MyTable or use DB; or use Log; use Storage; Every single time I utilize them in the code, intelephense reports 'Undefined Type 'DB' or Undefined Type 'MyTable' or Undefined Type 'Log'

Expected behavior All editor tabs are RED and show a large number of errors [{ "resource": "/home/database/sites/dashboard/app/Http/Controllers/CustomerQuoteSearchController.php", "owner": "_generated_diagnostic_collectionname#1", "code": "P1009", "severity": 8, "message": "Undefined type 'DB'.", "source": "intelephense", "startLineNumber": 146, "startColumn": 25, "endLineNumber": 146, "endColumn": 27 }]

[{ "resource": "/home/database/sites/dashboard/app/Http/Controllers/CustomerQuoteSearchController.php", "owner": "_generated_diagnostic_collectionname#1", "code": "P1009", "severity": 8, "message": "Undefined type 'Storage'.", "source": "intelephense", "startLineNumber": 170, "startColumn": 13, "endLineNumber": 170, "endColumn": 20 }]

Platform and version macOS 14.3 and Intelephense v1.10.2 remote SSH is to a Ubuntu 20.04 server

bmewburn commented 5 months ago

Are you using the vscode remote ssh extension? https://code.visualstudio.com/docs/remote/ssh

NBA707 commented 5 months ago

Yes, that is the remote ssh extension I am using.

Warren

From: Ben Mewburn @.> Date: Tuesday, April 9, 2024 at 6:55 PM To: bmewburn/vscode-intelephense @.> Cc: Warren Coykendall @.>, Author @.> Subject: Re: [bmewburn/vscode-intelephense] When using Remote-SSH Intelephense shows every object as 'Undefined Type' so all my PHP scripts have tons of errors (Issue #2788) Are you using the vscode remote ssh extension? https://code.visualstudio.com/docs/remote/ssh — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: ‍ ‍ ‍ ‍ ‍ ‍ NkdkJdXPPEBannerStart External Sender - From: (Ben Mewburn @.***>)https://us5.proofpointessentials.com/email-details/?k=k1&payload=53616c7465645f5fce70df6a82853bc144aede70f28005fd96fd0152496d6fc5a80c0292cd6070bd6b3dd06e046086623f68791cecd1d5c80c8e734f1def2f2b6abc64934ccbe21c5e61ef55ee6b32fb04b5e20cd53cd9a35e910534ddb30cbaae2d6881042f55838d601968cdafee5777f2d4681b2dbe8d46c291ccfd941efc33030b50ac36d368ace761fc6baf0eb371beda6455a6f724dcb29ca6e1b03d9ea585d5de723c054fa14ff74f14e338fdb093eebdf1c651f50cd2a2abbf35bd1f368619fd01089d319f480d46a4a5088943e24f7660a8a8a7d7375729a59e83e725d55bc59283279ef300e0f0b10d4263 This message came from outside your organization. Learn Morehttps://us5.proofpointessentials.com/email-details/?k=k1&payload=53616c7465645f5fce70df6a82853bc144aede70f28005fd96fd0152496d6fc5a80c0292cd6070bd6b3dd06e046086623f68791cecd1d5c80c8e734f1def2f2b6abc64934ccbe21c5e61ef55ee6b32fb04b5e20cd53cd9a35e910534ddb30cbaae2d6881042f55838d601968cdafee5777f2d4681b2dbe8d46c291ccfd941efc33030b50ac36d368ace761fc6baf0eb371beda6455a6f724dcb29ca6e1b03d9ea585d5de723c054fa14ff74f14e338fdb093eebdf1c651f50cd2a2abbf35bd1f368619fd01089d319f480d46a4a5088943e24f7660a8a8a7d7375729a59e83e725d55bc59283279ef300e0f0b10d4263

NkdkJdXPPEBannerEnd

Are you using the vscode remote ssh extension? https://code.visualstudio.com/docs/remote/sshhttps://urldefense.proofpoint.com/v2/url?u=https-3A__code.visualstudio.com_docs_remote_ssh&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=xi5DbiaSJN4EMQXaQFPlVt4ld6iCEVEOUTSFCK8dq-JsDzFdxfLS3zHZTLZodjDw&m=X4Jgy3l8mKbUwVBaAKklcJMF7aHmru4CJg0f_nh1kSYJ4NKM9_JttBNYlZoGEdLC&s=uZJs2y48j6HEIw8V68QEnnF4oQBslzw2JSkeMtCJVtU&e=

— Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_bmewburn_vscode-2Dintelephense_issues_2788-23issuecomment-2D2046317391&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=xi5DbiaSJN4EMQXaQFPlVt4ld6iCEVEOUTSFCK8dq-JsDzFdxfLS3zHZTLZodjDw&m=X4Jgy3l8mKbUwVBaAKklcJMF7aHmru4CJg0f_nh1kSYJ4NKM9_JttBNYlZoGEdLC&s=MbByoVqT3Av2_EwMvxyAOCIcZd4otrywTBIKK8R_tFs&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AMMZC24ZR6SR4AWG7PHLYSLY4SLXNAVCNFSM6AAAAABCXI5QUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBWGMYTOMZZGE&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=xi5DbiaSJN4EMQXaQFPlVt4ld6iCEVEOUTSFCK8dq-JsDzFdxfLS3zHZTLZodjDw&m=X4Jgy3l8mKbUwVBaAKklcJMF7aHmru4CJg0f_nh1kSYJ4NKM9_JttBNYlZoGEdLC&s=JWgbtudLZMCT-11HavHeKERGbt6BueVxV_tmk3Xcarg&e=. You are receiving this because you authored the thread.Message ID: @.***>

thekendog commented 1 month ago

Any solution to this? Running into the same issue. Every PHP function shows as undefined.

NBA707 commented 1 month ago

No not yet.