Since I upgraded to the latest version of Komodo IDE (5.1), I am unable to get autocomplete or syntax checking to work using modules within my application's perllib directory to work. There is an error where the first module from these libraries is 'use'd in any file.
I have added the directory to the editor's perl path, and this has no effect. I tried upgrading to the nightly build (currently running 5.1.4) and it still won't work.
This is a real problem for me, as I depend on syntax checking as I edit. Please help.
Here's what I did:
1. For a sample with code new to Komodo, I downloaded
iCal-Parser-1.16 from CPAN, and installed it into my
working directory (~/lab/pm/iCal-Parser-1.16).
2. I then ran Makefile.PL to get a list of missing
dependencies, and installed them with ppm (since I'm
using ActivePerl here).
3. I then created a new project file at
iCal-Parser-1.16/iCalParser.kpf
4. I brought up the project's properties, and added
~/lab/pm/iCal-Parser-1.16/lib to [Languages|Perl|
Additional Perl Import Directories]. The good thing
about using a project is that you can see that you
don't want to add paths like these to the global
setting. Only files that are associated with the
project will use this setting for syntax-checking
and code-completion.
5. I created a new file, similar to 00load.t, with these
three key lines:
my $o = iCal::Parser->new;
$o->add_event;
Now Komodo does need a bit of time to process newly introduced
files and directories for code-completion. With the new
setting there should be no red squiggle at the 'use' stmt.
After a minute or so, you should see a list of
methods after both arrows.
6. If you're saying that whether you add this path to the
Project properties, or the global properties, and you still
get error messages and no code-completion, it's a bug.
Could you file that at
http://bugs.activestate.com/enter_bug.cgi?product=Komodo
Thanks,
Eric
Thanks, yes that is what I do, and despite the path of my lib directory being set at the global and project level... I get errors when I use those modules.
I will log a bug.