microsoft / vscode-java-test

Run and debug Java test cases in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-test
Other
298 stars 129 forks source link

Editor gutter shortcut disappear #1604

Closed meiliangdeng closed 1 year ago

meiliangdeng commented 1 year ago

[provide a description of the issue]

Environment
  • Operating System: Mac OS: 12.4
  • JDK version: "java.jdt.ls.java.home": jdk-17.0.3.1.jdk
  • Visual Studio Code version: 1.82.2
  • Java extension version: Language Support for Java(TM) by Red Hat v1.23.2023091604 , Test Runner for Java v0.39.1
Steps To Reproduce
  1. open any java project(eg:maven Project)
  2. coding any unit case

[Please attach a sample project reproducing the error] Please attach logs

Current Result

don`t find The Test Runner for Java extension shortcuts button after coding any unit case image

Expected Result

show shortcuts button, following: image

Additional Informations

The previous version of vscode or Java extension had this shortcut button, but it was not available in the Language Support for Java(TM) by Red Hat v1.23.2023091604 version

jdneo commented 1 year ago

Hi @meiliangdeng, some questions that need your help to confirm:

  1. Will the shortcut appear if you close the file and re-open it?
  2. Does the your project appear in the Java Projects View? (F1 > View: Focus on Java Projects View)
meiliangdeng commented 1 year ago
  1. It has never appeared, even after re-open the file or restarting vscode
  2. should be 'Explorer: Focus on Java Projects View', i have try to do, won't appear either,following: image
jdneo commented 1 year ago

Ok, is this project sharable? If you don't mind, please share it and I can open it on my side to see what happens.

gustavosimon commented 1 year ago

Hello @meiliangdeng and @jdneo! Hope you're well.

I had this same issue right now. The shortcut button didn't appear to me.

I solved this issue downgrading Language Support for Java(TM) by Red Hat to v1.22.1.

Maybe you can try it @meiliangdeng.

meiliangdeng commented 1 year ago

@gustavosimon yes, for any java project, the release version is fine, but the pre-release version is not.

Language Support for Java(TM) by Red Hat v1.23.2023091604、v1.23.2023091904 is not ok

meiliangdeng commented 1 year ago

@jdneo @gustavosimon any java project can be reproduced. for example, you can use this project(master branch):https://github.com/osheroff/mysql-binlog-connector-java.git it can also be reproduced locally

If use Language Support for Java(TM) by Red Hat to v1.22.1, you have no problem, if you use the pre-release version, you have problems


Test Runner for Java has always been version 0.39.1, my guess is that the pre-release version of Language Support for Java(TM) by Red Hat is not compatible with Test Runner for Java version 0.39.1

jdneo commented 1 year ago

Thank you all, I can reproduce this issue with the provided information. Looking into it right now...

jdneo commented 1 year ago

vscode-java-test-0.39.2023092012.vsix.zip Please use this build as a workaround now if it blocks you. I'll schedule a release recently.

jdneo commented 1 year ago

Update:

Pre-release 0.39.2023092208 with the fix of this issue is published.

A stable release is planned in next week.