-
Notifications
You must be signed in to change notification settings - Fork 344
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
cannot find main method #1207
Comments
Could you pls provide the details about this error? It's better to provide a sample project to reproduce the issue. |
This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further. |
@vallabhtiwari It shows Java extension encounters some issues during importing your workspace. Could you pls share the Java extension logs? Here is the command to get logs: "F1 -> Java: Open Java Language Server Log File" |
@vallabhtiwari thanks for giving some screenshots, do you mind sharing the raw log to us? |
log.zip |
@vallabhtiwari thanks for the logs. It seems your workspace state is crashed. Could you try to clean the cache via command "F1 -> Java: Clean Java Language Server Workspace"? |
Very weird. Could you provide a sample project to help reproduce the problem? |
I also suggest you to open a new issue for this. It's better to provide more details to describe your environment, the installed extension list, and the reproduce steps. |
These two language support extensions cannot coexist together, you can only install one of them. |
Yes I know that. I installed it because none of the extension of the extension pack were working. Language support for java by red hat doesn't work. |
Hi @testforstephen , Idk why but now everything is working. |
The samething here.. @vallabhtiwari how did you resolved it? |
!SESSION 2023-05-17 20:26:54.071 ----------------------------------------------- !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:03.857 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:05.754 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:06.128 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:06.149 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:08.987 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.113 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.241 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.302 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.303 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.305 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.306 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.308 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.309 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.310 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.312 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.313 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.314 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.346 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.712 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.935 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:09.957 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:10.078 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:10.130 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:10.636 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:14.414 !ENTRY org.eclipse.jdt.ls.core 4 0 2023-05-17 20:27:15.407 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:15.492 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:15.507 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:15.547 !ENTRY org.eclipse.core.resources 4 2 2023-05-17 20:27:16.816 !ENTRY org.eclipse.jdt.ls.core 4 0 2023-05-17 20:27:17.219 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:27:17.233 !ENTRY org.eclipse.core.jobs 4 2 2023-05-17 20:27:17.246 !ENTRY java-debug 1 0 2023-05-17 20:27:20.642 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:34:58.857 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:34:58.869 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:34:58.969 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:34:58.995 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:23.324 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:25.654 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:26.068 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:26.089 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:28.522 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:28.524 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:28.525 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:28.526 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:28.528 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:28.529 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:28.530 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:28.531 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:28.532 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:28.534 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:28.563 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:28.574 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:28.805 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:29.073 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:29.283 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:32.316 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:32.476 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:32.564 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:32.590 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:32.644 !ENTRY org.eclipse.core.resources 4 2 2023-05-17 20:35:34.308 !ENTRY org.eclipse.jdt.ls.core 4 0 2023-05-17 20:35:35.536 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:35:35.553 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:15.900 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:15.913 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:16.024 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:16.052 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:39.820 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:41.525 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:41.899 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:41.914 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:44.529 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:44.568 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:44.570 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.514 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.532 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.534 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.537 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.538 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.539 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.540 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.542 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.543 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.544 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.545 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.569 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.578 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.669 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.768 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:45.876 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:49.509 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:49.706 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:49.848 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:49.890 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:49.949 !ENTRY java-debug 1 0 2023-05-17 20:38:50.494 !ENTRY org.eclipse.jdt.ls.core 4 0 2023-05-17 20:38:51.741 !ENTRY org.eclipse.jdt.ls.core 1 0 2023-05-17 20:38:51.754 |
@alexandrefelipemuller Apparently your maven project build failed. Pls try to use maven command to compile the project first, if it succeeds but vscode fails, then pls open an issue at https://github.com/redhat-developer/vscode-java/issues. |
I had the same problem.The reason of my problem is my workspace have too many projects.I try to open another workspace and just open one of them.Then it working!Maybe you can try it the same things like me. |
I had the same problem, to be exact, often. And this works. Could you do something to make it not happen too easily? |
Please I'm facing the same issue. I need help. |
Please how did you resolve it? |
Using intellij idea |
it is useful |
[provide a description of the issue]
Environment
Steps To Reproduce
[attach a sample project reproducing the error]
attach logs
Current Result
Expected Result
Additional Informations
The text was updated successfully, but these errors were encountered: