The type X from the descriptor computed for the target context is not visible here #530
Labels
Comments
|
Thanks for reaching out @MrTinyK Could you please provide a sample project to help us reproduce this issue? |
|
https://github.com/DougTea/test |
|
@DougTea i tried the sample project in macOS, there are no compilation errors. Could you share the server logs? F1 -> Java: Open Java Language Server Log File |
|
I can reproduce it too. This seems related with the generic type because your original configure parameter used a generic type . Declare the parameter type explicitly in the lambda can fix the error. public static AuthorizeConfigurer predicate(){
//lamda expression got problem:The type HttpSecurity from the descriptor computed for the target context is not visible here.
return (ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry authorization) -> authorization.anyRequest().permitAll();
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Environment:
Step to Reproduce:
open a maven java project with vscode.The project comtains some lambda expression.
Expected Behavior:
build project without compile error
Actual Behavior:
Project is failed to build with all lambda expression come with an error:
The type [MyType] from the descriptor computed for the target context is not visible here.
Related Issues:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=478533
The text was updated successfully, but these errors were encountered: