Code Monkey home page Code Monkey logo

Comments (2)

lpil avatar lpil commented on July 19, 2024

This looks like a Ruby error coming from Sonic Pi itself. I imagine we're starting the server in the wrong way for the latest version.

Currently we're execing whichever one of these files is found first:

sonic-pi-tool/src/lib.rs

Lines 90 to 96 in 9edf4e3

String::from("/Applications/Sonic Pi.app/server/bin/sonic-pi-server.rb"),
String::from("/Applications/Sonic Pi.app/server/ruby/bin/sonic-pi-server.rb"),
String::from("./app/server/bin/sonic-pi-server.rb"),
String::from("/opt/sonic-pi/app/server/bin/sonic-pi-server.rb"),
String::from("/usr/lib/sonic-pi/server/bin/sonic-pi-server.rb"),
String::from("/opt/sonic-pi/app/server/ruby/bin/sonic-pi-server.rb"),
String::from("/usr/lib/sonic-pi/server/ruby/bin/sonic-pi-server.rb"),

Perhaps @samaaron can let us know if that's right

from sonic-pi-tool.

tobyhede avatar tobyhede commented on July 19, 2024

You gave me an excellent clue, thanks. Pretty sure something in my environment causing the problem.
Digging through mainwindow.cpp I discovered that SonicPi bundles its own Ruby.

If I execute the server using the bundled Ruby, problem disappears:
/Applications/Sonic Pi.app/app/server/native/ruby/bin/ruby /Applications/Sonic Pi.app/app/server/ruby/bin/sonic-pi-server.rb

from sonic-pi-tool.

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.