Euphoria Ticket #664: Symbol resolution errors should report as much information as 3.1 did

In version EUPHORIA 3.1 if you use a symbol without ever declaring it, the Interpreter will complain with a message like "'foo' has not been declared'" and if a symbol is declared twice in the same scope it will complain with a message like "'foo' is declared more than once." It not only tells you this but also where these declarations are. In contrast in 4.0, with both of these issues you are informed that it cannot "resolve" your symbol and it is up to you to determine whether it is undeclared in this scope or declared more than once and where these are declared.

Whether a symbol has been defined more than once in the scope or not at all are very distinct problems and the information of telling us where is an important help for a user.

Details

Type: Bug Report Severity: Normal Category: Interpreter
Assigned To: mattlewis Status: Fixed Reported Release: 4.0.2
Fixed in SVN #: View VCS: none Milestone: 4.0.4

1. Comment by SDPringle Jun 24, 2011

fixed in b41e08d4c5c6

2. Comment by mattlewis Jul 20, 2011

Reopening: The file and line information has been removed, e.g.:

<0074>:: Errors resolving the following references: 
    'T_TOK' has not been declared. 
    'SYM' has not been declared. 
    'SC_SCOPE' has not been declared. 
    'T_TOKEN' has not been declared. 

3. Comment by mattlewis Jul 20, 2011

See: hg:euphoria/rev/0e5fee3d344c

changeset: 5068:0e5fee3d344c branch: 4.0 parent: 5066:38db07c47556 user: Matt Lewis date: Wed Jul 20 16:51:27 2011 -0400 files: source/fwdref.e tests/t_c_decl_redundant.d/control.err tests/t_c_decl_redundant2.d/control.err tests/t_c_eu_nonbuiltin.d/control.err tests/t_c_fwd_samefile.d/control.err tests/t_c_ns_builtin.d/control.err tests/t_c_qualpredef.d/control.err description:

  • restored file and line numbers for each instance of an error
  • fixes ticket 664

Search



Quick Links

User menu

Not signed in.

Misc Menu