Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Which IDE's show tooltips for Perl builtins? (Komodo)

by LanX (Saint)
on Jul 29, 2022 at 14:18 UTC ( [id://11145852]=note: print w/replies, xml ) Need Help??


in reply to Re: Which IDE's show tooltips for Perl builtins?
in thread Which IDE's show tooltips for Perl builtins?

Thanks,

I installed the newest Komodo12 IDE and tried it out (we have a company license anyway)

The experience was messy because I was used to Komodo7 and they tried to "modernize" the UI...

Took me a while to find the toolbox with all features

> but can be pointed at Perl docs instead

The toolbox has a komodo tool: Perldoc on selection (for builtin functions)

It's supposed to run

%(perl) -e print && perldoc -u -f %w | pod2html > "c:\temp\pod.html" && %(browser) c:\temp\pod.html

which failed for me with a CMD error of unknown command, most probably because %(perl) and %(browser) need to be set up properly.

I gave up, problems might be related to the fact that this machine has no ActiveState Perl but a portable Strawberry.

Creating new tools and binding them to hotkeys is easy tho.

> No facility for a mouse over popup that I can see though.

There are auto-completes for many builtins, like spl will show splice and split

Code-hinting is documented to show arguments on auto-complete. Well in theory, couldn't make them show in various languages°. NB the YT-video on the linked website doesn't play.

Snippet expansion is available, but only for a small number of snippets and can be found in the Toolbox under Abbreviations/Keywords

So after typing wh

  • 1. TAB expands to while
  • 2. TAB to
while (EXPR) { }

with tab-stops on EXPR and the inner block.

The same for for or foreach doesn't work, mainly because the template for fore needs to be set up with additional EJS (Embedded JS AFAIK) to know the expansion triggers.

It's a bit more complicated ... there is an autocomplete for foreach but not for for and the snippet's name is fore (most likely originally imported from textmate)

Nobody cared to fix that.

My colleagues are using Komodo and I can provide the data for more snippets and code-hints, if someone is inclined to maintain the Perl logic for Komodo in the future.

Komodo Edit at least is OS now.

From the state of the tool and the website I tend to believe that AS is slowly abandoning it.

DISCLAIMER: Like always, I'm no expert for that tool, albeit I know it significantly better than Nodepad++ and intelliJ

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

°) OK there is only Strawberry installed on that box, this might be why...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11145852]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-03-29 11:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found