ginkgoTestExplorer
ginkgoTestExplorer copied to clipboard
Add option to disable error notifications
Test files are often saved in a transient state which triggers an error notification. Over time it adds up to a constant spam of error notifications like Could not populate the outline view
. It would be nice to have a way to disable them.
The only thing letting down this great plugin is the incessant occurrence of "Could not populate the outline view". As a new go developer I am not sure of the severity of this issue, except that I can't see any consequences apart from the annoyance of it appearing every few seconds. So yeah it would be great if it could be suppressed or the underlying issue being address. The error in the vscode log is:
Checking the Ginkgo executable was installed.
Could not populate the outline view: Error: error running "ginkgo outline --format=json -" (error code 1): [38;5;9m[1mginkgo outline[0m [38;5;9mfailed[0m
Failed to create outline:
file does not import "github.com/onsi/ginkgo/v2"
Ginkgo executable already installed. ;)
In particular, what does this file does not import "github.com/onsi/ginkgo/v2" mean? My mod file is indeed using v2:
github.com/onsi/ginkgo/v2 v2.1.4
And also my tests are:
import ( . "github.com/onsi/ginkgo/v2"
Any idea how to suppress this 'fake' error?
@RomanKornev and @plastikfan,
I will investigate that. Thanks for your feedback.
@joselitofilho Any update on this issue? I am also facing same issue.
@joselitofilho This seems to be triggering when accessing non-test files (which of course wouldn't import ginkgo), so the underlying ginkgo outline
call is of course going to error out.
Thank you @shakefu! Make sense.
I've created a PR (#71) to at least stop creating a popup on non-test go files. Better than nothing for now. @joselitofilho is it possible to take a look at it when possible? Thanks