Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.16k stars 303 forks source link

PHP autocomplete directory have to get scanned every time I launch Komodo #2144

Closed kevinlieser closed 7 years ago

kevinlieser commented 8 years ago

I've set up an additional PHP directory in the settings to scan and use for autocompletion. FYI: It's a TYPO3 source folder. In Komodo IDE 9 it got scanned after I added it and I can use it directly every time I launch Komodo. In Komodo 10 it need to get scanned before i can use it – and that every time I start Komodo 10. Also Komodo do not start scanning after launch, it starts when I type a backslash and want wo write code. Then I have to wait a few minutes for the scan to complete (until then no autocompletion works).

Komodo Edit or IDE? Komodo IDE

Komodo Version? 10.1.1

Operating System (and version)? Mac OS Sierra 10.12.1

th3coop commented 8 years ago

If Komodo is scanning your directory it means either something has been added or it didn't finish scanning the directory before you closed Komodo. Watch View > Tabs & Sidebars > NOtifications to see when scanning is done. Or watch the commando/notifications field at the top of the window.

Please confirm that you have seen Komodo report that it is done scanning and you were able to use completions from your project otherwise it never finished and is trying to complete that task still.

Also Komodo do not start scanning after launch

Komodo has never done this.

Please use the forums to ask questions if you need clarification on why things are happening: http://community.komodoide.com/

kevinlieser commented 8 years ago

It's scanning and at the last folder it stops - so it seems that it did finish. When I now close Komodo and start Komodo again and type on the first PHP file a backslash it starts scanning again (visible in notification panel and in the notification field on top.

th3coop commented 8 years ago

Do you have a link for the TYPO3 code you're adding? I'd like to test to see if I can reproduce.

kevinlieser commented 8 years ago

Sure, here it is: https://get.typo3.org/7.6.12 I am just scanning the whole folder and this worked fine with Komodo 9.

th3coop commented 8 years ago

It's scanning and at the last folder it stops - so it seems that it did finish

Do you get completions though? If you're not getting completions then scanning must not be finished.

kevinlieser commented 8 years ago

Yes, I get autocompletions (Namespace: \TYPO3\CMS\Core...) after it stops / finished.

th3coop commented 8 years ago

Yikes, reproduced. Thanks for reporting.

th3coop commented 8 years ago

Additional info:

mitchell-as commented 8 years ago

This bug will be addressed when we finish our codeintel architecture changes. Right now it looks like not all of the scan results are being written to the database. A workaround would be to ensure all writes happen as directories are scanned, but that may be too I/O heavy.

mitchell-as commented 7 years ago

Komodo 11's CodeIntel no longer scans "on demand", but scans on load. This issue should no longer occur.