Giter Site home page Giter Site logo

Comments (5)

crokobit avatar crokobit commented on July 20, 2024

It had no error after I uninstall json gem, do not know why... QQ

from seeing_is_believing.

crokobit avatar crokobit commented on July 20, 2024

uninstall json gem will solve error above, but it comes another error when I run code below in vim with hwartig/vim-seeing-is-believing:

require 'roo'
s = Roo::Excelx.new("XXX.xlsx")

error:

It blew up >.< Please log an issue at: https://github.com/JoshCheek/seeing_is_believing/issues
SeeingIsBelieving::VERSION "2.2.0"
Parser::VERSION "2.2.0.3"
RUBY_VERSION "2.2.0"
ENV['RUBY_VERSION'] "ruby-2.2.0"
Also include the source code of program that caused this behaviour.

p.s. It works fine in irb.

from seeing_is_believing.

JoshCheek avatar JoshCheek commented on July 20, 2024

Try running this against the latest release (as of right now: gem install seeing_is_believing -v 3.0.0.beta.5) I suspect the issue is fixed there, due to #46 Its possible that Roo::Excelx has the same flaw (raises an exception whose message has characters that are invalid, given the encoding).

As an aside, you may have issues with your Ruby install. Looks like it's installed to /usr/local/Cellar/ruby/2.2.0/lib/ruby/2.2.0. I know that Homebrew installs things to /usr/local/Cellar, so I'd assume that this Ruby is installed with Homebrew. But the gem is from /Users/crokobit/.rvm/gems/ruby-2.2.0/gems/seeing_is_believing-2.2.0, which is clearly an rvm location. Then again, maybe rvm installs gems globally to /usr/local/Cellar, but that'd be strange IMO.

from seeing_is_believing.

JoshCheek avatar JoshCheek commented on July 20, 2024

It's probably that, the JSON gem has a C extension, where it's easy to fuck up the encoding, and the Roo gem is working with binary data, which it could include in an inspection on an error message (eg shows the binary data to help you understand why it couldn't parse the file).

from seeing_is_believing.

crokobit avatar crokobit commented on July 20, 2024

Thanks~

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.