I have encountered an issue with SuiteCloud IDE Pl...
# suitescript
k
I have encountered an issue with SuiteCloud IDE Plug-in for WebStorm. On some of my projects, the ability to compare a script file with the Account file in NetSuite and the ability to upload a script file disappears from the NetSuite context menu when I right click on a script file in WebStorm. Anyone know why this issue is occurring and how to correct it? I have the latest version of WebStorm and SuiteCloud IDE Plug-in for WebStorm installed. I wonder if it’s related to cloning a project from a git repo. I have looked in the JSON configuration files and file attribute files, and I haven’t been able to find a cause.
e
This happens for me when I select Project Files instead of Project.
k
How do you fix it?
e
Select Project instead, it's a drop down menu
k
Unfortunately, I had “Project” already selected. I tried switching to “Project Files” then back to “Project” and it didn’t fix it.
e
Double check your paths in the workspace.xml file in the
.idea
directory in the project
k
Thanks for the help. Just did, and I didn’t see any issues. I also compared .xml and .iml files between two projects where one works and the other doesn’t. I configured the project that wasn’t working by setting the default default account, importing one of the files from the file cabinet and validating the project. It didn’t fix the issue.
s
alternately, try doing the same with the
cli
suitecloud
I mean
v
Hey @Keith Fetterman that's because you don't have jdk installed on your local.
You should install required version of jdk on your pc or laptop.
k
@Vladimir Jovanovic, I have java version “17.0.1” installed
The ability to upload and compare works for some projects but not others.
v
It should work then.
k
I know. It’s weird. For one project I had it working. When I committed the project to a git repo then cloned it to another folder, it didn’t work in the cloned folder. It probably has something to do with the .idea configuration, which we don’t commit to the repo. It may also have something to do with missing empty folders that are created when a new WebStorm NetSuite project is created, which don’t get committed to a repo.
v
Which OS are you using on your local machine?
k
MacOS
v
Hmm... actually I don't use MacOS but it should work.
One sec. Let me check the jdk version.
Well, you need to install jdk 11
k
I think what I need to do is create a new NetSuite project in WebStorm then import/clone the files from the repo into it. Currently I create a new WebStorm project by opening the existing cloned folder, which probably not fully configuring the NetSuite project.
v
It doesn't matter. I create project using both ways.
👍 1
But it always work.
k
I think the Java version on NetSuite Help is an old version. I currently have JDK 17 on my machine, which should work. Some of my projects are working correctly, so I don’t think the issue is related to the JDK version. If it was a JDK version issue, none of them would work.
v
So some of your projects is working for deployment?
k
yes. I can deploy and validate all of my projects.
But only some of them provide the file upload and compare feature
v
Hmm... not sure why then.
And Suitecloud is properly configured in NS?
k
If create a new NetSuite Account Customization project in WebStorm, it works.
yes
v
Actually yes, hmm...
k
I had one NetSuite account working fine. Then it stopped working. The only difference is I cloned the repo and worked from a different folder.
Do you commit the .idea folder to the repo?
v
No
we shouldn't commit .idea folder.
k
I don’t either
agreed
v
ok, let me think about it a little bit more and discuss tomorrow.
k
I really appreciate the help. I find the compare and file upload very useful instead of deploying an entire project.
v
ok
108 Views