Perl5-IDEA icon indicating copy to clipboard operation
Perl5-IDEA copied to clipboard

Add psgi extension support

Open hurricup opened this issue 4 years ago • 6 comments

hurricup avatar Aug 09 '21 08:08 hurricup

Looking forward to this.

Plack has many example PSGI files included in the distribution:

  • https://github.com/plack/Plack/tree/master/eg/dot-psgi

rwp0 avatar Apr 11 '24 23:04 rwp0

I need more specific requests on this. What exactly plugin is expected to help with

hurricup avatar Apr 12 '24 04:04 hurricup

First what I noticed is that the IDE doesn't apply the plugin's more Perl-specific syntax highlighting for files with this extension while doing so for the .pm, .pl, and .t files by default after installing the plugin.

I also saw a separate closed issue on it too suggesting to do that manually instead:

  • https://github.com/Camelcade/Perl5-IDEA/issues/1790

Second, there are scripts, module, and tests, but not web app defined as a separate concept upon creating new Perl files.

Then there could be a UI to help running plackup with specific parameters like --port and --server from within the IDE (ie. plackup Perl utility integration).

rwp0 avatar Apr 12 '24 11:04 rwp0

One thing I noticed no matter how hard you try the Code Style settings are not applied to .psgi files.

For instance, tab is also 4 spaces, even if you set it to 4 and override file type explicitly for .psgi files to be of "Perl Script" format.

rwp0 avatar Apr 22 '24 20:04 rwp0

Do you have an editorconfig by any chance?

hurricup avatar Apr 23 '24 06:04 hurricup

Do you have an editorconfig by any chance?

No, and I disabled editorconfig explicitly to rule that out 🙂

One thing to note is that I run the IDE remotely, so the plugin is installed in a remote Linux host.

rwp0 avatar Apr 23 '24 11:04 rwp0