Git Product home page Git Product logo

Comments (15)

rachel-fenichel avatar rachel-fenichel commented on May 20, 2024

Are there any errors in the console, either when you create the block or when you try to drag it?

from blockly.

rylid-umil avatar rylid-umil commented on May 20, 2024

i havne't checked, let me check real quick

from blockly.

rylid-umil avatar rylid-umil commented on May 20, 2024

i don't see any big errors, but i did discover the custom blocks have problems connecting, too.
image

from blockly.

rylid-umil avatar rylid-umil commented on May 20, 2024

its odd, but i made a new custom block and it works normally as expected

from blockly.

rachel-fenichel avatar rachel-fenichel commented on May 20, 2024

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.

rylid-umil avatar rylid-umil commented on May 20, 2024

oh so i will have to delete all my hard work, nevermind

from blockly.

rylid-umil avatar rylid-umil commented on May 20, 2024

but then why did the new block i had just created not lock up?

from blockly.

rachel-fenichel avatar rachel-fenichel commented on May 20, 2024

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.

rylid-umil avatar rylid-umil commented on May 20, 2024

How do i find the bad block(s)?

from blockly.

rylid-umil avatar rylid-umil commented on May 20, 2024

also as i specified, i don't use Chrome

from blockly.

rachel-fenichel avatar rachel-fenichel commented on May 20, 2024

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.

rylid-umil avatar rylid-umil commented on May 20, 2024

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.

gonfunko avatar gonfunko commented on May 20, 2024

You can share the block definitions by copying the value of the BlockLibraryStorage.blockLibrary key in local storage from the Firefox web inspector:
Screenshot 2023-09-15 at 3 03 40 PM

from blockly.

rylid-umil avatar rylid-umil commented on May 20, 2024

https://pastelink.net/71qmn64v

from blockly.

rylid-umil avatar rylid-umil commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.