bolinfest / plovr

plovr: a Closure build tool
78 stars 48 forks source link

closurePrimitive not recognized as JSDoc tag #174

Closed xvilo closed 4 years ago

xvilo commented 4 years ago

When running our development environment we're getting the following warnings:

/closure/goog/asserts/asserts.js:181: WARNING - Parse error. illegal use of unknown JSDoc tag "closurePrimitive"; ignoring it
* @closurePrimitive {asserts.truthy}
^

It seems this comes from Google Closure Library code, and not sure where to look for this.

Screenshot 2019-10-07 at 15 21 26

xvilo commented 4 years ago

also having

"/closure/goog/date/date.js:17: WARNING - Parse error. unknown @suppress parameter: checkPrototypalTypes
* @suppress {checkPrototypalTypes}
^
nicks commented 4 years ago

Hmmm...I had trouble reproducing this. I added goog.asserts and goog.date.Date to one of the examples and ran:

java -jar buck-out/gen/plovr.jar build testdata/modules/plovr-config.js

but didn't see any warnings. Is there a config option I'm missing?

xvilo commented 4 years ago

Seems to have solved by itself. Not sure what the issue was