I've been tying Emacs tighter and tighter to Perl::Critic and B::Lint. I switched off of B::Lint for awhile because I was doing Perl::Critic and I noticed that my error rate went through the roof. Perl::Critic doesn't prevent me from writing invalid perl. I'm going to have to insist on integrating Lint with P::C or at least P::C plus a syntax check. that is, a *real* compile. This "we don't invoke perl for safety" stuff has got to go. Blech. It prevents important checks from occuring.
Emacs minor mode's I've written or just been hacking on: perl-syntax-mode, perl-lint-mode, perltidy-mode, perlcritic-mode.
I figure I'd like to implement some better autocompletion once these basic tools all work together. I'm kind of surprised no one did the work to integrate all this stuff before. IDEs rock, right? Right?
Perlnow extensions (Score:1)
I saw a talk given by Joe Brenner on his Emacs extension Perlnow [obsidianrook.com]. I've been playing with it off and on but I have been in vim land mostly as of late, but it has most of what you need for an Emacs Perl IDE. Only thing I was missing there was PerlTidy and Critic.
Compile safety (Score:1)
I strongly disagree. If you are trying to use Perl::Critic for compile checks, then you are using the wrong tool.
Re:Compile safety (Score:1)
use stricter;. I happen to be doing this in my editor while I'm writing the code instead of the code's compile or runtime.
In practice I've noticed it isn't difficult to just have Emacs chain multiple checks so I guess I care much less now.
Re:Compile safety (Score:1)
Re:Compile safety (Score:1)
No no no (Score:1)
I'm going to have to insist on integrating Lint with P::C or at least P::C plus a syntax check.
P::C is not the place for those. If you do it, keep it to yourself please. P::C is for best practices and not to see if something is syntactically correct.
Re:No no no (Score:1)
There's one part of P::C which is specifically focused on Damian's PBP book but that's not P::C's entire universe. In fact, now that I've thought of it, there's nothing preventing there just being a plugin that does a real syntax check.
It doesn't even have to live in the P::C dist since CPAN will accomodate all comers.
Well.. (Score:1)
If there are seperate tools that require a specific human step to enable, then it's no longer the fault of the editor that someone sends you or tricks you into opening a Perl file containing system( 'rm -rf ~ &' )
If Perl is invoked by default, then all of a sudden we have gaping security holes.
Adam K
Re:Well.. (Score:1)
I do know that syntax checking while I'm writing is a boon. I also know there are some checks for "bad stuff" that I can't do in P::C because I don't haven't resolved what happened after a use Foo::Bar; that imported some useful function like any(&@) but it had a signature w