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

[BUG] Java Test Runner Refresh Tests fails with error message "command 'python.refreshTests' not found" #1348

Closed
deekshithanand opened this issue Dec 17, 2021 · 5 comments · Fixed by #1384
Milestone

Comments

@deekshithanand
Copy link

Environment:
OS: Mac
VS Code: 1.63.2
JDK: v11.0.12
Java Test Runner Extension: v0.33.0
Repro steps:
Open test runner.
Click on refresh test icon/Refresh from the 3 dot menu.

Result:
Tests are not refreshed and the following error is shown.
command 'python.refreshTests' not found
Expected Result:
Test cases shoul be refreshed.

Additional comments:
I have disabled python extensions in my hava workspace. I have multiple java folders(projects) added to this workspace. I dont get why python.refreshTests shows up in a Java environment.

Thanks!

@jdneo
Copy link
Member

jdneo commented Dec 18, 2021

I'm confused here, the command python.refreshTests is not registered by this extension.

Could you provide detailed steps how I can repro this? Thanks.

@PterX
Copy link

PterX commented Dec 24, 2021

same issue,when click here got this error
image

click ... and Refresh is ok

@jdneo
Copy link
Member

jdneo commented Dec 25, 2021

Ok, I guess I know what's happening here.

Is it correct that you installed both Java and Python extension?

If that is true, the one in the navigation bar is contributed by Python extension. While the Refresh in ... is contributed by Java extension. If in your workspace, the python extension is not activated, click the refresh in navigation bar will cause this error.

@jdneo
Copy link
Member

jdneo commented Dec 25, 2021

See microsoft/vscode#139737

@deekshithanand
Copy link
Author

Sorry for the delayed response. Yes, I have both Java and python extensions installed. But I had python disabled on the workspace. (Adding this if it helps) In my case, both the refresh Icon on GUI and refresh option from the list gave this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants