VSCode Java fails to find local dependency #3536
Unanswered
jeffemandel
asked this question in
Q&A
Replies: 1 comment
-
I installed the upgrade to MATLAB 2024a this morning. Following this, I recompiled disematlab, updating the POM version to 2.1. Following this, all of the errors disappeared in the main project with 2.0. As soon as I updated the version of disematlab in the main POM to 2.1, all the errors returned. I recompiled disematlab as version 2.2 and now 2.1 works in the main project. I'm guessing somewhere in the code for Language Support for Java there is a statement like: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a project that uses Java to call a Matlab routine compiled with Compiler SDK, which creates a Jar. I install the jar with Maven:
The dependency installs in my repository:
I import this dependency into my project:
I call this jar:
This compiles and runs as expected, however, VSCode complains vociferously:
When I look in Java Projects-> Maven Dependencies, I don't see org.jeffmandel.disematlab, but I do see other locally installed dependencies. This occurs whether I run my workspace remotely on my Ubuntu Linux box or locally on my MacBook Pro.
My work environment:
I've cleaned the Java workspace, reviewed all of my settings files, reinstalled Language Support for Java, nothing works. In desperation, I installed Code on my linux server and ran it in an X window.
I opened the directory with the project and amazingly, it finds org.jeffmandel.disematlab and there are none of the niggling issues. I emphasize that the project compiles and runs, it just annoys me that I have to ignore 19 issues generated by this error.
Beta Was this translation helpful? Give feedback.
All reactions