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

'go to definition' fail #43

Open
JingjianSun opened this issue Oct 16, 2023 · 2 comments
Open

'go to definition' fail #43

JingjianSun opened this issue Oct 16, 2023 · 2 comments

Comments

@JingjianSun
Copy link

sometimes 'go to definition' failed, if manually open the file function defined in,'go to definition' success

@5nord
Copy link
Member

5nord commented Oct 20, 2023

Thanks to your feedback we could identify an issue, which was bugging us for a while! 😊

This issue happens when vscode-ttcn3 does not know the correct location of required TTCN-3 files.
There are multiple explanations for that. The most common is:
We have to guess where TTCN-3 files are, because there's no standard layout for organizing TTCN-3 files. But sometimes we guess wrong and then 'go to definition' will only work for files that have been opened before.

I created issue nokia/ntt#709 to track and improve this situation. I think I can resolve this in about 2 weeks, in the meantime there's a workaround: Create a directory testcases in your (testsuite-root) directory and put some TTCN-3 files into that new directory. Our tool will scan recursively for TTCN-3 files.

@JingjianSun
Copy link
Author

Thanks for your detailed reply and excellent work!
The workaround is useful,thank you!
@5nord

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

No branches or pull requests

2 participants