Coder Social home page Coder Social logo

Comments (9)

bmewburn avatar bmewburn commented on May 18, 2024

Perhaps the file count is not getting incremented on those warn files and then the promise to update the status text not resolved. Try adding those files to files.exclude. Turning on intelephense.debug.enable will also give a better indication of what's happening.

from vscode-intelephense.

umpirsky avatar umpirsky commented on May 18, 2024

@bmewburn Same result, I increased "intelephense.file.maxSize": 3000000 to avoid exceeds maximum file size error, with debug it gets stuck after 18455 files without error message:

[Info  - 10:06:17 AM] Initialising
[Info  - 10:06:18 AM] Initialised in 1300 ms
[Info  - 10:06:19 AM] Indexing started.
[Debug - 10:06:19 AM] onAddSymbols | file:///home/umpirsky/Projects/yo/vendor/friendsofsymfony/jsrouting-bundle/Command/RouterDebugExposedCommand.php | 1.772 ms | 17.2 MB
[Debug - 10:06:19 AM] onAddSymbols | file:///home/umpirsky/Projects/yo/vendor/friendsofsymfony/jsrouting-bundle/Command/DumpCommand.php | 2.343 ms | 17.7 MB
[Debug - 10:06:19 AM] onAddSymbols | file:///home/umpirsky/Projects/yo/vendor/friendsofsymfony/jsrouting-bundle/Response/RoutesResponse.php | 2.918 ms | 18.0 MB
...18455 files
[Debug - 10:07:57 AM] onAddSymbols | file:///home/umpirsky/Projects/yo/vendor/jms/serializer/src/JMS/Serializer/Exclusion/GroupsExclusionStrategy.php | 6.492 ms | 275.8 MB
[Debug - 10:07:57 AM] onAddSymbols | file:///home/umpirsky/Projects/yo/vendor/jms/serializer/src/JMS/Serializer/Exclusion/ExclusionStrategyInterface.php | 2.742 ms | 275.9 MB

from vscode-intelephense.

bmewburn avatar bmewburn commented on May 18, 2024

Does code completion etc still work after it appears to get stuck?

from vscode-intelephense.

umpirsky avatar umpirsky commented on May 18, 2024

@bmewburn Yes.

from vscode-intelephense.

umpirsky avatar umpirsky commented on May 18, 2024

On another smaller project it works:

[Info  - 7:11:46 PM] Initialising
[Info  - 7:11:48 PM] Initialised in 1689 ms
[Info  - 7:11:49 PM] Indexing started.
[Info  - 7:12:30 PM] Indexing ended | 11528 files | 41.117 s

Seems like it fails on large projects.

from vscode-intelephense.

bmewburn avatar bmewburn commented on May 18, 2024

Does your large project have ~18455 files? If so I suspect there's a read file error being thrown in a promise that is being ignored which would mean the indexing does actually finish but never acknowledged (eg the read count stays on 18454).

Off topic, what's the completion/go to/search etc experience like with a project that size? I have only used the extension on smaller projects with around 3000 files.

from vscode-intelephense.

umpirsky avatar umpirsky commented on May 18, 2024

Looks like it has 24840:

find . -mindepth 1 -type f -name "*.php" -exec printf x \; | wc -c
24840

It works most of the time, sometimes go to definition does not work, not sure if because of project size or sth else.

If you want to try large project, you can try:

git clone [email protected]:Sylius/Sylius.git
cd Sylius
composer install

It has more then 15000 php files.

from vscode-intelephense.

bmewburn avatar bmewburn commented on May 18, 2024

There's been some improvements with the promise handling. Indexing should now always complete in v0.8.0

from vscode-intelephense.

piavgh avatar piavgh commented on May 18, 2024

@bmewburn : I'm using version 0.8.8 but it still happens.
I have to uninstall this extension in order to use VSCode

from vscode-intelephense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.