Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.14k stars 299 forks source link

Debugging Issue #3955

Open EmilKrobot opened 1 year ago

EmilKrobot commented 1 year ago

I have this little code in my Block.pm sub cmvec:lvalue { vec($canmove, $_[0], 1); } When I am attempting to run a script with Komodo debbuger, I always get this error message "Can't modify non-lvalue subroutine call of &DB::sub at C:/Workspace/Sokoban/lib/Games/Sokoban/Block.pm line 146."

Where line #146 in Block.pm is "cmvec($_) = 1 foreach ($man, @{ $bags; });" Komodo IDE
Komodo Version 12:1 Windows 11 Pro 64-bit AMD64 x86_64-w64 build 22000.795

Summary of my perl5 (revision 5 version 32 subversion 1) configuration:

Platform: osname=MSWin32 osvers=10.0.19042.746 archname=MSWin32-x64-multi-thread uname='Win32 strawberry-perl 5.32.1.1 #1 Sun Jan 24 15:00:15 2021 x64' config_args='undef' hint=recommended useposix=true d_sigaction=undef useithreads=define usemultiplicity=define use64bitint=define use64bitall=undef uselongdouble=undef usemymalloc=n default_inc_excludes_dot=define bincompat5005=undef Compiler: cc='gcc' ccflags =' -DWIN32 -DWIN64 -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields' optimize='-s -O2' cppflags='-DWIN32' ccversion='' gccversion='8.3.0' gccosandvers='' intsize=4 longsize=4 ptrsize=8 doublesize=8 byteorder=12345678 doublekind=3 d_longlong=define longlongsize=8 d_longdbl=define longdblsize=16 longdblkind=3 ivtype='long long' ivsize=8 nvtype='double' nvsize=8 Off_t='long long' lseeksize=8 alignbytes=8 prototype=define Linker and Libraries: ld='g++' ldflags ='-s -L"C:\STRAWB~1\perl\lib\CORE" -L"C:\STRAWB~1\c\lib"' libpth=C:\STRAWB~1\c\lib C:\STRAWB~1\c\x86_64-w64-mingw32\lib C:\STRAWB~1\c\lib\gcc\x86_64-w64-mingw32\8.3.0 libs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 perllibs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 libc= so=dll useshrplib=true libperl=libperl532.a gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs dlext=xs.dll d_dlsymun=undef ccdlflags=' ' cccdlflags=' ' lddlflags='-mdll -s -L"C:\STRAWB~1\perl\lib\CORE" -L"C:\STRAWB~1\c\lib"'

Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY PERLIO_LAYERS PERL_COPY_ON_WRITE PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PERL_OP_PARENT PERL_PRESERVE_IVUV USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO USE_PERL_ATOF Built under MSWin32 Compiled at Jan 24 2021 15:05:42 %ENV: PERL5LIB="C:/Workspace/Sokoban/lib" @INC: C:/Workspace/Sokoban/lib C:/Strawberry/perl/site/lib C:/Strawberry/perl/vendor/lib C:/Strawberry/perl/lib

th3coop commented 1 year ago

@EmilKrobot , does this code run outside Komodo?

EmilKrobot commented 1 year ago

Yes, there is no problem outside Komodo. This is only a debugger thing. Syntax checking in Komodo does not complain against this code too. JB

út 2. 8. 2022 v 17:08 odesílatel Carey Hoffman @.***> napsal:

@EmilKrobot https://github.com/EmilKrobot , does this code run outside Komodo?

— Reply to this email directly, view it on GitHub https://github.com/Komodo/KomodoEdit/issues/3955#issuecomment-1202778641, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYVVTGBMEZTEG4YOY3ZIUTVXE2XPANCNFSM55IVG7TA . You are receiving this because you were mentioned.Message ID: @.***>

th3coop commented 1 year ago

Without seeing more of the code and not being able to run it myself my guess would be that you're not using the same version of Perl in Komodo as you're using in your terminal. You can check your language settings in Edit menu > Preferences > lanuages > perl.

If it's not that, can you provide a minimal example that reproduces the issue so I can try reproducing the issue?