Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an Intellij plugin for Perl 6? [closed]

I am looking for a Perl 6 plugin for JetBrains editors like IntelliJ IDEA, PyCharm or PhpStorm.

Connected issue:

https://github.com/Camelcade/Perl5-IDEA/issues/1554

Can anyone can recommend something? Or should I try a different IDE?

Now syntax is wrongly highlighted because I use the plugin for Perl 5

like image 809
Daniel Avatar asked Aug 06 '17 05:08

Daniel


2 Answers

I can't speak for IntelliJ editors (of which I have heard great things by my colleagues).

Vim works well

Vim has built-in support for Perl 6. I used to hate vim, until I saw an experienced user demonstrate it. You can move, copy, paste, search and replace, and so forth without touching a mouse or having to scroll through a menu. I haven't turned back since. For me, it has really been worth the time and effort to learn.

But I must warn you that Vim may not work well for you if you are not a touch typist. Vim really stands out because it takes advantage of reflexes (i.e. "muscle memory"). You think about moving your cursor up and your fingers reflexively hit k without thinking about it. You want to copy a line, so you hit yy without even thinking about it. It's the closest thing to a brain-computer interface without having to undergo surgery. It just takes some initial effort to start learning it and customizing it.


examples

When code is very cleanly written, it tends to look nice:

Code in Vim showing consistent syntax coloring throughout.

But, sometimes Vim does have a problem parsing Perl 6 and coloring correctly, especially if there is a lot of syntax in the same line. These cases tend to be less human-friendly anyway. When I noticed the following inconsistent syntax coloring, I refactored the code to be the more human-friendly (and Vim friendly) style seen above.

Code in Vim showing strange syntax coloring in the bottom third.

Since only Perl 6 can fully parse Perl 6, I would expect that there to be sometimes that most editors would have difficulties with the syntax highlighting for Perl 6. Please comment or add other answers if you find editors that do better than Vim in this regard.

And sometimes Vim will temporarily color the syntax funny, but scrolling up and down will give it a chance to correct itself.

UPDATE: Now there is an IntelliJ plugin, see Jonathan Worthington's answer about Comma.

like image 71
Christopher Bottoms Avatar answered Oct 21 '22 02:10

Christopher Bottoms


Comma is a Perl 6 IDE built on the IDEA platform, and also comes as a plugin to be used with IntelliJ and similar. It's currently in early BETA, and available to those who join its supporter program.

like image 39
Jonathan Worthington Avatar answered Oct 21 '22 01:10

Jonathan Worthington