Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure that all editors play well with Perl 6 #19

Open
AlexDaniel opened this issue Apr 3, 2018 · 24 comments
Open

Make sure that all editors play well with Perl 6 #19

AlexDaniel opened this issue Apr 3, 2018 · 24 comments

Comments

@AlexDaniel
Copy link
Member

AlexDaniel commented Apr 3, 2018

(this ticket was moved from Raku/marketing#10)

Today a user had issues executing perl 6 scripts with Geany (because it was using perl5 regardless of the shebang).

I think it would be nice to make a list of text editors and track their perl 6 support.

Note that the list may include proprietary software.

⚠ Feel free to edit this list! ⚠
Include links whenever possible!

Status options:

  • 🤷 unknown – please test and report back
  • 😱 recognized as perl5
  • 😭 no support
  • 😐 plugin available/😐 better plugin
  • 🙂 built-in support
  • 😍 great built-in support
  • 💰 paywall
  • ⏳ in development but not available yet
Editor Status Comments
Ace 🙂 built-in support
Atom 🙂 built-in support
😐 better plugin
comes with basic perl 6 highlighting
https://atom.io/packages/language-perl6
Brackets 😭 no support ⚠NO TICKET, PLEASE SUBMIT⚠
Comma IDE 😍 great built-in support designed for Perl 6
(built on the JetBrains IDEA platform)
https://commaide.com/
CudaText 😐 plugin available menu item "Plugins/ Addon Manager/ Install", find "Perl 6"
Eclipse 🤷 unknown
Emacs 😐 plugin available https://github.com/perl6/perl6-mode
Geany 😱 recognized as perl5 GitHub Issue
IntelliJ,
WebStorm,
etc.
🤷 unknown
😐 plugin available

https://commaide.com/
gedit 😱 recognized as perl5 https://gitlab.gnome.org/GNOME/gtksourceview/issues/25
Kate 🙂 built-in support https://bugs.kde.org/show_bug.cgi?id=392468, more
Komodo IDE 😭 no support💰
nano 😱 recognized as perl5
😐 plugin available
Patch: https://savannah.gnu.org/patch/?9745
Plugin: https://github.com/hankache/perl6.nanorc
Neovim 🙂 built-in support
😐 better plugin

https://github.com/vim-perl/vim-perl6
Notepad++ 😭 no support community forum discussion
GitHub Issue
Pluma 😱 recognized as perl5 https://gitlab.gnome.org/GNOME/gtksourceview/issues/25
Scite 🙂 built-in support
Spacemacs 🙂 built-in support ticket: syl20bnr/spacemacs#5019
(right now only in develop branch)
Sublime text 🤷 unknown
😐 plugin available

silentTee/sublimetext3-perl6-syntax
TextMate 🙂 built-in support https://github.com/textmate/perl.tmbundle
unsure about the actual quality and
whether the bundle is shipped by default
Vim 🙂 built-in support
😐 better plugin

https://github.com/vim-perl/vim-perl6
Visual Studio
Code
🙂 built-in support
😐 better plugin
proof
plugins available for linting and snippets
@unclechu
Copy link
Member

unclechu commented Apr 5, 2018

Perl6 support in Neovim (I don't remember but I believe Vim has the same story) alongwith that plugin is pretty laggy, syntax hl is cool but when you scroll file by lines or moving cursor holding j/k it freezes, it happens after 10-15 lines of code. Would like to see more lightweight/optimized version.

@Tyil
Copy link
Member

Tyil commented Apr 5, 2018

It's rather slow with highlighting in regular vim 8 in combination with vim-perl6 as well. On my system it doesn't freeze by scrolling, but I can see a core having a hard time to keep up with it. I don't often scroll with j/k, so it doesn't hit me often, but it's still something I'd like to see resolved too.

@silentTeee
Copy link

Pardon me but I have started an effort to create a Sublime Text 3 syntax highlighter file. It's admittedly very young and still only highlights in a basic fashion, but I figured I would mention it. I'm admittedly a novice at making syntax highlighters and using GitHub but I wanted to contribute to Perl 6 adoption, as I really like the language.

Here is what I have so far:
https://github.com/silentTee/sublimetext3-perl6-syntax

The code I've been testing it on is based on the coding tutorials at http://perl6intro.com/ up to Section 8.1 so far.
I have attached it for reference.
test_code.txt

I don't mind if someone more skilled wants to fork it, I just figured I would get it started.

@JJ
Copy link

JJ commented Jun 3, 2018 via email

@tbrowder
Copy link
Member

tbrowder commented Jun 3, 2018

Added the brand spanking new Comma IDE, specially designed for Perl 6 (eat your heart out Active State, no interest in adding Perl 6 to Komodo, thanks!).

@AlexDaniel
Copy link
Member Author

Thanks @silentTee, I've added a link!

@tbrowder actually comma was already listed as a plugin for IntelliJ stuff, but I guess it's ok to list it as a standalone IDE, although I'm not sure. Anyway, I fixed it a bit.

Actually, I feel generous today, so maybe we should give 😍 excellent built-in support to Comma. A paywall and 😍 are probably not mutually exclusive :)

@tbrowder
Copy link
Member

tbrowder commented Jun 4, 2018

@AlexDaniel, I am an early subscriber and I am using it stand-alone, but I missed it on the list as a plugin, sorry.

Update

I tweaked the Commay entry and added the "excellent support" you suggested.

@chee
Copy link

chee commented Feb 6, 2019

hmm, i think it's weird that plugin available is this face: "😐". A plugin that was good enough should get heart eyes. 😻

@AlexDaniel
Copy link
Member Author

AlexDaniel commented Feb 6, 2019

@chee the idea is that a newcomer writing a perl 6 script should not be inconvenienced by having to go somewhere to download a plugin. Especially so if the editor incorrectly detects perl 6 code as perl5 code. Most of the editors have built-in support for other languages (e.g. perl5).

@chee
Copy link

chee commented Feb 6, 2019

@AlexDaniel a newcomer to Perl 6, or a newcomer to programming?

a newcomer to Perl 6 might already have an editor like Atom or Visual Studio Code installed, where it has some built in support and better support with a plugin

neither one of those newcomers would have Comma IDE already installed on their computer. it feels like more of an inconvenience to find out about, pay 120 euros for, and download Comma than to go to the addons menu and search "perl 6"

that's all. i feel like a really good plugin is worth at least as enthusiastic an emoji as a standalone perl6-specific IDE

@hstejas
Copy link

hstejas commented Mar 2, 2019

There is a syntax highlighter xml for kate that probably could be merged https://github.com/timo/perl6-kate-syntax??

@kktt007
Copy link

kktt007 commented Apr 20, 2019

thanks for you nice job. Thanks neovim and comma ide and other editors etc. ~~

@timo
Copy link

timo commented Jul 18, 2019

i removed the "paywall" icon from the comma ide standalone and the intellij plugin, since the "community edition" that's available for free is out now

@Alexey-T
Copy link

Alexey-T commented Sep 12, 2019

CudaText:
has plugin (lexer) for Perl 6.
Comments: menu item "Plugins/ Addon Manager/ Install", find "Perl 6"

Proof (lexer is for CudaText+SynWrite)
http://synwrite.sourceforge.net/forums/viewtopic.php?f=4&t=2316

@Alexey-T
Copy link

Alexey-T commented Sep 12, 2019

@silentTee I made some Github issues for you, about Perl 6, see the SublimeText syntax repo.

@flying-sheep
Copy link

Kate has builtin support by now: https://pointieststick.com/2019/09/28/this-week-in-kde-towards-plasma-5-18/

@AlexDaniel
Copy link
Member Author

Wow, that's amazing. All that's left is a syntax file for gtksourceview and the coverage will be pretty nice (info).

@hankache
Copy link

A Raku lexer has been merged and is available in Scintilla as of 4.3.0 https://sourceforge.net/p/scintilla/feature-requests/1328/
This will open up the door for all Scintilla based editors to support Raku syntax highlighting (Notepad++, Geany, etc.)

@AlexDaniel
Copy link
Member Author

Amazing!

@sarna
Copy link

sarna commented Jun 7, 2020

Doom Emacs also has built-in support for Raku now: https://github.com/hlissner/doom-emacs/tree/develop/modules/lang/raku

Develop branch, but it's the one everybody's using :)

