Opened 6 years ago

Last modified 3 years ago

#5398 new defect

getClassInformation returns wrong source info

Reported by: Adeel Asghar Owned by: somebody
Priority: high Milestone:
Component: Interactive Environment Version:
Keywords: Cc: Adrian Pop, Martin Sjölund

Description

Run the attached script. getClassInformation(Modelica.Mechanics.MultiBody.World.gravityAcceleration) returns,

("function","",false,false,false,"C:/OpenModelica/build/lib/omlibrary/Modelica 3.2.3/Mechanics/MultiBody/package.mo",false,1185,15,1188,8,{},false,false,"","",false,"")

The line and column end information is wrong. It gives 1188 and 8 but it should be 1201 and 11.

Attachments (1)

5398.mos (209 bytes ) - added by Adeel Asghar 6 years ago.

Download all attachments as: .zip

Change History (8)

by Adeel Asghar, 6 years ago

Attachment: 5398.mos added

comment:1 by Adeel Asghar, 6 years ago

Cc: Adrian Pop Martin Sjölund added

comment:2 by Francesco Casella, 6 years ago

@adrpo, does this change with the new API?

comment:3 by Adrian Pop, 6 years ago

@casella: this does not change with the new API, is an AST query, nothing to do with instantiation.

comment:4 by Francesco Casella, 5 years ago

Milestone: 1.14.01.16.0

Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2. This issue is rescheduled to 1.16.0

comment:5 by Francesco Casella, 4 years ago

Milestone: 1.16.01.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:6 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:7 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.