GithubHelp home page GithubHelp logo

Comments (10)

creachadair avatar creachadair commented on June 28, 2024 1

See also bblfsh/documentation#228, which was motivated by issues like this. I think we will need to make a clearer contract about what constitutes "acceptable" changes to the UAST structure as a result of bug fixes and natural evolution

from javascript-driver.

EgorBu avatar EgorBu commented on June 28, 2024

One more file: probably because of 💾

from javascript-driver.

dennwc avatar dennwc commented on June 28, 2024

I cannot reproduce this issue.

According to the comment on the Offset field:

Offset is ... an absolute byte offset.

@EgorBu Maybe you are using the offset as a UTF8 character offset instead of a byte offset?

from javascript-driver.

dennwc avatar dennwc commented on June 28, 2024

OK, nevermind, I reproduced an issue. The native driver returns JS offsets in UTF8 runes, not bytes.

from javascript-driver.

zurk avatar zurk commented on June 28, 2024

@dennwc do you plan to fix it not only in the lastest v2 driver but for the latest v1 too?
yeah, we still use old drivers, sorry for that, but as soon as we have enough time we plan to switch to v2.

from javascript-driver.

dennwc avatar dennwc commented on June 28, 2024

I don't think we can backport it down to v1, but all new drivers should be able to run in v1 compatibility mode.

from javascript-driver.

zurk avatar zurk commented on June 28, 2024

oh, I did not know it is possible. Sorry for offtopic, but how can I enable it? From my experiments, I remember that pure driver replacement gives different UAST structure and it breaks ML team code.

from javascript-driver.

zurk avatar zurk commented on June 28, 2024

@dennwc what about v1 compatibility mode and my last question?

from javascript-driver.

dennwc avatar dennwc commented on June 28, 2024

@zurk Yeah, sorry, missed the notification.

I checked the code, v1 compatibility is still enabled in the new bblfshd releases. So you can use new driver to get the good old Node structure.

But, since we fixed lots of things in new drivers, you might see some slight changes in the AST. Those are mostly bug fixes, but I don't know if they are severe enough to break assumptions in your pipeline.

I would say you should give it a try and feel free to ping me if you find any differences that break the pipeline. Some might be fixable upstream.

from javascript-driver.

zurk avatar zurk commented on June 28, 2024

ok, thank you, @dennwc! I will check it.

from javascript-driver.

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.