Maheshjayachandran / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

depstree.MultipleProvideError: Namespace "goog.ui.ButtonSide" provided more than once in sources: #460

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. Clone the latest head of the repository.
2. Use it in a project with closurebuilder.py

What is the expected output? What do you see instead?
Expected output is a compiled JS file.
I get this error instead:

depstree.MultipleProvideError: Namespace "goog.ui.ButtonSide" provided more 
than once in sources:
Source js/lib/closure-library/closure/goog/ui/buttonside.js
Source js/lib/closure-library/closure/goog/ui/buttonside.js

What version of the product are you using? On what operating system?
commit 0c25aa3a79216914dfc83794ea83cbc60908e598
Author: nicksantos@google.com 
<nicksantos@google.com@0b95b8e8-c90f-11de-9d4f-f947ee5921c8>
Date:   Fri Apr 27 17:21:56 2012 +0000

    Swap in goog.async.AnimationDelay for goog.fx.anim
    the tests that this broke last time were fixed
    in separate cls

    R=steineldar
    DELTA=230  (8 added, 173 deleted, 49 changed)

    Revision created by MOE tool push_codebase.
    MOE_MIGRATION=4636

    git-svn-id: http://closure-library.googlecode.com/svn/trunk@1788 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Please provide any additional information below.

Original issue reported on code.google.com by yesudeep@google.com on 2 May 2012 at 7:53

GoogleCodeExporter commented 9 years ago
Traceback:

python js/lib/closure-library/closure/bin/build/closurebuilder.py \
        --root=js/lib/closure-library/ \
        --root=js/lib/plastronjs/ \
        --root=js/ \
        --namespace="todomvc" \
        --output_mode=compiled \
        --compiler_jar=compiler.jar \
        > js/app.js
js/lib/closure-library/closure/bin/build/closurebuilder.py: Scanning paths...
js/lib/closure-library/closure/bin/build/closurebuilder.py: 1650 sources 
scanned.
js/lib/closure-library/closure/bin/build/closurebuilder.py: Building dependency 
tree..
Traceback (most recent call last):
  File "js/lib/closure-library/closure/bin/build/closurebuilder.py", line 256, in <module>
    main()
  File "js/lib/closure-library/closure/bin/build/closurebuilder.py", line 203, in main
    tree = depstree.DepsTree(sources)
  File "/usr/local/google/users/yesudeep/src/code/todomvc/js/lib/closure-library/closure/bin/build/depstree.py", line 48, in __init__
    provide, [self._provides_map[provide], source])
depstree.MultipleProvideError: Namespace "goog.fs.DirectoryEntry" provided more 
than once in sources:
Source js/lib/closure-library/closure/goog/fs/entry.js
Source js/lib/closure-library/closure/goog/fs/entry.js

Apparently, it is randomly picking any file and dumping
a "depstree.MultpleProvideError".

Original comment by yesudeep@google.com on 2 May 2012 at 8:00

GoogleCodeExporter commented 9 years ago

Original comment by nn...@google.com on 11 May 2012 at 8:30