/ide-perl6

Perl 6 language support for Atom-IDE

Primary LanguageJavaScriptMIT LicenseMIT

IDE-Perl6

Perl 6 language support for the Atom IDE powered by App::Perl6LangServer. This language integration is built on top of atom-languageclient.

Features:

  • Diagnostics (i.e. syntax check errors using perl6 -c )

screenshots/diagnostics-screenshot.gif

Plan / TODO:

  • Open Perl 6 downloads in browser if perl6 is not installed. (see ide-java).

    $ perl6 --version
    
  • Install App::Perl6LangServer if it is not installed (see ide-java).

    perl6 -e "use App::Perl6LangServer:ver(v0.0.2);
  • Provide a feature list similar to atom-ide-rust

  • Support VSCode in another plugin.

  • Provide source code formatting via Perl6::Tidy.

Install

  • You can install from the command line with:
# Install IDE-Perl6 Atom plugin
$ apm install ide-perl6
  • Or you can install from the settings view (Ctrl + ,) by searching for ide-perl6.

Note: you need to have a working installed Rakudo Perl 6 Compiler. You can install the latest monthly pre-compiled packages from nxadm/rakudo-pkg or Rakudo Star distribution from here.

Note: You need also install App::Perl6LangServer:

# To install Perl 6 language server executable.
$ zef install App::Perl6LangServer

# If you are using rakudobrew, this is needed to update executable path after
# installation.
$ rakudobrew rehash

Debugging

If the plugin is not working as expected, you can try enabling logging to debug it:

  • Open the atom console via Ctrl + Shift + I.
  • Enter atom.config.set('core.debugLSP', true) in the console.
  • Reload Atom via Ctrl + Shift + F5.

Author

Ahmad M. Zawawi, azawawi on #perl6.

See Also

License

MIT License