Fix documentation for "Error: Closure not found"
See original GitHub issueAfter installing the way the wiki explained, and opening tests/horizontal_playground.html
, I got an alert saying:
Error: Closure not found. Read this:
developers.google.com/blockly/hacking/closure
It looks like you need to have closure-library installed in the lower directory.
calcdeps = import_path(os.path.join(
os.path.pardir, "closure-library", "closure", "bin", "calcdeps.py"))
That, honestly, feels like bad design (i.e. I keep my GitHub projects in one directory and other random clones in another, so I don’t really want closure-library, which I don’t contribute to, in my I-contribute directory).
After getting closure-library installed at scratch-blocks/..
, running build.py
again, and opening the example/test file again, it worked.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Closure Compiler Service API Reference | Google Developers
Server error messages indicate that the compiler is not able to process your code at all because of an error in your request....
Read more >11 Debugging - Modern Statistics with R
Read the documentation for the function causing the error message, and look at some examples of how to use it (both in the...
Read more >Closures - JavaScript - MDN Web Docs
A closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment).
Read more >Error in <my code> : object of type 'closure' is not subsettable
In general this error message means that you have tried to use indexing on a function. You can reproduce this error message with,...
Read more >Preventing Timing Problems When Using Closures
Use API names and parameter names along with documentation to determine whether an API is synchronous or asynchronous. A common timing mistake is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Assuming you’ve used a terminal before…
Of course, you’ll need
git
andpython
installed.Replace
npm i closure-library
withgit clone https://github.com/google/closure-library.git
.