Comments (15)
Are there any errors in the console, either when you create the block or when you try to drag it?
from blockly.
i havne't checked, let me check real quick
from blockly.
i don't see any big errors, but i did discover the custom blocks have problems connecting, too.
from blockly.
its odd, but i made a new custom block and it works normally as expected
from blockly.
The JSON.parse
error is a big error: it means that the blocks are not being loaded properly, which could explain why everything locks up. That might be due to malformed JSON. You can clear your local storage to get rid of saved block definitions that might be loading wrong (although beware that this will delete all of your local custom blocks).
I don't recognize the TypeError
or the following script that failed to load.
from blockly.
oh so i will have to delete all my hard work, nevermind
from blockly.
but then why did the new block i had just created not lock up?
from blockly.
If you have enough local custom blocks that you don't want to delete, you can do something more involved to find the bad block and delete only it. The blocks are in local storage under BlockLibraryStorage.blockLibrary
.
Chrome developer tools lets you interact with (and modify) your local storage.
However, you shouldn't do this until you figure out what the broken block is and how it is broken.
from blockly.
How do i find the bad block(s)?
from blockly.
also as i specified, i don't use Chrome
from blockly.
Firefox's developer tools have very similar functionality. Here's the documentation on the storage inspector and local storage.
SO, basically, when i created new blocks with no color input, aka black, i noticed they wouldn't move when they were put in workspace, and has been happening to every custom-made block since then. Every single one.
The new block with no color input is probably the trigger, but I can't say without more information. To debug further you can:
- Share your block definition here so I can take a look
- Load the block factory in a private window or in a different browser and try to create the same block, and see if it fails.
- If you have many blocks, you can go through one at a time until you find a breaking block. I suggest starting with the one with no color input though.
from blockly.
I deleted the ones with no color input, still persists. theres one block i recently created that i think isn't affected by glitch. And how do i share all block defenitions at once?
from blockly.
You can share the block definitions by copying the value of the BlockLibraryStorage.blockLibrary
key in local storage from the Firefox web inspector:
from blockly.
https://pastelink.net/71qmn64v
from blockly.
I had just made new blocks ona school computer, and they all had color inputs. They still locked up, with no clear cause why. Can't even screenshot cuz my school disabled the inspection feature.
from blockly.
Related Issues (20)
- After the block drag is completed, the mouse event is not released HOT 8
- field_colour document javascript definition missed a parameter HOT 1
- Failed to parse source map HOT 1
- Dialog methods don't allow you to assign subtypes HOT 4
- Dropdown field arrow misplaced on Safari when using Thrasos renderer HOT 1
- Dancing blocks with Zelos in 10.4 HOT 5
- Clean up old dragging infrastructure
- Add `IDragger` to the registry
- Remove `couldConnect` parameter from `wouldDelete`
- Delete `demos/blockfactory_old`
- Implement basic CommentView class
- Implement WorkspaceComment class
- Implement RenderedWorkspaceComment class
- Implement workspace comment JSON serializder
- Implement workspace comment events
- Define CommentIcon interface
- Add overriding comment icons
- Export bubble positioning logic
- Fix gesture handling code for workspace comments HOT 1
- Move logic from `startDrag` and `moveDrag` into a utils file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blockly.