Skip to content
This repository was archived by the owner on Jan 8, 2019. It is now read-only.
This repository was archived by the owner on Jan 8, 2019. It is now read-only.

nccompile.js fails on trivial case #17

@jbeard4

Description

@jbeard4

I've installed nclosure from git:

jbeard@jbeard-VirtualBox:~/workspace/projects$ git clone git://github.com/gatapia/nclosure.git
Cloning into nclosure...
remote: Counting objects: 4076, done.
remote: Compressing objects: 100% (2111/2111), done.
remote: Total 4076 (delta 1916), reused 3966 (delta 1902)
Receiving objects: 100% (4076/4076), 15.33 MiB | 219 KiB/s, done.
Resolving deltas: 100% (1916/1916), done.
jbeard@jbeard-VirtualBox:~/workspace/projects$ cd nclosure/
jbeard@jbeard-VirtualBox:~/workspace/projects/nclosure$ npm link 
npm http GET https://registry.npmjs.org/cli
npm http 304 https://registry.npmjs.org/cli
npm http GET https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/sigmund
cli@0.4.4-2 node_modules/cli
└── glob@3.1.21 (inherits@1.0.0, graceful-fs@1.2.0, minimatch@0.2.11)
/home/jbeard/local/bin/closure.json -> /home/jbeard/local/lib/node_modules/nclosure/bin/closure.json
/home/jbeard/local/bin/deps.js -> /home/jbeard/local/lib/node_modules/nclosure/bin/deps.js
/home/jbeard/local/bin/nccompile.js -> /home/jbeard/local/lib/node_modules/nclosure/bin/nccompile.js
/home/jbeard/local/bin/ncdoc.js -> /home/jbeard/local/lib/node_modules/nclosure/bin/ncdoc.js
/home/jbeard/local/bin/ncstyle.js -> /home/jbeard/local/lib/node_modules/nclosure/bin/ncstyle.js
/home/jbeard/local/bin/nctest.js -> /home/jbeard/local/lib/node_modules/nclosure/bin/nctest.js
/home/jbeard/local/bin/nodetestinstance.js -> /home/jbeard/local/lib/node_modules/nclosure/bin/nodetestinstance.js
/home/jbeard/local/bin/nodetestsrunner.js -> /home/jbeard/local/lib/node_modules/nclosure/bin/nodetestsrunner.js
/home/jbeard/local/lib/node_modules/nclosure -> /home/jbeard/workspace/projects/nclosure

Here's the compilation trace:

jbeard@jbeard-VirtualBox:~/tmp$ mkdir test-nclosure
jbeard@jbeard-VirtualBox:~/tmp$ cd test-nclosure/
jbeard@jbeard-VirtualBox:~/tmp/test-nclosure$ vim test.js

jbeard@jbeard-VirtualBox:~/tmp/test-nclosure$ nccompile.js -c test.js
path.existsSync is now called `fs.existsSync`.
The -c [compile] flag is not fully operational yet.  Please use cauting when running .min.js files as they are not yet fully compatible with Node's require(...) syntaxt.

Error in command:
/home/jbeard/workspace/projects/nclosure/third_party/closure-library/closure/bin/build/closurebuilder.py
  --root=/home/jbeard/tmp/test-nclosure
  --root=/home/jbeard/workspace/projects/nclosure/lib
  --root=/home/jbeard/workspace/projects/nclosure/third_party/closure-library
  --input=test.tmp.js
  --output_mode=compiled
  --compiler_jar=/home/jbeard/workspace/projects/nclosure/third_party/ignoregoogcompiler.jar
  --compiler_flags=--js=/home/jbeard/workspace/projects/nclosure/third_party/closure-library/closure/goog/deps.js
  --compiler_flags=--externs=/home/jbeard/workspace/projects/nclosure/lib/externs.js
  --compiler_flags=--compilation_level=ADVANCED_OPTIMIZATIONS
  --compiler_flags=--output_wrapper="(function() {this.window=this;%output%})();"
  --compiler_flags=--debug=true
  --compiler_flags=--process_closure_primitives=true
  --compiler_flags=--warning_level=VERBOSE
  --compiler_flags=--jscomp_warning=accessControls
  --compiler_flags=--jscomp_warning=checkRegExp
  --compiler_flags=--jscomp_warning=checkTypes
  --compiler_flags=--jscomp_warning=checkVars
  --compiler_flags=--jscomp_warning=deprecated
  --compiler_flags=--jscomp_warning=fileoverviewTags
  --compiler_flags=--jscomp_warning=invalidCasts
  --compiler_flags=--jscomp_warning=missingProperties
  --compiler_flags=--jscomp_warning=nonStandardJsDocs
  --compiler_flags=--jscomp_warning=strictModuleDepCheck
  --compiler_flags=--jscomp_warning=undefinedVars
  --compiler_flags=--jscomp_warning=unknownDefines
  --compiler_flags=--summary_detail_level=3
Error: Command failed: /home/jbeard/workspace/projects/nclosure/third_party/closure-library/closure/bin/build/closurebuilder.py: Scanning paths...
/home/jbeard/workspace/projects/nclosure/third_party/closure-library/closure/bin/build/closurebuilder.py: 778 sources scanned.
/home/jbeard/workspace/projects/nclosure/third_party/closure-library/closure/bin/build/closurebuilder.py: Building dependency tree..
/home/jbeard/workspace/projects/nclosure/third_party/closure-library/closure/bin/build/closurebuilder.py: No namespaces found. At least one namespace must be specified with the --namespace or --input flags.

    at ChildProcess.exithandler (child_process.js:540:15)
    at ChildProcess.EventEmitter.emit (events.js:96:17)
    at maybeClose (child_process.js:638:16)
    at Process._handle.onexit (child_process.js:680:5)
/home/jbeard/workspace/projects/nclosure/third_party/closure-library/closure/bin/build/closurebuilder.py: Scanning paths...
/home/jbeard/workspace/projects/nclosure/third_party/closure-library/closure/bin/build/closurebuilder.py: 778 sources scanned.
/home/jbeard/workspace/projects/nclosure/third_party/closure-library/closure/bin/build/closurebuilder.py: Building dependency tree..
/home/jbeard/workspace/projects/nclosure/third_party/closure-library/closure/bin/build/closurebuilder.py: No namespaces found. At least one namespace must be specified with the --namespace or --input flags.

Here is the contents of test.js:

var x = 1 + 1;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions