GithubHelp home page GithubHelp logo

Comments (6)

piotr-binkowski avatar piotr-binkowski commented on August 22, 2024

I've checked the tests you listed and I discovered the following things:

  • 12.7.5 fails because it is missing a ; after while(...), soon this will be fixed by #110
  • 5.6.1 seems to fail because of missing ; and it also fails when tested manually using tree-sitter-cli with error 5.6.1--escaped-identifiers.sv 1 ms (MISSING ";" [8, 19] - [8, 19])
  • remaining tests from the generic subdirectory also seem to fail both in tree-sitter-cli with errors like (MISSING simple_identifier [7, 9] - [7, 9]) and in our test suite

Are you sure that those tests passed on your side?

In general test is marked as failed in tree-sitter-verilog runner when any node has the has_error property set to True and this has been the case in all mentioned tests.

from sv-tests.

tgorochowik avatar tgorochowik commented on August 22, 2024
  • 5.6.1 seems to fail because of missing ; and it also fails when tested manually using tree-sitter-cli with error 5.6.1--escaped-identifiers.sv 1 ms (MISSING ";" [8, 19] - [8, 19])

Why is that error not seen in the report? This is a bug in the python runner and should be fixed in my opinion, otherwise the logs are pretty useless

from sv-tests.

piotr-binkowski avatar piotr-binkowski commented on August 22, 2024

Currently logs only show the part of the node hierarchy that has the has_error flag set, ie. in case of 5.6.1:

...
(0, 0) source_file
(6, 0) module_declaration
(8, 2) module_or_generate_item
(8, 2) data_declaration
(8, 19) ;
...

and for a run that succeeded the log should be empty.
Maybe the runner can be enhanced to directly state at the end of the log that the error is in this particular line and what kind of error it is

from sv-tests.

drom avatar drom commented on August 22, 2024

@piotr-binkowski you are right. Cases are failing. It just the log was confusing.

from sv-tests.

drom avatar drom commented on August 22, 2024

I have released https://github.com/tree-sitter/tree-sitter-verilog v0.18.0 here that fixes these and many other issues. Please upgrade.

GitHub
Verilog grammar for tree-sitter. Contribute to tree-sitter/tree-sitter-verilog development by creating an account on GitHub.

from sv-tests.

tgorochowik avatar tgorochowik commented on August 22, 2024

The misleading messages have been improved in #200 so I guess this can be closed now.

from sv-tests.

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.