Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is indexing ever finished? #17

Closed
umpirsky opened this issue Jul 4, 2017 · 9 comments
Closed

Is indexing ever finished? #17

umpirsky opened this issue Jul 4, 2017 · 9 comments

Comments

@umpirsky
Copy link

umpirsky commented Jul 4, 2017

This is my console output:

[Info  - 6:06:27 PM] Initialising
[Info  - 6:06:30 PM] Initialised in 2409 ms
[Info  - 6:06:32 PM] Indexing started.
[Warn  - 6:06:34 PM] file:///home/umpirsky/Projects/yo/vendor/composer/autoload_classmap.php exceeds maximum file size.
[Warn  - 6:06:34 PM] file:///home/umpirsky/Projects/yo/vendor/composer/autoload_static.php exceeds maximum file size.

And status bar label indicates it's still indexing after several hours:

screenshot from 2017-07-04 19-49-58

It this expected?

@bmewburn
Copy link
Owner

bmewburn commented Jul 4, 2017

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.

@umpirsky
Copy link
Author

umpirsky commented Jul 5, 2017

@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

@bmewburn
Copy link
Owner

bmewburn commented Jul 5, 2017

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

@umpirsky
Copy link
Author

umpirsky commented Jul 5, 2017

@bmewburn Yes.

@umpirsky
Copy link
Author

umpirsky commented Jul 5, 2017

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.

@bmewburn
Copy link
Owner

bmewburn commented Jul 6, 2017

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.

@umpirsky
Copy link
Author

umpirsky commented Jul 6, 2017

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 git@github.com:Sylius/Sylius.git
cd Sylius
composer install

It has more then 15000 php files.

@bmewburn
Copy link
Owner

bmewburn commented Nov 5, 2017

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

@bmewburn bmewburn closed this as completed Nov 5, 2017
@piavgh
Copy link

piavgh commented Oct 1, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants