Laura Harker
Laura Harker
You're probably running with an older version of Closure Compiler. The `FunctionType.Parameter` API was added in https://github.com/google/closure-compiler/commit/041dc07d025b64fcf0239359bc732dd78c3d2e75 and is in the most recent release v20200614. See https://github.com/angular/clutz#supported-versions. Does updating your...
Created Google internal issue http://b/159832817.
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...
I ran into this same bug a few weeks ago. It's caused by using a forward referenced type in an `@type` on a function. The compiler ignores the `@type {!Foo}`...
(going through old issues assigned to me) Unassigning myself, since I don't currently have bandwidth to work on Closure type system improvements
Huh, it looks like this was intended behavior 10 years ago. ``` java // Reject anything that might modify relevant state. We assume that // nobody relies on variables being...
The command line warning only shows up with `--warning_level VERBOSE` or `jscomp_warning=checkVars`, but is off by default. https://github.com/google/closure-compiler/blob/8cb0d7e9dde943cd2f46a9cb916c511fc9616901/src/com/google/javascript/jscomp/WarningLevel.java#L82 And apparently the webservice backend (which isn't open sourced) explicitly disables this...
(going through old issues assigned to me) I think this hasn't changed since 2018: the command line runner still does not report "checkSymbols" warnings/errors by default, and the webservice always...
The webservice will now show undeclared symbol errors in ADVANCED mode by default: https://closure-compiler.appspot.com/home#code%3D%252F%252F%2520%253D%253DClosureCompiler%253D%253D%250A%252F%252F%2520%2540compilation_level%2520ADVANCED_OPTIMIZATIONS%250A%252F%252F%2520%2540output_file_name%2520default.js%250A%252F%252F%2520%253D%253D%252FClosureCompiler%253D%253D%250A%250A%252F%252F%2520ADD%2520YOUR%2520CODE%2520HERE%250Afunction%2520hello(name)%2520%257B%250A%2520%2520alert('Hello%252C%2520'%2520%252B%2520name)%253B%250A%257D%250Ahello('New%2520user')%253B%250A%250Aalert(missingName)%253B%250A Unassigning since I'm not planning to work on this further.
(going through old issues assigned to me) Unassigning myself, since I don't currently have bandwidth to work on Closure type system improvements