I use the latest version of the WebStorm SDF plugi...
# sdf
k
I use the latest version of the WebStorm SDF plugin, and sometimes the menu options to compare a suitescript file or upload a suitescript file does not exist in the context menu when selecting a suitescript file. I have seen this problem when cloning an SDF project from a git repo. Anyone else encountered this issue and know why this occurs? I have tried importing the files from the account, and the menu items still do not appear. I have reviewed all of the SDF configuration files, and I can not find and differences between an SDF project that does work and one that does not.
j
Most often when I find that the "NetSuite" context menu is grayed out it's because my folder structure is incorrect. Use the IDE to create a new Account Customization project, compare the folder/file structure to your problematic project, and make sure you have things living in the right places.
k
Thanks Jordan. I compared the directory structure with an SDF project that showed the additional menu items in the context menu. I created the missing folders. Still no luck. There must be a a configuration setting somewhere in the .idea folder or files underneath that is different. I think I diff’d them once, and didn’t find anything.
j
suitecloud.config.js file at the root of the project pointing to the src folder? Then root/src/FileCabinet and root/src/Objects, etc?
k
The suitecloud.config.js file is the same for both accounts. As an experiment, I cloned the git repo into another folder, created all of the empty folders that were not created from the cloned project then created a WebStorm project from existing sources. This project has the missing context menu items. I’ll run another test where I clone the git repo and do not create the empty folders before creating the WebStorm project from the existing sources to see if this is the issue. Thanks for the help.
a
The context menu appears when The manifest and deploy xmls are under src directory as suitecloud.config.js tells the plugin to look for it there. And you you should open the root of project in webstorm. Meaning that src directory doesnt have any parent directory. You can DM me the screenshot of the project and I can double check.
@Keith Fetterman ^^
k
Hi @Ali Syed (NS DevTools QA), thanks for the help. The context menu is appearing. The issue is the “Compare with Account File” and “Upload File to Account” does not appear in the context menu when selecting a script file on some of of WebStorm SDF projects. I have attached two screen shots, one with the additional context menu items and one without. In the example I am showing where the context menu items are missing, the SDF project is configured as a directory in the WebStorm Settings Directories tab of a WebStorm project that has other directories. I have seen this same problem where I did the following: 1. Clone the git repo, which was created from a WebStorm SDF project. The “.idea” folder is not included in the repo. 2. Create a new WebStorm project from existing sources 3. The resulting WebStorm project has the NetSuite context menu in all cases, but sometimes the menu is missing the menu items and sometimes it’s not when selecting the menu from a suitescript file
I ran a couple of tests. Test A 1. Cloned repo that contained a WebStorm SDF project (.idea folder not cloned) 2. Create WebStorm from existing sources 3. Context menu items missing Test B 1. Cloned repo that contained a WebStorm SDF project (.idea folder not cloned) 2. Created missing empty folders that a new WebStorm SDF project would create 3. Create WebStorm from existing sources 4. Context menu items exist If I add the missing folders in Test A after the WebStorm project is created, the context menu items are still missing.
I think I figured out why I have been experiencing the missing context menu items for suitescript files. For some of my WebStorm projects, I have been creating an empty WebStorm project and adding directory to the project via the WebStorm Directory tab settings. I did this so I could combine several git repo projects under a single WebStorm project. If a directory contained a git repo project that was a NetSuite SDF project, the WebStorm SDF plugin operated normally, except for the missing context menu items. I can import files and objects from NetSuite and deploy projects. I just can’t compare and upload suitescript files.
@Ali Syed (NS DevTools QA), are you one of the WebStorm SDF plugin developers? If so, I want to share an observation when an SDF project is cloned from a git repo then configured as a directory (Add Content Root) in an existing WebStorm project instead of being it’s own WebStorm project. The plugin performs as expected in every aspect, except what’s missing in the context menu for suitescript files that I mentioned above. I have a Webstorm project that has three separate cloned git repos configured as content roots (directories). Two of them are SuiteCommerce repos and the third is a SuiteScript repo that is configured as an SDF project. When display the context menu for an object, I see all of the menu items in the context menu, including importing, updating and comparing with the account object. The only context menu items that I see missing are the compare with account file and upload a file to account menu items for suitescript files.