Closed tdehaeze closed 5 years ago
You need to edit jar files paths in build.gradle to match your MATLAB install location.
On Fri, Jul 19, 2019, 2:19 AM Thomas Dehaeze notifications@github.com wrote:
When I type gradlew jar in the repository, I obtain the following:
Task :compileJava FAILED /home/thomas/github/matlab-langserver/src/main/java/org/tokor/lspmatlab/MATLABEngineSingleton.java:3: error: package com.mathworks.engine does not exist import com.mathworks.engine.MatlabEngine; ^ /home/thomas/github/matlab-langserver/src/main/java/org/tokor/lspmatlab/MATLABEngineSingleton.java:14: error: cannot find symbol public MatlabEngine engine; ^ symbol: class MatlabEngine location: class MATLABEngineSingleton /home/thomas/github/matlab-langserver/src/main/java/org/tokor/lspmatlab/MATLABEngineSingleton.java:15: error: cannot find symbol private Future
future; ^ symbol: class MatlabEngine location: class MATLABEngineSingleton /home/thomas/github/matlab-langserver/src/main/java/org/tokor/lspmatlab/MATLABEngineSingleton.java:20: error: cannot find symbol engines = MatlabEngine.findMatlab(); ^ symbol: variable MatlabEngine location: class MATLABEngineSingleton /home/thomas/github/matlab-langserver/src/main/java/org/tokor/lspmatlab/MATLABEngineSingleton.java:27: error: cannot find symbol this.future = MatlabEngine.startMatlabAsync(options); ^ symbol: variable MatlabEngine location: class MATLABEngineSingleton /home/thomas/github/matlab-langserver/src/main/java/org/tokor/lspmatlab/MATLABEngineSingleton.java:30: error: cannot find symbol this.future = MatlabEngine.connectMatlabAsync(engines[0]); ^ symbol: variable MatlabEngine location: class MATLABEngineSingleton /home/thomas/github/matlab-langserver/src/main/java/org/tokor/lspmatlab/MATLABEngineSingleton.java:56: error: cannot find symbol return evalInMATLAB(statement, varIn, valueIn, varOut, MatlabEngine.NULL_WRITER); ^ symbol: variable MatlabEngine location: class MATLABEngineSingleton Note: /home/thomas/github/matlab-langserver/src/main/java/org/tokor/lspmatlab/MATLABTextDocumentService.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 7 errors FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':compileJava'.
Compilation failed; see the compiler error output for details.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1s 1 actionable task: 1 executed
Any idea what failed?
PS: I never used java
Thanks :)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tokoro10g/matlab-langserver/issues/6?email_source=notifications&email_token=AAEJYYUJRGEKKEZAQNBUQQTQACQYLA5CNFSM4IE54D6KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HAB7ZYQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEJYYTKJGSEIJXPGQGEFYLQACQYLANCNFSM4IE54D6A .
Thanks, this is working fine.
When I type
gradlew jar
in the repository, I obtain the following:Any idea what failed?
PS: I never used java
Thanks :)