Reaching out as I'm at my wit's end. I've been usi...
# sdf
b
Reaching out as I'm at my wit's end. I've been using VS Code with SuiteCloud SDK for several years. Last week I started encountering a Java error.
Copy code
Java is not installed on this machine. Install Oracle JDK version 17 to run SuiteCloud Extension for Visual Studio Code.
I have uninstalled/reinstalled the JDK, SuiteCloud SDK extension, and even VS Code itself. I have tried adding environment variables to my system and custom entries in VS Code settings. At one point I got past the Java error but then the encountered another problem.
Copy code
There was an error when downloading SuiteCloud SDK dependencies from <https://system.netsuite.com/download/suitecloud-sdk/22.2/cli-2022.2.1.jar> Close and open the editor to try again.
Has anyone had this much trouble? ANY ideas would be appreciated.
a
Hi, by any chance do you also have node cli installed?
@Ben Tanner ^^
Check if you have
.suitecloud-sdk
directory under the users home folder, and it has the proper permissions for the user.
b
I don't have node cli installed. The directory does exist in my user folder. Permissions appear to be correct (my account has full control).
Looking around in that folder, I see two things related to the errors I'm seeing. The settings json file has
"isJavaVersionValid": false
. Can that be updated manually? The jar file mentioned in the dependency check is present in the vscode subfolder. Is the error because it already exists?
a
Maybe the file size is 0 kb? If you do java -version in vscode terminal, what output do you get?
Do you have node 18 installed? Its trying to get jar file, but because of java error it's not able to. I guess.
b
Java version confirms the install (screenshot). File size matches what I downloaded manually.
Do you know what check the SDK is doing for Java or how it's doing it?
a
Java looks ok. The jar file was under vscode folder?
b
Correct
a
If you restart vscode, you get same error that download was unsuccessful?
b
Yes
a
That's interesting. Everything looks ok.
Would you be available for a quick screenshare call?
b
That's exactly why I posted. Everything seemed to check out.
I can do a screenshare.
a
Ok, let me set that up now. 5 mins please
👍 1
e
Did y'all resolve this?
p
🤔
a
@erictgrubaugh @Philip Denys Are you guys having the same issue?
b
Not resolved yet. Gone through a lot of troubleshooting.
e
Nope, not having the issue, just wanted to make sure a solution was posted here
b
Turns out the issue was being caused by an antivirus policy (Cylance). I reached out to our helpdesk when I experienced a totally different, seemingly unrelated problem. Turns out the policy was blocking different background actions of various applications which is why the symptoms were so hard to troubleshoot. I'm still not sure why I only experienced the problem on one of my two machines and why no one else on my team is encountering the issue. 😡 Huge thanks to @Ali Syed (NS DevTools QA) for taking the time to help troubleshoot 👏 I learned some new things about the extension, CLI, and VS Code so it wasn't a total waste.
👏 3
😓 1
l
I Had the same issue i uninstalled java 18 then i downloaded JDK 17 that resolved the issue
s
Hi guys, I'm having the same error There was an error when downloading SuiteCloud SDK dependencies from https://system.netsuite.com/download/suitecloud-sdk/23.1/cli-2023.1.0.jar Close and open the editor to try again. Could you please share how to fix it? Thanks a lot
a
@Stormi can you paste the output of java -version
s
@Ali Syed (NS DevTools QA) here it is
a
This seems wrong. You need to install java 17 LTS, and when you do, you need to write the java -version command in cmd/terminal to check output
s
C:\Users\BKS>java -version Picked up JAVA_TOOL_OPTIONS: -Djava.vendor="Sun Microsystems Inc." java version "17.0.5" 2022-10-18 LTS Java(TM) SE Runtime Environment (build 17.0.5+9-LTS-191) Java HotSpot(TM) 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode, sharing)
a
Ok
Output seems fine
👍 1
s
I followed the Netsuite instructions but it didn't work. I don't know why
a
Do you have node CLI installed?
s
Yes, I saw the file but somehow the error shows everytime I open VS Code
a
What is the version of SuiteCloud Extension you have installed? And version of VSCode?
s
SuiteCloud Extension version 1.4.2 and VSCode version 1.78.2
a
Can you send a screenshot of .suitecloud-sdk folder, to see what you have there?
s
only this one
a
@Luis Pérez Villegas (NS Devtools SE) Can you please check!