It's very hard to recommend Eclipse. Only very ol...
# sdf
s
It's very hard to recommend Eclipse. Only very old versions of it are compatible with the SuiteCloud IDE plug-in, and the JavaScript support is incredibly poor in those versions. It doesn't understand anything newer than ES3. WebStorm is great if you can part with the money (or better yet convince your employer to purchase it). I have had great experiences with it. Personally, I find myself using VS Code more and more often these days. Now that the suitecloud cli is available, you can really use just about any IDE with decent JavaScript support, and have a very full featured setup for developing and deploying changes. And you don't have to worry about plug-in upgrade breaking compatibility with your IDE. You could probably use PHPStorm for your development alongside the suitecloud-cli, if that is what you are comfortable with.
💯 1
✔️ 6
j
Thank you, I appreciate you taking the time to share your thoughts.
s
@scottvonduhn I use vs code exclusively too and I love it for the most part. However, I haven’t been able to get code completion to work with custom modules. Have you?
c
Awesome contribution @scottvonduhn.
✔️ 1
@suitedev Is in our discussion, is a high priority element but we haven´t start it yet.
👍🏼 1
s
Thanks @Carlos Olivares (NS DevTools PM) I was just referring to my own modules as defined via AMD, and referencing my own JS file in the same folder, for example.. It would be great to crack open the NS Modules as well, but I manage OK with repetition and the API Docs.. 😉
s
I wonder if it's necessary to use JSDoc comments to get code completion working in local modules?
d
from my understanding requirejs AMD Module support is unsupported in vscode https://github.com/microsoft/TypeScript/issues/6942
👍🏼 1
as for NetSuite API intellisense with vscode, I would recommend https://www.npmjs.com/package/@hitc/netsuite-types 🙂 (this does not need to be used in conjunction with TypeScript, vscode is able to leverage these files alongside JavaScript once jsconfig.json is setup properly)
😍 1
a
@suitedev Last WebStorm with last SDF Plugin is working great for me, I did a clean install and follow the NetSuite Help recommendations including disabling code hints and completion for JS and the NetSuite API code completion is working very well.
👍🏼 2
p
I’d recommend just switching over to Typescript, Much fewer “gotchas” when you upload a file just to notice you put a parameter wrong (as the compiler will tell you before you reach upload) and it provides intellisense
I’m also trial running webpack together with Typescript, really useful as Netsuite sometimes tends to bug when you are trying to upload code split into multiple files
d
@scottvonduhn do you use any VScode extensions ?
s
Yes. ESLint, FreeMArker, NetSuiteUpload, and Prettier
d
i found out that NetsuiteUpload is unpublished from vscode marketplace
unfortunately
a
@Petter Why do you think switching over to TypeScript is a good idea when NetSuite does not officially support TypeScript and any performance gained by pre-compiled code can potentially be lost during transcompilation to Java by the Rhino engine? NetSuite API has its own problems and nuances, adding an extra layer/library does not worth it. There is also another inconvenience, your entire Development Team needs to know TypeScript and any future hire needs to know NetSuite, NetSuite API and TypeScript.
s
@dennysutanto Good news! Yes, the original version of the NetSuite Upload (at https://marketplace.visualstudio.com/items?itemName=tomastvrdy.netsuite-upload) was unpublished, however the project was transferred to a new owner and re-published with updates and a new version at: https://marketplace.visualstudio.com/items?itemName=nsupload-org.netsuite-upload
👍 1
p
@alien4u Well firstly I wouldn’t use Typescript to gain performance in the system but to make the developers life easier and to improve code quality. So many easy to make errors are caught before you upload your code and the intellisense is a great benefit. Secondly the nuances you mentioned are sadly there no matter if you use Typescript or Javascript (after all it’s not really precompiled, it’s transpiled to JS). The main benefit is for the developer rather than “the system”. You write your typescript compile it and upload the Javascript to Netsuite free from any libraries (it doesn’t wrap anything around the NSAPI). When it comes to needing developers to know Typescript, I think any half decent dev can make the transition in a day or two, it’s not so different after all. So to sum up, I’d definitely say it’s worth it, I’d recommend you’d give it a try if you haven’t you’ll understand what I mean. I was skeptical at first but was convinced by one of our devs who wanted us to try it out :)
👍 2