Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INTERNAL COMPILER ERROR with jscomp_error=* #3453

Closed
l1bbcsg opened this issue Aug 15, 2019 · 1 comment
Closed

INTERNAL COMPILER ERROR with jscomp_error=* #3453

l1bbcsg opened this issue Aug 15, 2019 · 1 comment
Assignees

Comments

@l1bbcsg
Copy link

l1bbcsg commented Aug 15, 2019

As mentioned in #3451 I encountered this error when trying to compile a large project with --jscomp_error=*

The project is private and I cannot share its codebase and not sure how to extract a minimal repro code, compiling just the affected file does not raise any errors.
Apologises this doesn't make a proper report, if you can direct me I'll be happy to expand on it.

Compiler version: v20190729

Full list of options:

{ 
  compilation_level: 'ADVANCED_OPTIMIZATIONS',
  language_in: 'ECMASCRIPT_2018',
  language_out: 'ES5',
  warning_level: 'VERBOSE',
  charset: 'UTF8',
  module_resolution: 'BROWSER_WITH_TRANSFORMED_PREFIXES',
  browser_resolver_prefix_replacements: [ 
    'foo/=/absolute/path/to/foo/',
    /* about a dozen more */
  ],
  dependency_mode: 'STRICT',
  entry_point: 'foo.js',
  summary_detail_level: '3',
  externs: [],
  js: [ /* About 100 files */ ],
  checks_only: true,
  jscomp_error: '*'
}

Stack trace:

java.lang.RuntimeException: INTERNAL COMPILER ERROR.
Please report this problem.

null
Node(EXPORT): file.js:4:0
export default {
Parent(MODULE_BODY): file.js:4:0
export default {

at com.google.common.base.Preconditions.checkState(Preconditions.java:491)
at com.google.javascript.jscomp.lint.CheckNoMutatedEs6Exports.visitExport(CheckNoMutatedEs6Exports.java:117)
at com.google.javascript.jscomp.lint.CheckNoMutatedEs6Exports.shouldTraverse(CheckNoMutatedEs6Exports.java:85)
at com.google.javascript.jscomp.CombinedCompilerPass$CallbackWrapper.shouldTraverseIfActive(CombinedCompilerPass.java:130)
at com.google.javascript.jscomp.CombinedCompilerPass.shouldTraverse(CombinedCompilerPass.java:169)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:851)
at com.google.javascript.jscomp.NodeTraversal.traverseChildren(NodeTraversal.java:979)
at com.google.javascript.jscomp.NodeTraversal.handleModule(NodeTraversal.java:829)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:845)
at com.google.javascript.jscomp.NodeTraversal.traverseChildren(NodeTraversal.java:979)
at com.google.javascript.jscomp.NodeTraversal.handleScript(NodeTraversal.java:804)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:839)
at com.google.javascript.jscomp.NodeTraversal.traverseChildren(NodeTraversal.java:979)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:863)
at com.google.javascript.jscomp.NodeTraversal.traverse(NodeTraversal.java:371)
at com.google.javascript.jscomp.NodeTraversal.traverse(NodeTraversal.java:381)
at com.google.javascript.jscomp.CombinedCompilerPass.process(CombinedCompilerPass.java:154)
at com.google.javascript.jscomp.PhaseOptimizer$NamedPass.process(PhaseOptimizer.java:326)
at com.google.javascript.jscomp.PhaseOptimizer.process(PhaseOptimizer.java:235)
at com.google.javascript.jscomp.Compiler.check(Compiler.java:1022)
at com.google.javascript.jscomp.Compiler.performChecksAndTranspilation(Compiler.java:822)
at com.google.javascript.jscomp.Compiler.lambda$stage1Passes$0(Compiler.java:752)
at com.google.javascript.jscomp.CompilerExecutor$2.call(CompilerExecutor.java:102)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException
... 27 more

file.js only exports a JSON object, not terribly large or deep, line 4 is the export declaration:

/**
 * @dict
 */
export default {
    // ...
};

Without jscomp_error the project compiles fine with no warnings.

@lauraharker
Copy link
Contributor

@lauraharker lauraharker self-assigned this Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants