Skip to content
Tcl Source Code History Of Ticket 1182109fffffffff
Login

History Of Ticket 1182109fffffffff

Artifacts Associated With Ticket 1182109fffffffff

  1. Ticket change [e11febb7ff] (rid 87394) by nicolascastagne on 2005-04-13 09:52:42:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tcl is often used as a scripting language for users in big  
      applications.  
      However, users may not speak english - or, more  
      generally, the language used in the app to communicate  
      with the user may be not english.  
        
      I suggest that Tcl should offer a way to handle error  
      message in a better way, allowing :  
      - at least translation of errors in other languages  
      - better : machine-understandable description (such as  
      error codes), so that the error message may be  
      constructed according to the need, just before sending it to  
      the user.  
        
      For example, we CANNOT provide english error messages  
      in our app. Given the current error management system,  
      this seems to be quite a difficult problem to solve...  
        
      Pointers for solutions :  
      - split of error messages in various parts : static parts (such  
      as "Syntax Error", etc.) and variable parts (which give  
      details on the error, depending of the context : line number,  
      name of the procedure, etc.).  
      This is needed to set up a translation system by using  
      msgcat, for example  
      - generalisation of error codes. In the current version, error  
      codes are not set for all the erros.  
        
      For details :  
      - see news://comp.lang.tcl : quite a large discussion took  
      place on the subject, starting from April, 07, 2005, under  
      the subjects " Managing (translate) errors in a different 
      language " and "Translate error messages" 
      - contact me ! 
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nicolascastagne"
    9. subsystem initialized to: "None"
    10. title initialized to: "Translate and manage error messages"
    11. type initialized to: "RFE"
  2. Ticket change [11244d3c8d] (rid 95091) by dkf on 2005-04-13 17:34:22:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      The correct approach is to update Tcl's internal error
      generation to make proper use of the errorCode facility so
      that we always have a machine-understandable representation
      of the error. Currently, we're horribly lax about this
      except for errors originating in the OS; most core errors
      are only described in human-readable terms in English. :^(
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "6"
    5. username: "dkf"
  3. Ticket change [948595f93c] (rid 105995) by nicolascastagne on 2005-04-13 23:14:05:

    1. icomment:
      Logged In: YES 
      user_id=1258423
      
      Additional comment. 
      Agree (I mean, a a Tcl user !) 
      Then, in parallel with error code, other info describing the error 
      should be recorded, such as : 
      - line number (already available) 
      - name of the unrecognized token 
      - name of the proc in which the error took place 
      - ... 
       
      Dunno if it is easy to make a full overview of the info that should 
      be recorded, so that a full error-message could be reconstructed 
      by the caller of Tcl_Eval. 
      
      
    2. login: "nicolascastagne"
    3. mimetype: "text/plain"
    4. username: "nicolascastagne"
  4. Ticket change [31128f8725] (rid 93362) by dkf on 2005-04-14 15:25:55:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Line numbers have already been split out separately (well,
      there's quite a bit of complexity in there; see TIP#90 for
      the details http://tip.tcl.tk/90) though it is often only a
      line number within a procedure definition for various reasons.
      
      I don't know if we put the containing command into the error
      dictionary yet. If not, it'd be a fine enhancement IMHO.
      Assigning to Don Porter for his comments on this side issue.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  5. Ticket change [42743a56b4] (rid 116384) by dgp on 2005-04-18 21:56:33:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      This question ties into idea about
      building $::errorInfo "lazily".  See
      523900 and 1047543.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [1a520661da] (rid 122963) by nicolascastagne on 2005-09-30 22:11:31:

    1. icomment:
      Logged In: YES 
      user_id=1258423
      
      See also 1309482 
      
      
    2. login: "nicolascastagne"
    3. mimetype: "text/plain"
    4. username: "nicolascastagne"
  7. Ticket change [9da718cae2] (rid 96345) by dkf on 2012-07-03 15:20:26:

    1. icomment:
      8.6 is much better about generating errorcodes correctly (as part of making [try] useful.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"