diegoles / closure-library

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

Patch for /trunk/closure/bin/calcdeps.py #498

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I get the error when trying to compile using the ns: prefix.

For example:

# closure/bin/calcdeps.py -o compiled -p closure/ -p src/javascript/some/ -i 
ns:some.Requirement --output_file=build/compiled.js

calcdeps.py: Scanning files...
calcdeps.py: Finding Closure dependencies...
Traceback (most recent call last):
  File "../closure-library/closure/bin/calcdeps.py", line 589, in <module>
    main()
  File "../closure-library/closure/bin/calcdeps.py", line 559, in main
    deps = CalculateDependencies(search_paths, inputs)
  File "../closure-library/closure/bin/calcdeps.py", line 225, in CalculateDependencies
    deps = BuildDependenciesFromFiles(paths+inputs)
  File "../closure-library/closure/bin/calcdeps.py", line 137, in BuildDependenciesFromFiles
    file_handle = open(filename, 'r')
IOError: [Errno 2] No such file or directory: 'ns:some.Requirement'

Removing inputs from the BuildDependenciesFromFiles call makes things work.

Original issue reported on code.google.com by nate.sku...@gmail.com on 17 Sep 2012 at 5:12

Attachments: