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.

Custom Reporters Frese Browser

See original GitHub issue

Expected behavior

When I drag custom blocks they should place.

Actual behavior

They freeze my browser and throw these errors:

vendor.js.pagespeed.jm.434JizBK7W.js:4 Uncaught TypeError: Cannot read property 

'targetConnection' of nullBlockly.BlockSvg.disconnectInsertionMarker @ 

vendor.js.pagespeed.jm.434JizBK7W.js:4Blockly.BlockSvg.terminateDrag @ 

vendor.js.pagespeed.jm.434JizBK7W.js:4Blockly.terminateDrag_ @ 

vendor.js.pagespeed.jm.434JizBK7W.js:4Blockly.BlockSvg.onMouseUp_ @ 

vendor.js.pagespeed.jm.434JizBK7W.js:4g @ vendor.js.pagespeed.jm.434JizBK7W.js:4

vendor.js.pagespeed.jm.434JizBK7W.js:4 Uncaught TypeError: Cannot read property 'sourceBlock_' of null

Steps to reproduce

  1. Go to the Scratch VM (I used this website to do it)
  2. Go to More Blocks
  3. Drag the custom reporter on already existing blocks (the one with the report[] included)
  4. Look at JS console

or use this XML (oh no! The XML adds custom blocks I did not add )

<xml xmlns="http://www.w3.org/1999/xhtml">
  <block type="procedures_defreturn" id="|v5?DM}fOQDHxb]yAWN0" x="132" y="115">
    <field name="NAME">do something</field>
  </block>
  <block type="event_whenflagclicked" id="kO-UNwe9NlxZc@BlO.+u" x="148" y="115"></block>
  <block type="procedures_defreturn" id="xUE}[p?`iSSv;y`TO%G," x="133" y="159">
    <field name="NAME">do something2</field>
  </block>
  <block type="looks_seteffectto" id="`{CFzSvO-Sp8vv%oe0oq" x="148" y="163">
    <value name="EFFECT">
      <shadow type="looks_effectmenu" id="*dVu+)?CMSV-7y@Fx9m,">
        <field name="EFFECT">brightness</field>
      </shadow>
    </value>
    <value name="VALUE">
      <shadow type="math_number" id="h[ERc4qLNz6mmhVGWhNA">
        <field name="NUM">-40</field>
      </shadow>
    </value>
    <next>
      <block type="control_forever" id="Orem,2~_?cdhrNs_V0b+">
        <statement name="SUBSTACK">
          <block type="looks_changeeffectby" id="!E4H6wj)p=s2B1F#:y@a">
            <value name="EFFECT">
              <shadow type="looks_effectmenu" id="U;xfv[sZY8yzS{%0Ceay">
                <field name="EFFECT">color</field>
              </shadow>
            </value>
            <value name="CHANGE">
              <shadow type="math_number" id="q/(B#g(Nkoh`m;ycBpn#">
                <field name="NUM">1</field>
              </shadow>
            </value>
          </block>
        </statement>
      </block>
    </next>
  </block>
  <block type="procedures_callnoreturn" id="`qY9DxfNl0LK);AgMP!/" x="216" y="485">
    <mutation name="do something"></mutation>
  </block>
  <block type="procedures_defnoreturn" id="s(3z`I~G@zezR2-MF!LU" x="117" y="523">
    <field name="NAME">do something</field>
  </block>
</xml>

Operating system and browser

Chromebook (Chrome OS) latest version.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
tmickelcommented, Oct 7, 2016

Fixed in scratch-blocks!

0reactions
CosmicWebServicescommented, Oct 7, 2016

YAY!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tutorial: Create a Custom Reporter - Documentation - Mocha
Mocha allows you to define and use custom reporters install via npm . ... Browsing the built-in reporter implementations, you may often see...
Read more >
Custom Reporter | Developer Guide - Nightwatch.js
Learn how to create and use a custom reporter in Nightwatch.
Read more >
Custom Reporter - WebdriverIO
You can write your own custom reporter for the WDIO test runner that is tailored to your needs. And it's easy! All you...
Read more >
Custom Reporter: onSuiteEnd fires when Mocha test suite ...
When using a custom reporter I want the onSuiteEnd hook to be hit when the suite in my wdio config ends, not mocha....
Read more >
Michael Frese at Skadden, Arps, Slate, Meagher & Flom LLP
Latest publications and contact information for attorney Michael Frese at Skadden, Arps, Slate, Meagher & Flom LLP via law news provider JD Supra....
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