THM-MoTE / mope-server

Server process for Modelica | Editor
https://thm-mote.github.io//projects/mope
GNU General Public License v3.0
9 stars 0 forks source link

Goto Declaration does not work for imported components #19

Open CSchoel opened 4 years ago

CSchoel commented 4 years ago

MWE:

model MyModel
  import Modelica.Electrical.Analog.Sources.ConstantCurrent;
  ConstantCurrent c(I=5);
end MyModel;

With the cursor on ConstantCurrent the action "Goto Declaration" yields the following warning:

Can't go anywhere ◔_◔ּ

Couldn't go to definition of ConstantCurrent

It will probably not be easy to resolve this issue properly, as the import does not have to be in the same class. It could also be in any enclosing class or package and it could be an unqualified import using wildcards.