[Bug]: Unable to Connect via USB : java.lang.ClassCastException

I have also created the issue on GitHub:

I checked out Kodular Fenix (v1.5D.0) Bug Tracker before creating a new topic

Describe your issue

There is no issue with Connect to Companion, but the Connect to USB is failing.

And also the starter.kodular.io is able to detect the phone and the app.
So the issue is clearly with the creator.kodular.io

Steps to reproduce the issue

  1. Start Kodular Starter
  2. Open a creator.kodular.io project
  3. Test > Connect to USB

Expected Behaviour

I was able to see the compiled screen.

Actual Behaviour

It keeps saying,

Connecting...
Connecting via USB Cable

And then an alert pops up

An internal error has occurred. Report a bug?

Show your Blocks

No blocks is suffice.

Android version

7.1.1

As explained in detail in the GitHub issue,

I believe it needs proper sanitization that GWT accepts.

    setContent: function(a) {
        if (this._dialog && $wnd.BlocklyPanel_setDialogContent) {
            try {
                $wnd.BlocklyPanel_setDialogContent(this._dialog, String(a));
            } catch (error) {
                $wnd.console.error("Error in `ob.Util.Dialog.setContent`: ", error, "Arguments: ", a);
            }
        }
    }

Hi dear,

Welcome to the :kodular:odular community! and thank you for your report

Confirmed,

Added to the Bugs Tracker

Wait, the issue that I am reporting is in the Kodular Creator (creator.kodular.io) and not the Desktop app of Kodular Starter or even starter.kodular.io.
Kodular Starter has its own issue, but it’s not the concern of this thread.

The exception thrown could be seen in the console of browser dev tool.

Good morning,

I know, it was to give some context to the topic title.
As soon as it is reviewed for resolution, this thread will be used as a reference since it clearly explains where the problem originates.