Perl plugin version 2.1 released for IntelliJ IDEA
The next version of the plugin for IntelliJ IDEA supports Template Toolkit 2, works better with constants and methods of objects and also contains several small fixes. In fact, over the past month this is the second release, but it seemed to me that the announcements every two weeks are too much. Below you will find all the changes that have been made since the last announcement on Habré - version 2.0.
Template toolkit 2
Parsing template files with standard syntax
Templates for simple and block directives
Settings for template folders, file extensions and markers
Auto-completion block markers
Inspections for misplaced directives
Navigation, refactoring and auto-completion of files for the corresponding directives
Navigation, refactoring and auto-completion of block names
')
Constants and methods
Constants, at last, as normal functions. Accordingly, all inspections and navigation work correctly, including navigation through the methods
Functions with one statement of the form shift-> method, $ _ [0] -> method are now considered methods, and shift and $ _ [0] are considered $ self
Functions with an empty shift as the first state are considered methods.
Functions with undef as the first unpacked argument are considered methods.
Other
Variable declarations can now be annotated with # @ deprecated
Pressing the space after use / no / package opens the auto-add-on window
* .Al files (AutoLoader / AutoSplitter results) are now parsed as scripts
Perl settings are now stored in two different files - perl5shared and perl5local. One for machine-specific settings, the other for general settings that can be shuffled through VCS
The auto-complement function now shows the package in which they are declared.
Custom file templates with extensions supported by the plugin are now displayed in the menu for creating a new Perl file
Any perl files can now be created not only by name, but also along a path, such as some / path / script, which automatically creates the necessary folders.
The debugger has the opportunity to pause and non-interactive work with breakpoints. The mechanism works only when entering the next function. Those. if you have a cycle without calls, it will not work (requires updating Devel :: Camelcadedb)
Exporter
Imported hashes and arrays are correctly complemented as elements and slices.
Added correct DSL import for Dancer and Dancer2
Added basic support for the module Modern :: Perl
Added support for importing POSIX module
Imported functions are now displayed with auto-add-on signatures.
IntelliJ IDEA
In IDEA, you can now configure an SDK for a module, which allows you to have, for example, a Java project with a perl module
A warning appeared when opening a perl file for which the Perl SDK is not installed (for a module or project)