KoEdit 10 does not scan perl project packages

Hello. I have many *.pm files in project which start with:

package Some::Package;
use strict;
use warnings;
use base ‘Another::Package’;

But editor does not scan it, even if I add whole project dir to “Additional Perl Import Directories” in project settings.
Packages from CPAN works normal, no errors like “Base class package ‘Another::Package’ is empty”, autocomplete is working too.
What I need to do to fix this? Thanks.

Hi, please post the contents of your Help > Troubleshooting > View Log File so we can be sure there are no errors scanning the directories you added to “Additional Perl Import Directories”. Thanks.

[details=Summary] [2017-01-10 17:13:06,013] [INFO] Startup: Welcome to Komodo Edit 10.1.4 build 17456 (platform linux-x86_64, running on Linux 3.19.0-78-generic version #86~14.04.1-Ubuntu SMP Tue Dec 6 17:58:35 UTC 2016)
[2017-01-10 17:13:06,013] [INFO] Startup: /usr/bin/python built on Fri Dec 16 18:34:05 2016
[2017-01-10 17:13:06,070] [INFO] koInitService: Setting LC_CTYPE to utf-8
[2017-01-10 17:13:06,302] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in resource://gre/modules/Preferences.jsm:381
[2017-01-10 17:13:06,370] [WARNING] root: ko.logging has been converted to a CommonJS module; use require(“ko/logging”) instead (since Komodo 9.0.0a1).
@chrome://komodo/content/komodo.js:48:1

[2017-01-10 17:13:06,527] [WARNING] console-logger: Expected identifier for pseudo-class or pseudo-element but found ' '.  Ruleset ignored due to bad selector. (1) in chrome://komodo/skin/codeintel.css:1
[2017-01-10 17:13:06,527] [WARNING] console-logger: Unexpected end of file while searching for closing } of invalid rule set. (1) in chrome://komodo/skin/codeintel.css:42
[2017-01-10 17:13:06,950] [ERROR] console-logger: bad script XDR magic number (0) in :0
Traceback (most recent call last):
  File "", line 0, in 

