tooltitude / support

Tooltitude Support
https://www.tooltitude.com
Other
21 stars 0 forks source link

`export_test.go` pattern yields "Unresolved Reference" messages #24

Closed anpep closed 3 months ago

anpep commented 1 year ago

Tooltitude Version: v0.41.0

OS Version: Linux ubuntu 6.4.16-orbstack-00105-g14094bfeec09 #1 SMP Mon Sep 18 21:45:38 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

VS Code Version: 1.83.1

Go Version: go version go1.20.10 linux/arm64

Code Repository (if open source):

What did you try to do?

I exported some symbols on a file named export_test.go under the package name grubenv_test. However, these symbols are not correctly resolved on other files under the grubenv_test package.

Screenshot 2023-10-23 at 13 09 15
tooltitude-support commented 1 year ago

@anpep Thank you for the feedback and helping us reproduce the issue.

It looks like we have a package abc, we could import it not only without a package prefix but also via abc. prefix. I was able to reproduce it. Fix will be soon (my best guess is today), most likely in 0.41.1 patch fix, which we will likely release today or tomorrow.

tooltitude-support commented 1 year ago

@anpep Ok. Fixed it. Will release 0.41.1 after a bit of testing, and cleanups.

anpep commented 1 year ago

Thank you! Will stay tuned

tooltitude-support commented 1 year ago

Ok. The build is out. Please update to 0.41.1 and check whether the problem disappear.

tooltitude-support commented 1 year ago

UPD: The latest release is 0.41.2. One more issue is fixed.

anpep commented 1 year ago

The problem did disappear. Thank you!

anpep commented 1 year ago

The problem just reappeared, I don't understand why since I tried yesterday and it worked. Problem exists on both 0.41.2 and 0.41.3 :(

tooltitude-support commented 1 year ago

@anpep Ooops. Do you have the same configuration as described? Or is there anything different?

tooltitude-support commented 1 year ago

I used the following as the test case. Is yours any different?

Screenshot 2023-10-25 at 8 36 48 AM
anpep commented 1 year ago

Not really, differences are in naming only:

tooltitude-support commented 1 year ago

@anpep I see a GPL header. Is this code available anywhere on github?

tooltitude-support commented 1 year ago

@anpep BTW, are you sure that it's a tooltitude bug, i.e. is there a tooltitude label in the popup which is shown when you hover over error?

UPD: also, could you try exact my example somewhere in your project? Does it reproduce?

tooltitude-support commented 3 months ago

Closing it, since there were no updates for a pretty long time. Please create a new issue if you have it again.