by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 16 01:58
    renovate[bot] synchronize #463
  • May 16 01:58

    renovate[bot] on semver-7.x

    chore(deps): update dependency … (compare)

  • May 16 01:58
    prettier-github[bot] edited #480
  • May 16 01:58
    renovate[bot] edited #480
  • May 16 01:58
    renovate[bot] synchronize #464
  • May 16 01:58

    renovate[bot] on execa-4.x

    chore(deps): update dependency … (compare)

  • May 16 01:58
    renovate[bot] synchronize #462
  • May 16 01:58

    renovate[bot] on mz-2.x

    chore(deps): update dependency … (compare)

  • May 16 01:57
    renovate[bot] edited #435
  • May 16 01:57
    renovate[bot] synchronize #392
  • May 16 01:57

    renovate[bot] on all-minor-patch

    chore(deps): update all non-maj… (compare)

  • May 15 05:13
    gauravmak closed #473
  • May 15 05:13
    gauravmak commented #473
  • May 14 18:12
    gszy commented #461
  • May 14 18:07
    gszy commented #473
  • May 12 07:35
    Ionizedse commented #485
  • May 11 14:08
    Ionizedse commented #485
  • May 10 08:18
    ILYA19840207 opened #485
  • May 08 08:59
    prettier-github[bot] edited #480
  • May 08 08:59
    renovate[bot] edited #480
Felix Becker
@felixfbecker
You don’t need to install typescript globally
the index is already stored in a cache file
Stuardo -StR- Rodríguez
@str
@felixfbecker I was readin open tickets, and I read the index was stored in mem. But anyways. What do you think about the flow of when to re-build the index?
Also, the user should be able to change wich file extensions to parse. For example CakePHP uses .ctp for their templates, and the PHP code there should also be parsed.
And there is no way for me to add ctp to my project settings to include that extension for that project.
Felix Becker
@felixfbecker
It’s read into memory from a cache file
Stuardo -StR- Rodríguez
@str
@felixfbecker OK, then it will be easier.
@felixfbecker What about the rest of the ideas?
Felix Becker
@felixfbecker
am I correct that your idea are basically “explicit indexing instead of automatic indexing"
not sure if that’s a good default
Stuardo -StR- Rodríguez
@str
Right
Felix Becker
@felixfbecker
it would be very annoying for small projects
Stuardo -StR- Rodríguez
@str
What about a flag to turn on/off auto/explicit?
so, for small projects it will be beter auto , and for very big ones, explicit
Currently, it's very annoying to have to wait 10 mins every time I switch projects.
Stuardo -StR- Rodríguez
@str
@felixfbecker I'm checking the other most used PHP intellisense plugin (Crane) and It does have the enableCache flag, and it's even true by default.
Felix Becker
@felixfbecker
Feel free to do a PR
Stuardo -StR- Rodríguez
@str
@felixfbecker folding a function with a heredoc string, does not work. It folds the code inside the function until before the first line of the string. Is that a bug related to the plugin or to the language-server?
Felix Becker
@felixfbecker
what do you mean with folding?
vscode code folding?
that is indentation based, not handled by this plugin
Stuardo -StR- Rodríguez
@str
Yes, vscode folding
Stuardo -StR- Rodríguez
@str
@felixfbecker now I see what you meant: Microsoft/vscode#3422
Stuardo -StR- Rodríguez
@str
The find-all-references for a private property, does not work, right?
Kashin Chiao
@Kashin-J
It looks like vscode-php-intellisense does not support multiple projects in Multi-root Workspaces but https://github.com/bmewburn/intelephense is supported and is this a bug?
Dean Nicholls
@DeanNonatomic
Hi guys, is there a way to stop intellisense suggestions when writing html in a php file?
Tejas H
@CodingCreate101
Yeah. It's annoying right?
I would like to know if there is anything we can do about it.
Jari Pennanen
@Ciantic
Is absolute path include supported?
Jari Pennanen
@Ciantic
Noting this here:
so I can remember it again :)
Jari Pennanen
@Ciantic
    public function index(): Promise
    {
        return coroutine(function () {
            $pattern = Path::makeAbsolute('**/*.php', $this->rootPath);
            $uris = yield $this->filesFinder->find($pattern);

            // CIANTIC Fixes things for good
            if (preg_match("#wp-content[\\\\/]themes#", $this->rootPath)) {
                $this->client->window->logMessage(MessageType::INFO, "My WordPress themes should have stuff from here!");
                $this->composerLock = json_decode(file_get_contents("file:///C:/DepSource/WP/composer.lock"));
                $this->composerJson = json_decode(file_get_contents("file:///C:/DepSource/WP/composer.json"));
                $this->client->window->logMessage(MessageType::INFO, "test" . var_export($this->composerLock, true) . var_export($this->composerJson, true));
                $uris = array_merge($uris, yield $this->filesFinder->find('C:/DepSource/WP/**/*.php'));
            }
found a cool way to hack this
so I got a cache working too
Natta Wang
@xenogew
Sorry guys, but I need suggestion.
I working in a PHP project which run by PHP5.6 runtime.
And I just started to use VS Code with php-intellisense plugin and it said that it need PHP7 runtime at least.
Can I install PHP7 runtime for plugin but work with my PHP5.6 project?
Will it cause any problems or has it kinds of setting something to work with?
My dev environment
Windows 10
XAMPP with PHP5.6 runtime
Tejas H
@CodingCreate101
I don't think it does. You can install two different versions and use specific version for specific task. However, you need to specify that in respective application.
Jon Franchi
@JonFranchi
Am I supposed to see something in the output after it loads? I don't see anything in the documentation about it, but others reference indexing notices. I get nothing, ever, and no error messages. Attempts to search definitions just search forever.
Felix
@gtfcugb
hi why this is a error? alt
alt
Felix
@gtfcugb
Filipe Luis 
@flschaves_twitter
hey guys, i just installed vscode and php intellisense, but can't go to definition in any function or class
already set php.executablePath to my php7 executable
jsninoc
@jsninoc
Hi
I do not see the abbreviations of this extension, what should I do? I already have PHP added to my PATH and I also have php.suggest.basic in false
Herbert Pimentel
@herbertpimentel
Jsninoc
@jsninoc check your console on vs code
Steven De Groote
@stevendegroote

I'm giving VS code a spin with PHP, but am sadly unable to get code completion / intellisense to work. At startup, I get this error:

[Error - 19:15:37] Server initialization failed.
Message: UnexpectedValueException: RecursiveDirectoryIterator::__construct(g:/webroot/f1technical11\resources\node_modules\grunt-contrib-cssmin\node_modules\maxmin\node_modules\pretty-bytes\node_modules\meow\node_modules\normalize-package-data\node_modules\validate-npm-package-license\node_modules\spdx-expression-parse\node_modules,g:/webroot/f1technical11\resources\node_modules\grunt-contrib-cssmin\node_modules\maxmin\node_modules\pretty-bytes\node_modules\meow\node_modules\normalize-package-data\node_modules\validate-npm-package-license\node_modules\spdx-expression-parse\node_modules): The system cannot find the path specified. (code: 3) in C:\Users\Steven De Groote.vscode\extensions\felixfbecker.php-intellisense-2.3.3\vendor\webmozart\glob\src\Iterator\RecursiveDirectoryIterator.php:43
Stack trace:

#0 C:\Users\Steven De Groote.vscode\extensions\felixfbecker.php-intellisense-2.3.3\vendor\webmozart\glob\src\Iterator\RecursiveDirectoryIterator.php(43): RecursiveDirectoryIterator->construct('g:/webroot/f1te...', 4128)

#1 C:\Users\Steven De Groote.vscode\extensions\felixfbecker.php-intellisense-2.3.3\vendor\webmozart\glob\src\Iterator\RecursiveDirectoryIterator.php(55): Webmozart\Glob\Iterator\RecursiveDirectoryIterator->
construct('g:/webroot/f1te...', 4128)

#2 [internal function]: Webmozart\Glob\Iterator\RecursiveDirectoryIterator->getChildren()

#3 C:\Users\Steven De Groote.vscode\extensions\felixfbecker.php-intellisense-2.3.3\vendor\webmozart\glob\src\Iterator\RegexFilterIterator.php(130): FilterIterator->next()

I've tried disabling and re-enabling the plugin, but to no avail.
Any suggestions would we welcome!