Opened 7 years ago

Closed 4 years ago

#2512 closed enhancement (fixed)

Print component name in errors and warnings when applicable

Reported by: jsten Owned by: jsten
Priority: major Milestone: Pending
Component: Modelica/FrontEnd Version: trunk
Keywords: 1.17-candidate #4734. Cc:

Description (last modified by jsten)

It would be useful to display in what component an error or warning has occurred.
For example:

In file 'src/test/modelica/TypeTests.mo', component 'TypeTests.TypeTest1':
Semantic error at line 35, column 4:
  The right and left expression types of equation are not compatible

This is a part of #4734.

Change History (10)

comment:1 Changed 7 years ago by Jesper Mattsson

Milestone: 1.10.x1.11.x

comment:2 Changed 6 years ago by Tove Bergdahl

Milestone: 1.11.xFuture

comment:3 Changed 6 years ago by Tove Bergdahl

Milestone: FuturePending
Owner: set to jsten
Status: newassigned

comment:4 Changed 6 years ago by Jesper Mattsson

Use implementation to getComponentName() to generate name.

Last edited 6 years ago by Jesper Mattsson (previous) (diff)

comment:5 Changed 6 years ago by Jesper Mattsson

Milestone: Pending1.12.x

comment:6 Changed 6 years ago by Tove Bergdahl

Milestone: 1.12.xPending

comment:7 Changed 5 years ago by jsten

changeset:6581
Added option that, if enabled, will output the names of the components where errors and warnings are detected.

comment:8 Changed 4 years ago by Tove Bergdahl

Keywords: 1.17-candidate added

Remains to set this option to true by default and update junit tests.

comment:9 Changed 4 years ago by jsten

Description: modified (diff)
Keywords: #4734. added

comment:10 Changed 4 years ago by jsten

Resolution: fixed
Status: assignedclosed

changeset:8409
Enabled printing of component names in error messages by default.

Note: See TracTickets for help on using tickets.