Sooo many errors when switching to block

I looked at it again, strangely, when 'get component' is there, i have 2 warnings (yellow), 0 errors(red). when ''get component' is not there, i have 0 warnings and 0 erros. The two warnings when 'get component' is there are about sth that i need to fill all the sockets in another block.

1 Like

The lack of error indication for a missing block in a Generic event suggests maybe those blocks aren't traversed when calculating total block errors and warnings.

That kind of error falls under the "didn't think of it" category of errors.

Alternatively, the counting process is being cut off by some time slice limitation on the MIT infrastructure, given your large block count.

Getting your .aia file to @ewpatton, as he requested, would help resolve those hypotheses.

3 Likes

Sounds a bit complicated, still don't understand why such errors do not show up. Thanks a lot anyway.

1 Like

Then try them.

1 Like

.AIA files are required for solving errors. If there are no source codes provided, how do we know where's the error?

Next time, you can check the warnings tab before reporting.

We know the problem is actually more general than that - if you try to drag any block into the workspace and it fails, you then get a succession of fails.

1 Like

i tried the bridge, after uploading, when trying to convert, it says no project is identified or sth like that. The project was apparently there (probably because of the error in codes).

i don't get what you are talking about. When there were a lot of errors, yellow 0 and red 0. Only after I corrected the code, yellow 2, red 0. Yes, confusing, but that's what I observed.

Here is the source code, you can give it a try and hope you can reproduce the problem on your machine (always works on my computer).
asd.aia (2.3 KB)

I also noticed that, quite often, there are errors when left panel components are clicked.e.g yesterday it happened to mysql.aia the interface example i downloaded.

here is the source code
asd.aia (2.3 KB)

The .aia file was readable in the Unchive tool, no problem.

No excesses in the Media, Extensions, components areas.
Four checkboxes were in the Designer.

The empty socket in the generic block broke subsequent error detection for the missing global variable:

Before:

After correction of the missing block:

(ABG Edit-)
Notice how the red errors that should have been caught in the first blocks image are now available in the second blocks image. (The global init block for global selection_list was left off the OP's .aia file)

The lack of red errors in the first block image is a sign that error checking broke.

This looks like an AI2 bug to me.

Attn: @ewpatton

2 Likes

For me it is working just fine asd.aia (2.6 KB)

blocks

Did your .aia magically heal itself?

This version does not expose the AI2 bug like the OP's version at

Thanks for including a project. I've identified the underlying issue and will put a fix together.

3 Likes

on my computer, it gives an error everytime i tried. You need to test it this way:

  1. open asd.aia, it will show designer view
  2. switch to blockview, it should give you an error
  3. click 'cancel' on the error message, the block will showup
  4. switch it back to designer view, it should be fine
  5. switch to blockview again, it should give you error again
  6. click "cancel" on error message, this time no block will show up and the backpack is on the left.

Thanks for making AI better.

The fix for this issue is now available on https://ai2-test.appinventor.mit.edu/.

1 Like

It works like a charm! I can't express how much gratefulness I have to you!!

1 Like