[2017-01-10 17:13:07,192] [WARNING] keybindings: [Ctrl+0] was used for 'cmd_goToQuickBookmark_0', overriding to use 'cmd_fontZoomReset'
[2017-01-10 17:13:07,658] [INFO] koInitService: Adding pre startup service for 'koFileStatusService': '@activestate.com/koFileStatusService;1'
[2017-01-10 17:13:07,771] [INFO] elastic_tabstops: Elastic tabstops loaded.
[2017-01-10 17:13:08,809] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_change'
[2017-01-10 17:13:08,810] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'spelling_error'
[2017-01-10 17:13:08,810] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'multiple_caret_area'
[2017-01-10 17:13:08,810] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_local_change'
[2017-01-10 17:13:08,810] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_4'
[2017-01-10 17:13:08,810] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_5'
[2017-01-10 17:13:08,810] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_2'
[2017-01-10 17:13:08,810] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_3'
[2017-01-10 17:13:08,811] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_1'
[2017-01-10 17:13:09,047] [WARNING] console-logger: Error in parsing value for 'opacity'.  Declaration dropped. (1) in chrome://komodo/skin/images/toolbox/command.svg:0
[2017-01-10 17:13:09,488] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in file:///home/foo/Bunker/Komodo-Edit-10/lib/mozilla/components/koamAddonManager.js:138
[2017-01-10 17:13:10,394] [INFO] koInitService: Adding pre startup service for 'KoMemoryReporter': '@activestate.com/koMemoryReporter;1'
[2017-01-10 17:13:10,396] [INFO] koInitService: Adding pre startup service for 'koCommandmentService': '@activestate.com/koCommandmentService;1'
[2017-01-10 17:13:21,078] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_change'
[2017-01-10 17:13:21,079] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'spelling_error'
[2017-01-10 17:13:21,079] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'multiple_caret_area'
[2017-01-10 17:13:21,079] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_local_change'
[2017-01-10 17:13:21,079] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_4'
[2017-01-10 17:13:21,079] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_5'
[2017-01-10 17:13:21,079] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_2'
[2017-01-10 17:13:21,079] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_3'
[2017-01-10 17:13:21,080] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_1'
[2017-01-10 17:14:00,845] [WARNING] views: Inconsistent view count in view_closed event
[2017-01-10 17:14:00,869] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_change'
[2017-01-10 17:14:00,869] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'spelling_error'
[2017-01-10 17:14:00,869] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'multiple_caret_area'
[2017-01-10 17:14:00,870] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_local_change'
[2017-01-10 17:14:00,870] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_4'
[2017-01-10 17:14:00,870] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_5'
[2017-01-10 17:14:00,870] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_2'
[2017-01-10 17:14:00,870] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_3'
[2017-01-10 17:14:00,870] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_1'
[2017-01-10 17:14:00,920] [ERROR] CT::margin.js: couldn't get the insert-color
-- EXCEPTION START --
TypeError: this.view.scheme.getInterfaceStyleRaw is not a function
+ stack
    exports.MarginController.prototype._initMarkerStyles@chrome://trackchanges/content/margin.js:53:32
    refreshMarginProperies@chrome://trackchanges/content/margin.js:110:9
    MarginController@chrome://trackchanges/content/margin.js:41:5
    exports.ChangeTracker.prototype.changeTrackingOn@chrome://trackchanges/content/tracker.js:63:19
    ChangeTracker@chrome://trackchanges/content/tracker.js:27:5
    this.onViewOpenedHandler@chrome://trackchanges/content/trackchanges.js:88:26
    xtk.domutils.fireEvent@chrome://xtk/content/domutils.js:187:5
    set_koDoc@vieweditor:306:17
    initWithDocument@vieweditor:419:13
    createViewFromDocument@viewlistbase:133:17
    viewManager.prototype._newViewFromURI@chrome://komodo/content/views.js:608:20
    viewManager.prototype._doFileOpen@chrome://komodo/content/views.js:732:12
    viewManager.prototype.doFileOpenAsync/<@chrome://komodo/content/views.js:757:20
-- EXCEPTION END --
[2017-01-10 17:14:00,920] [ERROR] CT::margin.js: couldn't get the delete-color
-- EXCEPTION START --
TypeError: this.view.scheme.getInterfaceStyleRaw is not a function
+ stack
    exports.MarginController.prototype._initMarkerStyles@chrome://trackchanges/content/margin.js:59:32
    refreshMarginProperies@chrome://trackchanges/content/margin.js:110:9
    MarginController@chrome://trackchanges/content/margin.js:41:5
    exports.ChangeTracker.prototype.changeTrackingOn@chrome://trackchanges/content/tracker.js:63:19
    ChangeTracker@chrome://trackchanges/content/tracker.js:27:5
    this.onViewOpenedHandler@chrome://trackchanges/content/trackchanges.js:88:26
    xtk.domutils.fireEvent@chrome://xtk/content/domutils.js:187:5
    set_koDoc@vieweditor:306:17
    initWithDocument@vieweditor:419:13
    createViewFromDocument@viewlistbase:133:17
    viewManager.prototype._newViewFromURI@chrome://komodo/content/views.js:608:20
    viewManager.prototype._doFileOpen@chrome://komodo/content/views.js:732:12
    viewManager.prototype.doFileOpenAsync/<@chrome://komodo/content/views.js:757:20
-- EXCEPTION END --
[2017-01-10 17:14:00,920] [ERROR] CT::margin.js: couldn't get the change-color
-- EXCEPTION START --
TypeError: this.view.scheme.getInterfaceStyleRaw is not a function
+ stack
    exports.MarginController.prototype._initMarkerStyles@chrome://trackchanges/content/margin.js:65:33
    refreshMarginProperies@chrome://trackchanges/content/margin.js:110:9
    MarginController@chrome://trackchanges/content/margin.js:41:5
    exports.ChangeTracker.prototype.changeTrackingOn@chrome://trackchanges/content/tracker.js:63:19
    ChangeTracker@chrome://trackchanges/content/tracker.js:27:5
    this.onViewOpenedHandler@chrome://trackchanges/content/trackchanges.js:88:26
    xtk.domutils.fireEvent@chrome://xtk/content/domutils.js:187:5
    set_koDoc@vieweditor:306:17
    initWithDocument@vieweditor:419:13
    createViewFromDocument@viewlistbase:133:17
    viewManager.prototype._newViewFromURI@chrome://komodo/content/views.js:608:20
    viewManager.prototype._doFileOpen@chrome://komodo/content/views.js:732:12
    viewManager.prototype.doFileOpenAsync/<@chrome://komodo/content/views.js:757:20
-- EXCEPTION END --
[2017-01-10 17:14:00,950] [WARNING] views: Inconsistent view count in view_opened event
[2017-01-10 17:14:00,995] [ERROR] console-logger: bad script XDR magic number (0) in :0
Traceback (most recent call last):
  File "", line 0, in 

[2017-01-10 17:14:04,292] [WARNING] console-logger: Key event not available on some keyboard layouts: key="v" modifiers="control,alt" (1) in chrome://komodo/content/komodo.xul:0
[2017-01-10 17:14:04,294] [ERROR] console-logger: ReferenceError: view is not defined (2) in chrome://openfiles/content/openfiles.js:585
Traceback (most recent call last):
  File "chrome://openfiles/content/openfiles.js", line 585, in 

[2017-01-10 17:14:06,889] [DEBUG] console: error: TypeError {}
[2017-01-10 17:14:06,919] [DEBUG] console: error: TypeError {}
[2017-01-10 17:14:16,874] [WARNING] notify: Notification panel has already been removed, callback is likely called twice
[2017-01-10 17:14:16,903] [WARNING] notify: Notification panel has already been removed, callback is likely called twice
[2017-01-10 17:14:20,027] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_change'
[2017-01-10 17:14:20,028] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'spelling_error'
[2017-01-10 17:14:20,028] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'multiple_caret_area'
[2017-01-10 17:14:20,029] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_local_change'
[2017-01-10 17:14:20,029] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_4'
[2017-01-10 17:14:20,029] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_5'
[2017-01-10 17:14:20,029] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_2'
[2017-01-10 17:14:20,029] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_3'
[2017-01-10 17:14:20,030] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_1'
[2017-01-10 17:14:37,314] [WARNING] console-logger: Key event not available on some keyboard layouts: key="v" modifiers="control,alt" (1) in chrome://komodo/content/tail/tail.xul:0
[2017-01-10 17:14:44,032] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_change'
[2017-01-10 17:14:44,033] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'spelling_error'
[2017-01-10 17:14:44,033] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'multiple_caret_area'
[2017-01-10 17:14:44,033] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_local_change'
[2017-01-10 17:14:44,033] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_4'
[2017-01-10 17:14:44,033] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_5'
[2017-01-10 17:14:44,033] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_2'
[2017-01-10 17:14:44,033] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_3'
[2017-01-10 17:14:44,034] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_1'
[2017-01-10 17:14:44,070] [ERROR] CT::margin.js: couldn't get the insert-color
-- EXCEPTION START --
TypeError: this.view.scheme.getInterfaceStyleRaw is not a function
+ stack
    exports.MarginController.prototype._initMarkerStyles@chrome://trackchanges/content/margin.js:53:32
    refreshMarginProperies@chrome://trackchanges/content/margin.js:110:9
    MarginController@chrome://trackchanges/content/margin.js:41:5
    exports.ChangeTracker.prototype.changeTrackingOn@chrome://trackchanges/content/tracker.js:63:19
    ChangeTracker@chrome://trackchanges/content/tracker.js:27:5
    this.onViewOpenedHandler@chrome://trackchanges/content/trackchanges.js:88:26
    xtk.domutils.fireEvent@chrome://xtk/content/domutils.js:187:5
    set_koDoc@vieweditor:306:17
    initWithDocument@vieweditor:419:13
    createViewFromDocument@viewlistbase:133:17
    viewManager.prototype._doNewView@chrome://komodo/content/views.js:514:16
    viewManager.prototype.doNewViewAsync/<@chrome://komodo/content/views.js:533:20
-- EXCEPTION END --
[2017-01-10 17:14:44,071] [ERROR] CT::margin.js: couldn't get the delete-color
-- EXCEPTION START --
TypeError: this.view.scheme.getInterfaceStyleRaw is not a function
+ stack
    exports.MarginController.prototype._initMarkerStyles@chrome://trackchanges/content/margin.js:59:32
    refreshMarginProperies@chrome://trackchanges/content/margin.js:110:9
    MarginController@chrome://trackchanges/content/margin.js:41:5
    exports.ChangeTracker.prototype.changeTrackingOn@chrome://trackchanges/content/tracker.js:63:19
    ChangeTracker@chrome://trackchanges/content/tracker.js:27:5
    this.onViewOpenedHandler@chrome://trackchanges/content/trackchanges.js:88:26
    xtk.domutils.fireEvent@chrome://xtk/content/domutils.js:187:5
    set_koDoc@vieweditor:306:17
    initWithDocument@vieweditor:419:13
    createViewFromDocument@viewlistbase:133:17
    viewManager.prototype._doNewView@chrome://komodo/content/views.js:514:16
    viewManager.prototype.doNewViewAsync/<@chrome://komodo/content/views.js:533:20
-- EXCEPTION END --
[2017-01-10 17:14:44,071] [ERROR] CT::margin.js: couldn't get the change-color
-- EXCEPTION START --
TypeError: this.view.scheme.getInterfaceStyleRaw is not a function
+ stack
    exports.MarginController.prototype._initMarkerStyles@chrome://trackchanges/content/margin.js:65:33
    refreshMarginProperies@chrome://trackchanges/content/margin.js:110:9
    MarginController@chrome://trackchanges/content/margin.js:41:5
    exports.ChangeTracker.prototype.changeTrackingOn@chrome://trackchanges/content/tracker.js:63:19
    ChangeTracker@chrome://trackchanges/content/tracker.js:27:5
    this.onViewOpenedHandler@chrome://trackchanges/content/trackchanges.js:88:26
    xtk.domutils.fireEvent@chrome://xtk/content/domutils.js:187:5
    set_koDoc@vieweditor:306:17
    initWithDocument@vieweditor:419:13
    createViewFromDocument@viewlistbase:133:17
    viewManager.prototype._doNewView@chrome://komodo/content/views.js:514:16
    viewManager.prototype.doNewViewAsync/<@chrome://komodo/content/views.js:533:20
-- EXCEPTION END --
[2017-01-10 17:14:44,148] [ERROR] console-logger: TypeError: editorView.koDoc.file is null (2) in chrome://openfiles/content/openfiles.js:1487
Traceback (most recent call last):
  File "chrome://openfiles/content/openfiles.js", line 1487, in 

[2017-01-10 17:14:44,490] [ERROR] console-logger: ReferenceError: view is not defined (2) in chrome://openfiles/content/openfiles.js:585
Traceback (most recent call last):
  File "chrome://openfiles/content/openfiles.js", line 585, in 

