DanielGavin / ols

Language server for Odin
MIT License
440 stars 67 forks source link

Unable to build on Mac - no field 'tags' on File #522

Open Davejkane opened 9 hours ago

Davejkane commented 9 hours ago

I'm on the master branch of ols, pulled latest current git hash - bd888dd3d45ecc9994bffe4c33c44af3dc765d02

odin version dev-2024-09-nightly:dd1f151

/Users/dka/odin/src/github.com/DanielGavin/ols/src/odin/printer/printer.odin(217:13) Error: 'file' of type '^File' has no field 'tags'
    for tag in file.tags {
               ^~~^

/Users/dka/odin/src/github.com/DanielGavin/ols/src/odin/printer/printer.odin(218:51) Error: Undeclared name: tag
    ... ns(p.document, text(strings.trim(tag.text, "\r\n")), newline(1))
                                         ^~^

/Users/dka/odin/src/github.com/DanielGavin/ols/src/odin/printer/printer.odin(219:10) Error: Undeclared name: tag
    pos := tag.pos
           ^~^

/Users/dka/odin/src/github.com/DanielGavin/ols/src/odin/printer/visit.odin(1577:6) Error: 'v' of type '^Struct_Type' has no field 'max_field_align'
    if v.max_field_align != nil {
       ^

/Users/dka/odin/src/github.com/DanielGavin/ols/src/odin/printer/visit.odin(1579:54) Error: 'v' of type '^Struct_Type' has no field 'max_field_align'
    ... ent = cons_with_nopl(document, visit_expr(p, v.max_field_align))
                                                     ^

/Users/dka/odin/src/github.com/DanielGavin/ols/src/odin/printer/visit.odin(1582:6) Error: 'v' of type '^Struct_Type' has no field 'min_field_align'
    if v.min_field_align != nil {
       ^

/Users/dka/odin/src/github.com/DanielGavin/ols/src/odin/printer/visit.odin(1584:54) Error: 'v' of type '^Struct_Type' has no field 'min_field_align'
    ... ent = cons_with_nopl(document, visit_expr(p, v.min_field_align))
                                                     ^
GoldenbergDaniel commented 9 hours ago

Make sure you're on the latest Odin version (dev-2024-10)