Giter Site home page Giter Site logo

Comments (8)

zspitz avatar zspitz commented on June 9, 2024

As a temporary workaround, you can increase the timeout length; see https://stackoverflow.com/q/787334/111794.

AFAICT with a large tree, the visualizer processes the entire tree, even when the user can only see a fraction of the tree at once. The solution would be to only process part of the tree, and be able to request other parts on demand.

from antlr4parsetreevisualizer.

doggy8088 avatar doggy8088 commented on June 9, 2024

@zspitz I tried. It doesn't works. I'm using Visual Studio 2019.

from antlr4parsetreevisualizer.

zspitz avatar zspitz commented on June 9, 2024

The configuration may be stored in a different place in VS 2019 -- https://stackoverflow.com/questions/41119996/where-does-visual-studio-2017-store-its-config?noredirect=1&lq=1 .

from antlr4parsetreevisualizer.

MihaMarkic avatar MihaMarkic commented on June 9, 2024

[VS2019] In my case I have a fairly sample grammar and I've seen the error the first time I've tried visualizer on an string. And the error persisted until I restarted VS. Now it works fine.

from antlr4parsetreevisualizer.

zspitz avatar zspitz commented on June 9, 2024

@MihaMarkic Do you think you could attach the grammar and string to this issue?

@doggy8088 I assume this isn't what you're seeing; you're seeing the same error multiple times, even after having restarted VS. Could you attach a grammar and sample string?

from antlr4parsetreevisualizer.

doggy8088 avatar doggy8088 commented on June 9, 2024

@zspitz My original grammar quality is pretty low. After rewriting my grammar, all performance issue has been resolved.

from antlr4parsetreevisualizer.

MihaMarkic avatar MihaMarkic commented on June 9, 2024

@zspitz It was really a simple one taken from tutorial, I think. It most probably isn't important in this case. I've overwritten it since I posted. But if I see the same error again, I'll post the grammar here.

from antlr4parsetreevisualizer.

zspitz avatar zspitz commented on June 9, 2024

@doggy8088 @MihaMarkic Thanks to you both for reporting and interacting on this issue. It's still a relevant problem, when there's a large parse tree. But I'm going to hold off on this for now, because fixing it is a significant architectural change.

from antlr4parsetreevisualizer.

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.