CodeIgniter Forums
Visual Studio Code cannot detect CI4 functions - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Visual Studio Code cannot detect CI4 functions (/showthread.php?tid=80240)



Visual Studio Code cannot detect CI4 functions - mrdaljama - 10-05-2021

Hello and good day! Can someone help me how can I get intellisense to work completely for CI4? Like this method for request object, it doesn't get detected.

[Image: f8I91W6.png]

I have the following extensions:

[Image: Foep7r6.png]

Note: Only the intellisense is not working for CI4 only, not for the others like PHP, CSS, HTML.


RE: Visual Studio Code cannot detect CI4 functions - paulbalandan - 10-06-2021

Hi, I am using VS Code. `$this->request` is typehinted to the RequestInterface while `getPost()` is a method from the `IncomingRequest` class, an implementing class of the RequestInterface. There exists a discrepancy of calling a method not defined in the interface but on the concrete class. For now, we can do nothing on it solidly. I suggest you ignore those red lines for now, at least.


RE: Visual Studio Code cannot detect CI4 functions - InsiteFX - 10-08-2021

phpStorm does the same thing, only thing to do is like @paulbalandan mentioned.


RE: Visual Studio Code cannot detect CI4 functions - wdeda - 10-08-2021

PHP Intellisense for CodeIgniter developer has an alert on the extension page in VS Code:
This extension is developed for codeigniter framework 3.X (Don't support CI 4.X).


RE: Visual Studio Code cannot detect CI4 functions - UchihaSV - 06-06-2023

VS Code still no have CI4 system functions autocomplete? How about add official QoL extension update for CI4?
It's hard to write code in 2023 without autocompelete popup help info in line, need keep in mind a loot things or alt+tab to browser + open codeigniter docs, forum and search in web, like u write not in IDE, but in Notepad with color theme)


RE: Visual Studio Code cannot detect CI4 functions - kenjis - 06-25-2023

Visual Studio Code Version: 1.79.2
PHP Intelephense v1.9.5

[Image: 2023-06-26-8-18-48.png]