Comments (9)
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.
@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.
Does code completion etc still work after it appears to get stuck?
from vscode-intelephense.
@bmewburn Yes.
from vscode-intelephense.
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.
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.
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.
There's been some improvements with the promise handling. Indexing should now always complete in v0.8.0
from vscode-intelephense.
@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)
- Intelephense indicates PHP SSH2 functions and constant undefined HOT 1
- `autoload-dev` seems to be ignored when renaming namespaces
- Recognizing defined constants for being objects has still an another bug
- erroneous expect type 'string' found 'void' HOT 2
- Constant marked "Undefined" in if-clause which checks if constant is defined. HOT 1
- Navigate to classes from yaml files
- Wrong type on dynamic object with string|null
- Enhance type recognition for values in SplDoublyLinkedList
- assert diagnostics
- Syntax error with dynamic enum access in PHP 8.3
- Unexpected P1010 Undefined function error for oci_set_prefetch_lob
- Process Itelephense filters on folders
- Autocomplete functions and attributes of variables in debug console
- Invalid Namespace definition
- I can't go to the method definition HOT 2
- PHP open and close brackets always seem to be misaligned when with HTML HOT 1
- Undefined method 'createToken'. P1013 HOT 1
- Add references HOT 1
- Laravel No definition found for .... HOT 1
- intelephense indexing take too long time HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-intelephense.