Giter Site home page Giter Site logo

Comments (10)

JoshCheek avatar JoshCheek commented on July 19, 2024 2

How to fix the issue!!

You should be able to get a working version now, with $ gem install seeing_is_believing --version 3.0.0.beta.7 I understand that I should obviously just release v3.0, but give me 3 months more, and then you can yell at me and I'll say "yes, you're right". Part of the problem is the implication of major versions, so I pushed a lot of changes towards this, rather than feeling comfortable releasing them incrementally :(

Commits

Here are all the commits since last release.

Synopsis

They pushed a newer version of parser, largely b/c of this issue, 4 days ago. I just released a new version of SiB https://rubygems.org/gems/seeing_is_believing/versions/3.0.0.beta.7

  • The largest issue was due to changes which disallowed multiple insertions at the same location (change is here). When I discovered the issue, I pointed out SiB's use case here. Parser added an API to re-enable this functionality, largely b/c SiB needs it, here.
  • The ability to edit invalid files was temporarily lost, I whined about it and they pointed out that there's a way better way to do it than I was doing, so now it's back.
  • Some tests were failing b/c of this, I just removed them, here
  • Found a bug in MRI and Parser, which is now fixed.
  • I also fixed a bug around explicit warning, while I was in there.
  • A while back, an unreleased fix on recording instances of BasicObject got added here

I think that's most of it. The crux of it is that my deps updated while I was busy, and SemVer wasn't sufficient to imply that they would break SiB, so when they updated, the newer deps got downloaded and ran with SiB,

from seeing_is_believing.

lcguida avatar lcguida commented on July 19, 2024

I've experienced the same problem. Rolling back the parser gem version to 2.2.3.0 worked.

from seeing_is_believing.

terlar avatar terlar commented on July 19, 2024

I experience the same thing and but with the seeing_is_believing vim plugin. And I cant downgrade the version because rubocop requires a higher one.

from seeing_is_believing.

JoshCheek avatar JoshCheek commented on July 19, 2024

Aye. They have a newer version that probably works. I've been intending to try to upgrade, but too many plates to keep them all spinning. If anyone wants to try restricting the version or updating the code, I'm happy to pull (prob ping me on Twitter, issues get lost in my inbox).

  • I initially brought up the issue here
  • They have a new version that probably works here
  • The code that will need to be changed is here
  • The tests for that code are here
  • Last push failed CI here I haven't looked into why, but a quick glance says it's to do with exit statuses. However, that's the binary code. So prob run other tests first, might be blowing up for other reasons, and this just shows up b/c of the error message.

from seeing_is_believing.

JoshCheek avatar JoshCheek commented on July 19, 2024

Oh, in the interim, you can specify the version to use for a gem with a special argument (eg if you can't an an env var)

$ rails -v
Rails 4.2.5

$ rails _4.2.2_ -v
Rails 4.2.2

from seeing_is_believing.

JoshCheek avatar JoshCheek commented on July 19, 2024

I've got it mostly there. It fixes this common issue (against Parser's HEAD, the change isn't released yet). But other changes prevent it from extracting valid comments (ie clearing the annotations partway through an edit that leaves the file in an invalid state).

from seeing_is_believing.

mann avatar mann commented on July 19, 2024

I was trying to get seeing_is_believing (s_i_b) working with Sublime Text 3 and was also getting a parser error. It was suggested by Josh to downgrade from my current parser gem of parser-2.3.0.6 to parser-2.2.2.6 by doing a gem uninstall parser, then reinstall the older version with gem install parser --version 2.2.2.6. That's is the parser version s_i_b was written against. This worked for me! I verified by running this at the terminal with seeing_is_believing -e '1+1' which printed out 1+1 # => 2, I also verified by going into sublime and writing something in ruby to be evaluated (eg. 2 + 2). That worked too.

from seeing_is_believing.

avdi avatar avdi commented on July 19, 2024

Thanks a lot, Josh!

On Tue, Mar 29, 2016 at 11:55 PM Josh Cheek [email protected]
wrote:

How to fix the issue!!

You should be able to get a working version now, with $ gem install
seeing_is_believing --version 3.0.0.beta.7 I understand that I should
obviously just release v3.0, but give me 3 months more, and then you can
yell at me and I'll say "yes, you're right". Part of the problem is the
implication of major versions, so I pushed a lot of changes towards this,
rather than feeling comfortable releasing them incrementally :(
Commits

Here
252911d...e73fced
are all the commits since last release.
Synopsis

They pushed a newer version of parser, largely b/c of this issue, 4 days
ago. I just released a new version of SiB
https://rubygems.org/gems/seeing_is_believing/versions/3.0.0.beta.7

I think that's most of it. The crux of it is that my deps updated while I
was busy, and SemVer wasn't sufficient to imply that they would break SiB,
so when they updated, the newer deps got downloaded and ran with SiB,


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#69 (comment)

from seeing_is_believing.

lcguida avatar lcguida commented on July 19, 2024

Thanks 👏

from seeing_is_believing.

Jpease1020 avatar Jpease1020 commented on July 19, 2024

My favorite tool is back!

from seeing_is_believing.

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.