Camelcade / Devel-Camelcadedb

Perl module for debugging with Perl5 plugin for IntelliJ
Other
23 stars 9 forks source link

lvalue subroutines not handled properly #28

Open JB62 opened 7 years ago

JB62 commented 7 years ago

Assigning to lvalue subroutines always fails with "Can't modify non-lvalue subroutine call at ..." errors when run under the debugger. The same code executes just fine stand-alone.

eg.

use strict; use warnings; my $var = "Before"; sub foo : lvalue { $var; } foo = "After"; print foo, "\n";

Gives... (1)Connecting to the IDE from process 1698 at localhost:38513... Connected. Disconnected Can't modify non-lvalue subroutine call at /data/misc/sample-share/working/src/xx.pl line 7, line 1.

Where just running on the command line gives

$ perl xx.pl After

--

IDE version: IC-171.3780.107 Plugin version: 2017.1.1 Perl version v5.22.1 Devel::Camelcadedb version 1.6.1.6

hurricup commented 2 years ago

Probably related https://github.com/Perl/perl5/issues/17412