You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[provide a description of the issue]
When pom.xml is opened, the following exception message is displayed:
Java Model Exception: Error in Java Model (code 969): <parent_project_name> does not exist
Java Model Exception: Error in Java Model (code 969): project_template does not exist
at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:550)
at org.eclipse.jdt.internal.core.JavaModelManager.getPerProjectInfoCheckExistence(JavaModelManager.java:2567)
at org.eclipse.jdt.internal.core.JavaProject.getPerProjectInfo(JavaProject.java:2445)
at org.eclipse.jdt.internal.core.JavaProject.getRawClasspath(JavaProject.java:2488)
at org.eclipse.jdt.ls.core.internal.ProjectUtils.listSourcePaths(ProjectUtils.java:245)
at org.eclipse.jdt.ls.core.internal.commands.ProjectCommand.getProjectSettings(ProjectCommand.java:113)
at com.yybp.jdtls.ext.mybatis.MybatisCommandHandler.getJavaProjectInfo(MybatisCommandHandler.java:57)
at com.yybp.jdtls.ext.mybatis.MybatisCommandHandler.executeCommand(MybatisCommandHandler.java:40)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler$1.run(WorkspaceExecuteCommandHandler.java:230)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.jdt.ls.core.internal.handlers.WorkspaceExecuteCommandHandler.executeCommand(WorkspaceExecuteCommandHandler.java:220)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$4(JDTLanguageServer.java:613)
at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:87)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture$Completion.exec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
at com.yybp.jdtls.ext.mybatis.MybatisCommandHandler.getJavaProjectInfo(MybatisCommandHandler.java:57)
at com.yybp.jdtls.ext.mybatis.MybatisCommandHandler.executeCommand(MybatisCommandHandler.java:40)
The exception is threw from other extension Mybatis. I have no idea about this extension. Do you know what this extension is and open the issue there?
at com.yybp.jdtls.ext.mybatis.MybatisCommandHandler.getJavaProjectInfo(MybatisCommandHandler.java:57)
at com.yybp.jdtls.ext.mybatis.MybatisCommandHandler.executeCommand(MybatisCommandHandler.java:40)
The exception is threw from other extension Mybatis. I have no idea about this extension. Do you know what this extension is and open the issue there?
Thank you very much for your reply. It is indeed this extension that caused this problem. After I disabled it, everything became normal.
[provide a description of the issue]
When pom.xml is opened, the following exception message is displayed:
Java Model Exception: Error in Java Model (code 969): <parent_project_name> does not exist
Environment
I'm running on SSH remote environment
Steps To Reproduce
Create a Maven-based multi-module project, one parent module, three sub-modules
Open the parent module folder with vscode, and click on pom.xml in any module after loading is complete, this error will occur.
I have tried to clear the workspace numerous times and the error still persists
[Please attach a sample project reproducing the error]
The project directory structure is as follows
root@7027c0959c2d:~/java/projects/project_template# tree
.
├── pom.xml
├── project_template_api
│ ├── pom.xml
│ ├── src
│ │ └── main
│ │ └── java
│ └── target
│ └── classes
├── project_template_biz
│ ├── pom.xml
│ ├── src
│ │ └── main
│ │ └── java
│ └── target
│ └── classes
└── project_template_web
├── pom.xml
├── src
│ ├── main
│ │ ├── java
│ │ └── resources
│ │ └── banner.txt
│ └── test
└── target
└── classes
Parent module(project_template) pom.xml
Sub module pom.xml
Please attach logs
Current Result
Output exception message:
Expected Result
no error
Additional Informations
java-language-server-log-file.txt
The text was updated successfully, but these errors were encountered: