Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report more variable names in warning and error messages #13188

Open
p5pRT opened this issue Aug 22, 2013 · 3 comments
Open

report more variable names in warning and error messages #13188

p5pRT opened this issue Aug 22, 2013 · 3 comments

Comments

@p5pRT
Copy link

p5pRT commented Aug 22, 2013

Migrated from rt.perl.org#119415 (status was 'open')

Searchable as RT119415$

@p5pRT
Copy link
Author

p5pRT commented Aug 22, 2013

From @tonycoz

Created by @tonycoz

Currently perl reports variable names for only a limited number of
warning and error messages.

It would be useful if they could be reported for more messages.

Some examples​:

Can't call method "foo" on an undefined value

Use of reference "SCALAR(0x1e8dbf0)" as array index

Argument "a" isn't numeric in multiplication (*)

Briefly discussed in [perl #3330].

Perl Info

Flags:
    category=core
    severity=wishlist

Site configuration information for perl 5.19.3:

Configured by tony at Mon Aug 19 14:37:30 EST 2013.

Summary of my perl5 (revision 5 version 19 subversion 3) configuration:
  Commit id: a963e2b287c3184467a914de519fd48e84bc57b4
  Platform:
    osname=linux, osvers=3.2.0-4-amd64, archname=x86_64-linux-thread-multi
    uname='linux mars 3.2.0-4-amd64 #1 smp debian 3.2.41-2 x86_64 gnulinux '
    config_args='-des -Dusedevel -Dprefix=/home/tony/perl/v5.19.2-522-g819435d -Duseithreads'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.7.2', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc -lgdbm_compat
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.13'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'



@INC for perl 5.19.3:
    /home/tony/perl/v5.19.2-522-g819435d/lib/site_perl/5.19.3/x86_64-linux-thread-multi
    /home/tony/perl/v5.19.2-522-g819435d/lib/site_perl/5.19.3
    /home/tony/perl/v5.19.2-522-g819435d/lib/5.19.3/x86_64-linux-thread-multi
    /home/tony/perl/v5.19.2-522-g819435d/lib/5.19.3
    .


Environment for perl 5.19.3:
    HOME=/home/tony
    LANG=en_AU.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/tony/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
    PERL_BADLANG (unset)
    SHELL=/bin/bash

@p5pRT
Copy link
Author

p5pRT commented Sep 22, 2014

From @jkeenan

On Wed Aug 21 18​:33​:36 2013, tonyc wrote​:

This is a bug report for perl from tony@​develop-help.com,
generated with the help of perlbug 1.39 running under perl 5.19.3.

-----------------------------------------------------------------
[Please describe your issue here]

Currently perl reports variable names for only a limited number of
warning and error messages.

It would be useful if they could be reported for more messages.

Some examples​:

Can't call method "foo" on an undefined value

Use of reference "SCALAR(0x1e8dbf0)" as array index

Argument "a" isn't numeric in multiplication (*)

Tony​:

I see all of the above warnings listed above in core source code and tests.

Can you give examples of other warnings which should similarly interpolate variable names?

Thank you very much.

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Sep 22, 2014

The RT System itself - Status changed from 'new' to 'open'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants