Giter Club home page Giter Club logo

Comments (6)

lauraharker avatar lauraharker commented on July 2, 2024

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.

lauraharker avatar lauraharker commented on July 2, 2024

Created Google internal issue http://b/159832817.

from clutz.

T-Skinner avatar T-Skinner commented on July 2, 2024

@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.

lauraharker avatar lauraharker commented on July 2, 2024

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.

T-Skinner avatar T-Skinner commented on July 2, 2024

@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.

nreid260 avatar nreid260 commented on July 2, 2024

Is this still an issue?

from clutz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.