Comments (6)
You're probably running with an older version of Closure Compiler.
The FunctionType.Parameter
API was added in google/closure-compiler@041dc07 and is in the most recent release v20200614.
See https://github.com/angular/clutz#supported-versions.
Does updating your Closure Compiler version fix this?
from clutz.
Created Google internal issue http://b/159832817.
from clutz.
@lauraharker How do I update the closure dependency?
I went into build.gradle and switched the dependency reference to this:
compile 'com.google.javascript:closure-compiler-unshaded:v20200614'
Now I have these new errors:
/Users/ts76/Dev/clutz2/src/main/java/com/google/javascript/gents/pass/comments/GeneralComment.java:39: error: cannot find symbol
return new GeneralComment(comment.getCommentString(), comment.getStartPosition().getOffset());
^
symbol: method getStartPosition()
location: variable comment of type NonJSDocComment
/Users/ts76/Dev/clutz2/src/main/java/com/google/javascript/gents/pass/comments/AstCommentLinkingPass.java:162: error: cannot find symbol
nonJSDocInfo.getStartPosition().getOffset())) {
^
symbol: method getStartPosition()
location: variable nonJSDocInfo of type NonJSDocComment
/Users/ts76/Dev/clutz2/src/main/java/com/google/javascript/gents/pass/comments/AstCommentLinkingPass.java:166: error: cannot find symbol
nonJSDocInfo.getStartPosition().getOffset()));
^
symbol: method getStartPosition()
location: variable nonJSDocInfo of type NonJSDocComment
from clutz.
I tried updating to the latest SNAPSNOT build of Closure Compiler:
compile 'com.google.javascript:closure-compiler:1.0-SNAPSHOT'
and then I get just this error:
> Task :compileJava FAILED
clutz/src/main/java/com/google/javascript/clutz/DeclarationGenerator.java:1285: error: cannot find symbol
.splitToStream(namespace)
^
and then I believe #985 (comment) has a workaround for that.
Thanks for commenting on #1006 (comment) BTW.
from clutz.
@lauraharker
I think I did get it to compile using the fix you mentioned but it does not pass the tests so it's useless right?
from clutz.
Is this still an issue?
from clutz.
Related Issues (20)
- Filter by Custom Tags Question HOT 4
- Do you use Clutz? How? HOT 2
- Question: externsMap on goog standard library
- test class_extends_array.js FAILED after 20190115 HOT 2
- Fix externs: DOMRect
- [gents] arrow functions with a single argument are not emitted properly syntactically HOT 1
- clutz should emit 'unknown' when translating '*'
- enum aliases are incorrectly emitted in partial mode HOT 4
- inner classes not emitted when outer class is emitted with named export
- declare legacy namespace + export obj + enum create wrong output HOT 1
- Static members on function not emitted
- gents does not handle goog.requireType HOT 2
- gents should convert @this
- Event vs KeyboardEvent
- Closure's `goog.isDefAndNotNull` seem to affect type inference and make clutz emit extra 'any's HOT 3
- JsDoc on static enums is not preserved
- clutz should not emit 'abstract' modifier on interfaces
- sonatype.org is erring with 'too many requests' on CI HOT 8
- Build are failing HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clutz.