question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix documentation for "Error: Closure not found"

See original GitHub issue

After 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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
towerofnixcommented, May 19, 2016

Assuming you’ve used a terminal before…

cd <where you put your github prjoects>
git clone https://github.com/google/closure-library.git
git clone https://github.com/LLK/scratch-blocks.git
cd scratch-blocks
python build.py
# Now you can experiment by opening up
# tests/horizontal_playground.html :)

Of course, you’ll need git and python installed.

2reactions
towerofnixcommented, May 17, 2016

Replace npm i closure-library with git clone https://github.com/google/closure-library.git.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found