by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jo Nathan
    @on3al
    Running the suggested dogma build script I get "Model library could not be loaded!". Do I need to put my models in their own package for the code gen to work, or can they simply be sub-directory in my existing application package?
    Don
    @donny-dont
    my-app
    + lib
    |  +  src
    |  |  models
    |  |  +  foo.dart
    |  models.dart
    @on3al
    Don
    @donny-dont
    @patefacio im adding stuff to make dogma metadata declarations look like ebisu
    var builder = clazz('Foo')
        ..fields = [
          field('bar')
            ..defaultValue = 2
        ];
    would like your feedback once i land it
    the plus side is the metadata can be verified before its created
    which i think will be a really nice addition to the library
    Kulshekhar Kabra
    @kulshekhar
    yeah, it would be better in here!
    Don
    @donny-dont
    definitely
    Don
    @donny-dont
    not sure what time zones were dealing with but its still morning here so ill be around for the next 7-8 hours
    just ping me if you have any questions and ill do my best
    once i get home its the toddlers world so thats why development is slower than id like :smile:
    oh also if you want to contribute back any then tests would be greatly appreciated
    Kulshekhar Kabra
    @kulshekhar
    it's midnight here but I've given myself only 24 more hours to get this thing done. So I'm likely to be around for that time!
    async communication is fine, btw :)
    Don
    @donny-dont
    kk
    Kulshekhar Kabra
    @kulshekhar
    looks like libraryMetadataQuery returns only one class if a class with the same name exists in multiple libraries/files
    Don
    @donny-dont
    you have multiple instances of the same name?
    if so you can do libraryMetadataQueryAll
    if you had something where lib/a.dart gets referenced multiple times the instances should be equal
    internally it caches all the libraries found through the analyzer
    so it won't reparse a library
    Kulshekhar Kabra
    @kulshekhar
    that worked. I don't have multiple classes with the same name but I want to ensure that that case gets covered
    Don
    @donny-dont
    the query currently doesnt keep track of what it returned and then not return it if its already been returned
    i would take a pull request for that if you were inclined at a later date
    Kulshekhar Kabra
    @kulshekhar
    the link to the docs on pub seems to be broken
    anything I can do to fix it? or is that intentional?
    Don
    @donny-dont
    its because theres a path dependency for the test framework
    i plan on using the source_metadata library to rip out the markdown comments for a general site
    that would take it and put it into something compatible with Hugo
    and then ill build out the whole site using that
    i didnt realize that the documentation comments included the /// and in the next version ill be fixing that
    so you get the comments as expected
    im debating whether it should include stuff like the line breaks or attempt to make paragraphs
    theres a lot of libraries in the dogma umbrella so i want to make it so i can have a definitive place for documentation
    Kulshekhar Kabra
    @kulshekhar
    that makes sense
    Don
    @donny-dont
    im more than happy to answer any questions though
    things are finally coming together
    docs have always been a problem
    but i was thinking that i could write docs for a library within the library entry point
    and then i take that out and put it into a .MD file run hugo and then push that
    on top of running dart doc to get all the documentation period
    Don
    @donny-dont
    @kulshekhar hows it going?
    Kulshekhar Kabra
    @kulshekhar
    Stuck in my own code atm but all the POC is finally done! Time to build the utility now :)
    Don
    @donny-dont
    So dogma is working for you or not at that stage yet
    Kulshekhar Kabra
    @kulshekhar
    it did. Actually the functionality that I needed worked when you told me about libraryMetadataQueryAll. The other parts were based on the code I had written. Once the whole setup works, I'm going to explore if I can replace my code with functionality from dogma_source_metadata
    Don
    @donny-dont
    K let me know if you need anything @kulshekhar
    Glad it worked
    Kulshekhar Kabra
    @kulshekhar
    :+1:
    kostaa
    @kostaa
    @donny-dont - Hi I was going to use your library to genereate classes from my Firebase Json schema but I could not
    make it work. In the process I checked out the source code and noticed that one of the dependencies dogma-source-analyzer is not in the repository.