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.

SB2 import: some imports seem broken

See original GitHub issue

Expected Behavior

Demo: https://scratch.mit.edu/projects/150198954/ https://llk.github.io/scratch-gui/#150198954

In this project, the math operators looked like this in 2.0: screen shot 2017-03-14 at 12 21 05 pm but look like this when imported into 3.0: screen shot 2017-03-14 at 12 21 32 pm When executed, it appears that they are not running abs, either, though (weird).

I believe the problem might be that https://github.com/LLK/scratch-vm/blob/develop/src/import/sb2specmap.js needs updating from https://github.com/LLK/scratch-blocks/pull/829/files; while some blocks were converted from having shadow-inputs to dropdown fields (undroppable), the spec map is still expecting shadow-inputs (e.g., look at operator_mathop (previously a shadow-input) vs. whenKeyPressed (field)). Not a great failure mode, possibly this case could be detected and cause a throw or something. 😃

Actual Behavior

Selections should match 2.0.

Steps to Reproduce

Create a project in 2.0 using the math op block and select a math operation. It won’t be selected correctly in 3.0

Operating System and Browser

Mac OS 10.12.1 Chrome latest

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
thisandagaincommented, Mar 14, 2017

Thanks @tmickel . Good catch. We’ll take a look next week after we get through testing on Thursday (our testing this round doesn’t include imports from 2.0).

0reactions
tmickelcommented, Mar 20, 2017

Not sure about custom blocks - those are pretty untouched as far as 3.0 development.

Another thing I noticed though: variables are sometimes broken on the import. That’s because they were previously using an input, like this:

argMap: [
            {
                type: 'input',
                inputOp: 'data_variablemenu',
                inputName: 'VARIABLE'
            }
        ]

But, scratch-blocks was updated to have variables on a particular field: https://github.com/LLK/scratch-blocks/blob/develop/blocks_vertical/data.js#L66

The mismatch causes weird things, screen shot 2017-03-20 at 7 08 44 pm like this variable called count in Scratch 2.0 which appears in the blocks editor as i.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating from Stable-Baselines
This is a guide to migrate from Stable-Baselines (SB2) to Stable-Baselines3 (SB3). It also references the main changes. Overview¶. Overall Stable-Baselines3 ( ...
Read more >
4. Importing - Fixing PowerPoint Annoyances [Book] - O'Reilly
Chapter 4. Importing Although you can create new content in PowerPoint, it seems like we’re just importing existing material most of the time....
Read more >
Intellij maven imports have broken classpath - Stack Overflow
But the last few I've imported are causing a broken classpath issue, and they're not being installed to the repository.
Read more >
Review and troubleshoot import errors - Knowledge Base
Learn how to view and troubleshoot common errors that occur during record imports.
Read more >
Savage Arms Buy NEF SB1 receiver shotgun rifle New ...
9 Dec 2011 H&R NEF Handi SB1 & SB2 Frames There is a Difference! ... It seems that at some point it had...
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