This topic contains 2 replies, has 0 voices, and was last updated by kcng 8 years, 7 months ago.
-
AuthorPosts
-
March 21, 2016 at 7:36 am #4618
egrubaughIn the SuiteCloud Eclipse IDE for NetSuite, what is the correct usage of the Validator Ignore List setting under Preferences >NetSuite > Validation?
Is it a single file that behaves like, say, a .gitignore? Or is it an explicit list of files to ignore?
I suspect this setting is why Eclipse is always building libraries and other files I’ve explicitly told it not to in my NetSuite projects.
Can anyone provide some clarity on the usage of this field?
I have also asked this question on StackOverflow here: http://stackoverflow.com/questions/3…or-ignore-list
Attempt 1
I tried setting this preference to a single file with the following contents:
Code:
**/*.min.js
**/*.lib.js
**/docs/**
**/Third Party/**
**/node_modules/**
**/bower_components/**
**/*jquery*
**/*moment*
**/*lodash*
But that does not work as expected. Files that should be caught by these regexes are still validated. One of them in particular (docstrap.lib.js) crashes the entire IDE every single time when the SuiteScript validator encounters it.Attempt 2
I tried to put a similar string of regexes directly into the field itself:
Code:
**/*.min.js,**/*.lib.js,**/docs/**,…
but this just yields an error directly in the dialog itself: Value must be an existing file.So at least I have determined it points to a single file, but I have no idea what the correct contents of that file should be.
Attempt 3
Created a new SuiteScript project with only blanket.min.js in the project root. Added an ignore file with the following contents:
Code:
/blanket.min.js
./blanket.min.js
*blanket.min.js
blanket.min.js
“blanket.min.js”
*blanket*
**/blanket*
*/blanket*
.blanket.min.js
**blanket*
*blanket*
blanket.min.js
blanket*
.blanket*
C:DevelopmentProjectsvalidator-testblanket.min.js
C:/Development/Projects/validator-test/blanket.min.js
blanket.min.js still gets validated. Completely lost as to how this ignore file should be formatted.
This is a cached copy. Click here to see the original post. -
March 31, 2016 at 10:20 am #4619
seamanjeffI’ve come to the conclusion that the Eclipse plugin is, in reality, completely unsupported. Come on NetSuite, support it or abort it, I’ll be at SuiteWorld – whose buttonhole should I grab?
-
April 4, 2016 at 8:42 pm #4620
kcngThe ignore list is used by the SuiteCloud IDE (IDE) to avoid having errors in the IDE for non-standard script ids in SuiteScript 1.0 APIs.
As an example…
Code:
nlapiLogRecord(‘customrecord_foo’);
Since customrecord_foo is a non-standard record, it will be marked as an error by the IDE.To tell the IDE to ignore customrecord_foo, the ignore list can be used.
It’s a text file, with one script id per line.
Code:
customrecord_foo
customrecord_bar
The specified non-standard script ids in the ignore list file will not be flagged as an error by the IDE. -
AuthorPosts
You must be logged in to reply to this topic.