I dragged the file in and
Uncaught TypeError: serializer.root.sprites is undefined
which file? also, can you share the project?
SnapPlus.xml download and drag the downloaded file into snap !
how can I reproduce the issue?
drag the xml file into Snap ! and use firefox
probably part of the problem.
works fine for me (FF 137.0.2 on Mac)
drag from downloads button on firefox
I did, it works fine.
on linux with hyprland(try vm for this one)
okay, I don't know if this exchange is leading up to anything. Perhaps you can try to be a little bit more ... verbal about the issue you're encountering and how to reproduce it. I can open your project just fine in any of the many browsers installed on my laptop, and it does serialize just fine in all of them.
it breaks when the os is gentoo and the desktop is hyprland
this one : Microsoft OneDrive
drag from the downloads popup that appears when you press the downloads button and, drag some blocks or edit text
Is there any errors when importing the project from the file menu? I'm wondering, because I've heard that drag and drop support on linux can be finicky and may not work all the time (though I've never tested, so I could be wrong).
the file import works perfectly
Then it's probably your OS and/or browser that is causing the error, not snap.
maybe next time when reporting a bug make sure it actually works on a stable system that isn't gentoo, because we probably almost 99% sure have different setups than you do. my arch system could operate completely different than your gentoo system because we have completely different packages. the outcome could be different because my desktop environment is different than your desktop environment, or my hyprland config could be different than your config.
also I heard hyprland isn't the most stable on gentoo yet, which might be the reason drag and drop isn't working
I can confirm the problem: Chrome@Win10
For me it seems that XML is somehow mallformed.
Steps to reproduce
- Drop the SnapPlus.xml
- "Export block definition..."
The block is exported as a primite override
XML
<primitives><block-definition
s="%'isLocal' function %'varname' ( %'inputs' )"
type="hat"
category="Snap! plus"
selector="functionRunCustom"
- Drop or
> Import the block definition onto the FRESH Snap instance
gui.js?version=2025-03-30:6734 Uncaught TypeError: Cannot read properties of undefined (reading 'global')
at IDE_Morph.rawOpenBlocksString (gui.js?version=2025-03-30:6734:16)
at IDE_Morph.<anonymous> (gui.js?version=2025-03-30:6713:18)
at IDE_Morph.onNextStep (morphic.js?version=2025-03-20:3349:17)
at Morph.stepFrame (morphic.js?version=2025-03-20:3337:17)
at morphic.js?version=2025-03-20:3340:46
at Array.forEach (<anonymous>)
at Morph.stepFrame (morphic.js?version=2025-03-20:3340:23)
at WorldMorph.doOneCycle (morphic.js?version=2025-03-20:12142:10)
at loop (snap.html:52:31)
IDE_Morph.rawOpenBlocksString @ gui.js?version=2025-03-30:6734
Please report the outcome of described steps.
when I import it manually, it works fine