Help debugging sourcekit-lsp symbol go to def flakiness

Hey all, pretty new to this so apologies in advance if this is not the right way to post things.

Currently, I am facing an issue where go to def for a symbol works sometimes and not, but with generated .swiftinterface file. This is all in vs code

Lets say I have file A, that has various symbols such as class B and class C.

If I try to do a go to def for class B, it will fail with no definition found. However, if I do the go to def for class B in the import module statement, it will generate the interface and succeed in directing me to it.

There is also a class C. but with this, if I do go to-def for this symbol, it will take me to a newly generated interface file without failing.

The fact that clicking on the go to def of the import module statements for both classes (They both go to the generated .swiftinerface files) lets me know that the files are somehow linked properly, as I can build it as well. (Please let me know if this assumption is wrong)

I'm trying to debug why it works for class C and not for class B. I can see Swiftinterface symbol lookup by adam-fowler · Pull Request #747 · swiftlang/sourcekit-lsp · GitHub was done in the past which added this functionality, but am having a hard time finding the good starting point to debug this. Any help will be appreciated here.

Hi @jkl0619,

Could you file an issue for this at https://github.com/swiftlang/sourcekit-lsp? That should prompt you for some information that will help diagnose the issue.