Snail-IDE / snail-ide.github.io

Snail IDE Website
https://editor.snail-ide.com/
GNU General Public License v3.0
5 stars 22 forks source link

Unix Timestamp Reporter Block Bug #39

Closed SilvanZwick closed 4 months ago

SilvanZwick commented 4 months ago

Expected Behavior

The unix timestamp reporter block will output the unix timestamp, like it's supposedly supposed to do.

Actual Behavior

A warning icon (image) appears in the toolbar, and when you press it, this appears:

image

Note: Either \<sprite name goes here>image or

\<sprite name goes here>image can appear in the dropdown.

Steps to Reproduce

Click on the Unix Timestamp reporter block in the Editor>Sensing tab>image or use the Unix Timestamp reporter block (Editor>Sensing tab>image) in code. Examples:

https://github.com/Snail-IDE/snail-ide.github.io/assets/119003429/5716c4f6-11b0-49f9-b45d-e9edf695d8e4

https://github.com/Snail-IDE/snail-ide.github.io/assets/119003429/adadbf81-3e3e-46ba-9b8a-adaf225a05c1

Operating System and Browser

macOS Sonoma 14.0, Google Chrome 123.0.6312.87 (Official Build) (arm64), MacBook Pro 14" 2021 with Apple M1 Pro

[UPDATE]: Note: When you use it in code (e.x. setting a variable to its value), nothing in the code will run. Not if you put it in the code while it's in a loop (I was putting it in an all at one in a forever loop), or when you put it in and then click it.

nmsderp commented 4 months ago

we are aware, we are probably going to temporary hide these blocks

nmsderp commented 4 months ago

they have been temporary hiden

nmsderp commented 4 months ago

never mind hiding them broke the editor

dumorando commented 4 months ago

this is because we didnt properly add it to the vm yet. the warnings can be ignored for now, but you cant use them in packaged projects.

SilvanZwick commented 4 months ago

I happen to be very curious, so... here's a question: Why does the block give warnings and why can't you run code with that block in it?

dumorando commented 4 months ago

I happen to be very curious, so... here's a question: Why does the block give warnings and why can't you run code with that block in it?

the reason it gives warnings is because we didn't feed the vm the code it actually needs to run. blocks with said reporter in it will fail (i think) because the vm doesnt have the code that it can execute the block with. it works by itself, because the function is there, but there is no compiled code. i dont know if that makes sense lol

nmsderp commented 4 months ago

this has been fixed