ampproject / ampproject/rollup-plugin-closure-compiler
Google closure compiler exit code 3221225781
- Dominant language
- TypeScript
- Stars
- 293
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
## What's the issue?
Failed compilation on my windows laptop
## How do we reproduce the issue?
1. git clone --recursive https://github.com/maktarsis/monoreact.git
2. npx yarn install
3. cd example-app/packages/example
4. npm run build
We'll likely need to know:
1. Your Rollup configuration.
https://github.com/maktarsis/monoreact/blob/master/cli/src/bin/execution/configs/build.config.ts
2. Error logs from your console when invoking Rollup with this plugin present.
```
(node:8272) UnhandledPromiseRejectionWarning: Error: Google Closure Compiler exit 3221225781: C:\Users\User\projects\monoreact\node_modules\google-closure
-compiler-windows\compiler.exe --language_out=NO_TRANSPILE --assume_function_wrapper=true --warning_level=QUIET --module_resolution=NODE --externs=C:\Users
\User\AppData\Local\Temp\bbd497ba00bfe80e732c9c0fdaff6eeb983c673d --externs=C:\Users\User\AppData\Local\Temp\8c3566123fa544be89f47cd1c76300842e98aa6f -
-js=C:\Users\User\AppData\Local\Temp\6cacadce9eff1166f9a4ca7149881f04cecf9ead --create_source_map=C:\Users\User\AppData\Local\Temp\0504c11f-3004-45c8-8
35e-b44622180c98
```
Stack trace:
```
at C:\Users\name\projects\monoreact\node_modules\@ampproject\rollup-plugin-closure-compiler\dist\index.js:1572:24
at ChildProcess. (C:\Users\name\projects\monoreact\node_modules\google-closure-compiler\lib\node\closure-compiler.js:103:9)
at ChildProcess.emit (events.js:315:20)
```
4. Error logs when this plugin is removed from your Rollup configuration.
No errors. Just a message `Compiled in ....s`
## Additional context
1. Node 13.13.0
2. Windows
Although, it works great, as usual, on my mac laptop.
Contributor guide
Research direction
Start with cli/src/bin/execution/configs/build.config.ts and reproduce the Windows failure using the listed clone, install, and npm run build steps. Compare the Rollup output with the closure compiler plugin enabled and removed, using the provided exit code and stack trace as the failure criteria. Done means the example app builds successfully on Windows with the plugin enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js, typescript
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100