[2017-01-10 17:15:43,516] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_change'
[2017-01-10 17:15:43,517] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'spelling_error'
[2017-01-10 17:15:43,517] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'multiple_caret_area'
[2017-01-10 17:15:43,517] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_local_change'
[2017-01-10 17:15:43,517] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_4'
[2017-01-10 17:15:43,517] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_5'
[2017-01-10 17:15:43,517] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_2'
[2017-01-10 17:15:43,517] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_3'
[2017-01-10 17:15:43,518] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_1'
[2017-01-10 17:16:06,720] [WARNING] console-logger: Key event not available on some keyboard layouts: key="v" modifiers="control,alt" (1) in chrome://komodo/content/tail/tail.xul:0
[2017-01-10 17:18:37,682] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_change'
[2017-01-10 17:18:37,682] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'spelling_error'
[2017-01-10 17:18:37,682] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'multiple_caret_area'
[2017-01-10 17:18:37,683] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_local_change'
[2017-01-10 17:18:37,683] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_4'
[2017-01-10 17:18:37,683] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_5'
[2017-01-10 17:18:37,683] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_2'
[2017-01-10 17:18:37,683] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_3'
[2017-01-10 17:18:37,683] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name 'collab_remote_cursor_1'
[2017-01-10 17:18:39,350] [WARNING] console-logger: Key event not available on some keyboard layouts: key="v" modifiers="control,alt" (1) in chrome://komodo/content/tail/tail.xul:0

[/details]

Okay, no errors there. What do you mean by the “editor does not scan it”? You’re not getting the expected (or any) autocompletions? Komodo gives notice that the directory cannot be scanned? Something else? I have very little to go on to try and troubleshoot this.

Yes, autocomplete is not working and warnings is appear on use project classes.

Okay, and your “Box::Core::Utils” package is in /media/truecrypt1/zill/box right?

Yes, /media/truecrypt1/zill/box/dir1/dir2/filename.pm

This errors after dirs scan:

When you run your application, is your @INC the same? It troubles me that the popup error says it cannot find “Box/Core/Utils.pm” when your directory structure reflects differently. (Please keep in mind I know next to nothing about Perl.)

No, for my app @INC is much different than in warning. How I can put in komodo custom @INC?

If it’s like an environment variable, then Project > Project Preferences > Environment or Edit > Preferences > Environment will allow you to set environment variables. However, this will only help with the lint warnings (the popup you posted), and not the code intelligence. For codeintel you may have to fiddle with the “Additional Perl Import Directories” some more.

It start work when I add to “Additional Perl Import Directories” path like in app @INC.
Can I modify komodo project @INC from config or on a fly? My @INC in app is very big to add it in hand mode.

After making a backup, you can try editing your .komodoproject file manually after adding the first couple directories to see how the property is structured. (Make sure Komodo or the project is closed during editing.) Other than that I don’t know of a way to “bulk import” an @INC into that dialog.

Thank you.

It seems bug is stil here.

I have test project, with 3 classes:

lib1/src/ with Project::Prefix::Lib1
lib2/src/ with Project::Prefix::Lib2
src/ with Project::Prefix::RealClass

In .komodoproject I add to @INC

lib1/src
lib2/src
src

But autocomplete after typing ‘Project::Prefix::’ offer only one class:

Project::Prefix::Lib1

You can try it self, all files with .komodoproject are icluded: https://drive.google.com/open?id=0B1JPjcJSR6a7OFZrQmY4dVhvUVU

Just type ‘use Project::Prefix::’ after ‘use warnings;’ in any class.

Thank you for taking the time to put together a minimal example zip. I really appreciate that.

I’ve logged a bug here: https://github.com/Komodo/KomodoEdit/issues/2262

Note that (for some odd reason), any additional Perl include directory paths after the first one need to be absolute paths. After opening your project, when I looked at Project > Project Preferences > Languages > Perl > Additional Directories, only the first directory looked good. The others were incomplete. Regardless, the bug still happened after I corrected the paths.

Thanks again.

In real project I use absolute paths. Just for zip made relative. By the way in .komodoproject in zip all paths is relative, why first looks like absolute - it’s seems bug too.