Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Goto declaration #26

Merged
merged 3 commits into from
Jun 27, 2024
Merged

Goto declaration #26

merged 3 commits into from
Jun 27, 2024

Conversation

ehedbor
Copy link
Contributor

@ehedbor ehedbor commented Jun 17, 2024

Adds support for the textDocument/gotoDeclaration LSP feature.

PaddiM8 and others added 2 commits June 17, 2024 16:33
@AnHeuermann AnHeuermann self-requested a review June 18, 2024 09:41
@adeas31 adeas31 self-requested a review June 18, 2024 11:22
  - Adding copyright
  - Updating README to showecase goto-declaration
  - Fixing ModelicaLibrary to work for e.g. "path/to/Modelica 4.0.0+main.om"
Copy link
Member

@AnHeuermann AnHeuermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When testing a few declarations in some Modelica libraries like NeuralNetwork the goto function works fine. When testing the Modelica standard library it doesn't work for me. Looks like my save location of the MSL contains a space in the path ~/.openmodelica/libraries/Modelica\ 4.0.0+maint.om. When moving the directory to some location without a space it works as expected.

@ehedbor @PaddiM8 I added a commit to fix this.

Now goto-declaration is working as expected. For sure there are some bugs left but they can be fixed when they pop up. When you are happy with the PR (and my change) the PR can be merged.

@PaddiM8
Copy link
Contributor

PaddiM8 commented Jun 26, 2024

Nice! We are both happy with it

@AnHeuermann AnHeuermann merged commit 1a24c25 into OpenModelica:main Jun 27, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants