Coder Social home page Coder Social logo

Error "Cannot read property 'map' of undefined" appears after clicking on "Select a device" with Android target about vscode-comet HOT 8 CLOSED

JaneySprings avatar JaneySprings commented on August 11, 2024
Error "Cannot read property 'map' of undefined" appears after clicking on "Select a device" with Android target

from vscode-comet.

Comments (8)

hez2010 avatar hez2010 commented on August 11, 2024 1

It has been fixed in the main branch by #15.
But the version containing the fix hasn't been released yet.

@Clancey Can you publish a new release on the vscode extension marketplace? Otherwise users cannot use comet on vscode for Android at all when they're building and debugging apps against API level 31+.

from vscode-comet.

JaneySprings avatar JaneySprings commented on August 11, 2024 1

Output:
{"id":"25b133b5-720e-4087-a988-b434f9b4071d","command":"devices","error":"The given key 'tag.display' was not present in the dictionary."}

from vscode-comet.

JaneySprings avatar JaneySprings commented on August 11, 2024 1

Thank you so much, it works!
image

from vscode-comet.

Clancey avatar Clancey commented on August 11, 2024

Just told CI to push a new version

from vscode-comet.

JaneySprings avatar JaneySprings commented on August 11, 2024

@hez2010 It looks like nothing has changed, but thanks for the answer!
image

from vscode-comet.

hez2010 avatar hez2010 commented on August 11, 2024

Can you try calling mobile-debug manually and see the inner exception?

from vscode-comet.

hez2010 avatar hez2010 commented on August 11, 2024
cd ~/.vscode/extensions/clancey.comet-debug-0.3.16/src/mobile-debug/bin/Debug/net6.0
dotnet ./mobile-debug.dll util -c=devices

from vscode-comet.

hez2010 avatar hez2010 commented on August 11, 2024

It turns out to be no tag.diaply in your avd config.ini. I've sent a PR #18 to fix this.
To workaround this issue, you may add some dummy config lines in your avd config.ini:

tag.display=Default
tag.id=default

from vscode-comet.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.