@iacore
Copy link

iacore commented Jun 18, 2022

I added new extensions to sublime text's syntax file:

https://gist.github.com/iacore/190adb9c3954603cf7034f9cb450fd2b

No other changes (based on the Perl6 syntax file).

It doesn't work with advanced features.

@rcmlz
Copy link

rcmlz commented May 6, 2023

Syntax highlighting in Obsidian and Jupyter (Lab and thus Notebook 7) is based on Codemirror 6.

Language support in Codemirror takes the form of specific packages (with names like @codemirror/lang-python or codemirror-lang-elixir) that implement the support features for working with that language.

Did someone already approach this for Raku?

I guess the appropriate place for such a project would be https://github.com/Raku/codemirror-lang-raku, right?

@rcmlz
Copy link

rcmlz commented May 6, 2023

I added new extensions to sublime text's syntax file:

https://gist.github.com/locriacyber/190adb9c3954603cf7034f9cb450fd2b

No other changes (based on the Perl6 syntax file).

It doesn't work with advanced features.

Link is broken, you can try https://github.com/rcmlz/sublimetext-build-systems-raku

@pryrt
Copy link

pryrt commented May 13, 2024

FYI: Notepad++ has added a Raku lexer / syntax highlighter, and thus closed its issue. Notepad++ v8.6.6 was the first to be released with Raku enabled, but didn't correctly distribute the auto-completion definition; v8.6.7 corrected the auto-completion distribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests