Coder Social home page Coder Social logo

Comments (15)

jarrett avatar jarrett commented on June 17, 2024

Ouch. I don't have 1.9.1 installed on any of my machines, but I might be able to do that sometime soon. Could you post the error messages? (If it's the same message every time, please just post it once.)

from rbbcode.

fatalerrorx avatar fatalerrorx commented on June 17, 2024

First need to put this comment at the top of tree_maker_spec
http://pastie.org/878196
the error that gets repeated is:
http://pastie.org/878194
thanks for looking into this in advance.

from rbbcode.

jarrett avatar jarrett commented on June 17, 2024

Try running spec with the backtrace option. That will trace the error into the library. Right now, your trace only tells me about tree_maker_spec.rb:15, which does not itself call collect.

from rbbcode.

jarrett avatar jarrett commented on June 17, 2024

By the way, what's the deal with the # coding: utf-8 comment?

from rbbcode.

fatalerrorx avatar fatalerrorx commented on June 17, 2024

Here is the backtrace
http://pastie.org/878200

The coding comment tells ruby 1.9.1 that the file contains non-ascii characters otherwise ruby 1.9.1 throws and error:
/home/paul/rbbcode/spec/parser_spec.rb:74: invalid multibyte char (US-ASCII)

from rbbcode.

fatalerrorx avatar fatalerrorx commented on June 17, 2024

i made a mistake btw should put it in parser_spec.rb :)

from rbbcode.

jarrett avatar jarrett commented on June 17, 2024

Oh, neat. I haven't used Ruby 1.9.1 yet. Can you point me to some docs on how # coding: utf-8 works?

from rbbcode.

jarrett avatar jarrett commented on June 17, 2024

It appears that I had incorrectly used a variable-length argument list. For some reason, Ruby 1.8.6 didn't mind, but 1.9.1 does, I guess. So I rewrote it to be correct. Hopefully the new version will fix it for you.

from rbbcode.

fatalerrorx avatar fatalerrorx commented on June 17, 2024

Ah that fixed alot of problems but there are still 8 failures:
http://pastie.org/878208

from rbbcode.

jarrett avatar jarrett commented on June 17, 2024

I've added the magic comments. They'll ship with the next release.

The problems mostly seem to be with URLs. RbbCode uses my sanitize_url gem. Could you try running the tests on that in 1.9.1? I'm curious to see if they fail.

from rbbcode.

jarrett avatar jarrett commented on June 17, 2024

Most problems have been fixed thanks to the new release of sanitize-url. However, there are still 3 failure that are probably due to the changes to String in 1.9.1. I plan to push out a fix for these.

from rbbcode.

kpitn avatar kpitn commented on June 17, 2024

Any news about a fix ?

I'm using ruby 1.9.2 and with just this caracter "é"

I have this error :
incompatible character encodings: UTF-8 and ASCII-8BIT

from rbbcode.

jarrett avatar jarrett commented on June 17, 2024

Unfortunately I'm not able to put a lot of time in this project lately. Regarding your encoding error, are you sure you've properly declared the encoding of your source file with magic comments? If that's not the issue, and there's something wrong with rbbcode, I would welcome a patch. But for now, I don't know if I'll be able to address it myself.

from rbbcode.

kpitn avatar kpitn commented on June 17, 2024

i will write you a patch tomorrow, i've fix the issue

from rbbcode.

jarrett avatar jarrett commented on June 17, 2024

A new version based on Treetop will be coming out soon. This is a total rewrite, so all current issues will be closed.

from rbbcode.

Related Issues (16)

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.