vscode-maven
vscode-maven copied to clipboard
Unable to resolve unknown type as command "maven.artifactSearch"fails
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:
- 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) {
}
}
}
- 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
