*.pl files not recognized by Camelcade IDEA plugin

46 views
Skip to first unread message

Ondrej

unread,
Dec 21, 2017, 7:26:41 AM12/21/17
to Camelcade - Perl plugin for IntelliJ IDEA
Hi,

my IntelliJ idea doesn't recognize and parse properly *.pl files. 

I have following setup:
Kernel: 4.4.0-53-generic x86_64 (64 bit)
Desktop: MATE 1.16.2  Distro: Linux Mint 18.1 Serena


IntelliJ IDEA 2017.3.1 (Community Edition)
Build #IC-173.3942.27, built on December 11, 2017
JRE: 1.8.0_152-release-1024-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.4.0-53-generic

JDK 1.8 from Oracle
CAMELCADE Perl plugin: Version: 2017.4.1

Would you have some idea what can be the issue?

Thank you,

Ondrej


VirtualBox_LinuxMint_21_12_2017_13_17_39.png

Alexandr Evstigneev

unread,
Dec 21, 2017, 7:50:47 AM12/21/17
to Camelcade - Perl plugin for IntelliJ IDEA
Looks like this https://github.com/Camelcade/Perl5-IDEA/issues/1671

четверг, 21 декабря 2017 г., 15:26:41 UTC+3 пользователь Ondrej написал:

Ondrej

unread,
Dec 21, 2017, 9:09:03 AM12/21/17
to Camelcade - Perl plugin for IntelliJ IDEA
Thanks! That helped. IntelliJ idea had *.pl extension assigned to Prolog.

Second issue I observed afterwards is that my 14452 lines long file is cut around ~100 characters before real end of file (though deparsed file looks ok):

....
....
  send_msg_log_writer('B_CNT', "$db_name - lines processed ($db_file_name)", $line_number);
  send_msg_log_writer('B_CNT', "$db_name - expected number of r

File in IDE is cut after r character so IDE shows this error and file cannot be executed:

General
Syntax error
<expr>, <expression>, Perl5: QUOTE_DOUBLE_CLOSE or Perl5: STRING_CONTENT_QQ expected, unexpected end of file

Any idea on this thing?

Thank you,
Ondrej

Alexandr Evstigneev

unread,
Dec 21, 2017, 9:42:57 AM12/21/17
to Camelcade - Perl plugin for IntelliJ IDEA
not quite sure I understand what do you mean by cut around? Can i have a file in question? You may send it to my mail if it's private.

четверг, 21 декабря 2017 г., 17:09:03 UTC+3 пользователь Ondrej написал:

Ondrej

unread,
Dec 21, 2017, 10:03:20 AM12/21/17
to Camelcade - Perl plugin for IntelliJ IDEA
By "cut" I mean that IntelliJ IDE will not display complete file as it is e.g. displayed by linux cat command or gedit. IDE does not show last 465 bytes of the file. I also noticed that when putting breakpoints, their location don't seems to be synced to the IDE editor. E.g. when I put break point on some valid assignment statements, IDE tells me "you can not put breakpoint here". In other cases I put breakpoint on empty line and IDE says "it is valid breakpoint" when I hover with mouse above it.

Ondrej

unread,
Dec 22, 2017, 4:19:59 AM12/22/17
to Camelcade - Perl plugin for IntelliJ IDEA
Seems restart of my virtual machine and removing and re-adding the problematic file has fixed issue. Now file is shown complete in the IDE editor and it is also parsed correctly so it can be debugged correctly.

Many thanks for great work!
Reply all
Reply to author
Forward
0 new messages