vscode-maven icon indicating copy to clipboard operation
vscode-maven copied to clipboard

Unable to resolve unknown type as command "maven.artifactSearch"fails

Open yuyully opened this issue 2 years ago • 0 comments

Describe the bug Unable to resolve unknown type as command "maven.artifactSearch"fails. If remove the code 'static void fun(){}', it will work fine.

To Reproduce Steps to reproduce the behavior:

  1. Create a new java file > Add following code
public class Test {
    public static void main(string[] args) {
        
    }

    static void fun() {
        int a
        for (l < 10) {

        }
    }
}
  1. Hovering on the main method > Select 'Resolve unknown Type' > Select one dependency > Shows an error

Expected behavior Can add a dependency to resolve the unknown type.

Environments (please complete the following information as much as possible):

  • OS: Mac intel
  • VS Code version: 1.77.3
  • Extension version: 0.41.0

Screenshots image

yuyully avatar Apr 27 '23 08:04 yuyully