I recently moved to a new computer and had to rein...
# suitescript
c
I recently moved to a new computer and had to reinstall Eclipse. I know the NetSuite official stance still seems to be that you need to use the Mars release, which is 3 years old. However I’ve tried to do this with the newer 2019-03 release as well. I can get User Credential access to work for moving files but when I switch to Token Based (my preferred) it throws an error to issue new tokens. My tokens are valid as they work successfully when used in some other scripts. Should be no restrictions (using role 3/Administrator). So I’m stumped at the moment. I’ve done some googling but not much luck there. Has anyone encountered a similar issue and resolved it? Would love to continue using eclipse.
a
can you please share the error that is thrown while issuing token?
c
Ali, here’s what shows when I try to browse the file cabinet when updating the project settings.
When looking in the NS login audit log it shows no role for that failed login attempt. But I think that’s normal on the NS side.
Also this if helpful.
b
the value for the role is a negative number as per my knowledge . it should be -3 @cbohne
Oops just checked its 3 . Sorry
c
In Eclipse you don’t get to specify the internalid of the role. You only get to pick from the list of roles. I have tried a different non-admin role with TBA and it has the same problem. However if I use the same role which has access to the file cabinet with username/password auth it works. So it seems something specific to using token based auth.
I had this working before but I wasn’t sure if something changed with 2019.1 where they were doing some special blocking on Admin role stuff.
a
i would suggest to use the recommended version of Eclipse, if the same workflow was working for you before, its probably the version compatability thing.
c
I’ll try and see what happens. I think I tried Mars and it didn’t care to run at all. Probably has something to do with newer java too. Seems sometimes tools are slower to get upgraded for support (ie Java 9 or 12 had some significant changes)
s
I would recommend NS adopt IDEA as their IDE of choice, like Google Android did.
c
I love the JetBrains suite of tools. Use that for much of my dev work.
s
in that case, totally use WebStorm as NS has a plugin for it - I don't think there's anything that Eclipse gives you for NS development that Webstorm doesn't and much that webstorm does better.
if i'm not mistaken (admittedly I haven't looked seriously at eclipse for a year or so)
c
I can look into that again. The instructions I saw looked a lot like it was for developing other projects and not SuiteScripts.
But all that was covered in the SS class I took early last year was the Eclipse approach.
s
I've been using Webstorm to develop single SuiteScripts for several years now
it's bliss compared to Eclipse imho
c
omg, I’m definitely going to dig into that more then
s
👍 While I tend to use WebStorm I'd also recommend VSCode over Eclipse for SuiteScript development.