Giter Club home page Giter Club logo

Comments (6)

Josverl avatar Josverl commented on May 28, 2024 2

from micropython-stubber.

Josverl avatar Josverl commented on May 28, 2024 1

@BradenM ,

I have implemented the above change in the json format starting with version 1.2.0
i think that should improve the parsing as formally a json array is un-ordered so skipping the first 2 nodes was a bit of a hack.

Could you take a look at commit cb0779b and let me know if that works for you ?

/jos

from micropython-stubber.

Josverl avatar Josverl commented on May 28, 2024 1

I've merged the schema to main.

i agree that all the different firmware options make it hard to find the capabilities of the language , and of the included optional modules; especially as these modules also can/are sometimes changed for the specific firmware.

from micropython-stubber.

BradenM avatar BradenM commented on May 28, 2024

Looks good to me. Definitely agree with getting rid of the array, and the firmware specs should be considerably more uniform and easier to parse now.

I am not and won't be home where I can test this out on some more devices/firmware for the rest of this week, but I will definitely give it a more detailed look when I get back.

from micropython-stubber.

BradenM avatar BradenM commented on May 28, 2024

@Josverl,

Was finally able to check this out properly. Definitely a lot more useful, but I am still struggling with the issue of being able to determine exactly what branch of micropython a device is using.

I am trying to avoid hard coding it, as according to awesome-micropython, there are over 2000 of 'em. So far I haven't been able to come up with anything better than cross-referencing the version number against the tags/ports from a list of micropython git repos (See this and its output). Not exactly a perfect approach.

For micropy-cli, the benefit of knowing the exact firmware would make it pretty easy to determine which (firmware) frozen modules to retrieve and source in a project. I may just be over complicating this haha, but do you happen to have any ideas? Thanks.

from micropython-stubber.

BradenM avatar BradenM commented on May 28, 2024

@Josverl,

For now this schema works great, I have gone ahead and integrated it into micropy-cli. I have pushed tackling firmware resolution to a later date, so when you have the time do you mind removing the stubber.modules debug line and merging into master?

Thanks for your help!

from micropython-stubber.

Related Issues (20)

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.