Coder Social home page Coder Social logo

Comments (6)

tiagobonetti avatar tiagobonetti commented on July 17, 2024

Got same error here.
running: ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux]

from betty.

pickhardt avatar pickhardt commented on July 17, 2024

I think this is due to the comments in the regex (the line with todo). It happens in earlier versions of Ruby. It wasn't happening in the pull request that this came from, or on my computer, due to our versions of Ruby being newer.

Someone made a PR with a fix, and I merged it. So try pulling again.

from betty.

lpanebr avatar lpanebr commented on July 17, 2024

pulled and tested master and dev branches. Got the same error but now on line 36 /process.rb:36

$ betty 
/home/lpanebr/Applications/betty/main.rb:6:in `require': /home/lpanebr/Applications/betty/lib/process.rb:36: undefined (?...) sequence: / (SyntaxError)
      (show|find|give|me|a|list|of|those|\s)*
      (?<all>all\s)?
      (?<my>my\s)?
      PROCESS(es)?
      (with|which|that|\s)*
      (for|process|\s)* (id\s(?<process_id>[0-9]+))?
      (for|belonging|belong|to|by|\s)* (user\s(?<user_id>\w+))?
      ((like|matching|with|pattern|containing|that|which|contain|\s)+ (?<pattern>\w+))?
    /
    from /home/lpanebr/Applications/betty/main.rb:6
    from /home/lpanebr/Applications/betty/main.rb:6:in `each'
    from /home/lpanebr/Applications/betty/main.rb:6
$ ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

from betty.

lpanebr avatar lpanebr commented on July 17, 2024

installing ruby1.9.1 solved the issue. I would be nice to?

  • add a requirements section in the readme, and
  • checking for requirements in the install script

On ubuntu 12.04 I solved it by:

$ sudo apt-get install ruby1.9.1
$ sudo update-alternatives --config ruby # when prompted select 1.9.1

from betty.

tiagobonetti avatar tiagobonetti commented on July 17, 2024

ruby1.9.1 solved it on ubuntu 10.04.

from betty.

pannous avatar pannous commented on July 17, 2024

requirement should be ruby 1.8, if a module needs higher ruby then it should give a warning instead of crashing. will be fixed ...

from betty.

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.