magicmonty / sonicpi.nvim

A neovim Plugin for [Sonic Pi](https://sonic-pi.net)
41 stars 7 forks source link

where can I find `daemon.rb`? #3

Open Invertisment opened 2 years ago

Invertisment commented 2 years ago

When I open a file test.sonicpi and execute :SonicPiStartDaemon then I get this error. Maybe that means that I configured something incorrectly?

Error executing Lua callback: ...ocal/share/nvim/plugged/plenary.nvim/lua/plenary/job.lua:405: Failed to spawn process: {                                                                                                                      
  _additional_on_exit_callbacks = {},                                                                                                                                                                                                          
  _raw_cwd = "/ruby/bin",                                                                                                                                                                                                                      
  _shutdown_check = <userdata 1>,                                                                                                                                                                                                              
  _stderr_results = {},                                                                                                                                                                                                                        
  _stdout_results = {},                                                                                                                                                                                                                        
  _user_on_exit = <function 1>,                                                                                                                                                                                                                
  _user_on_stdout = <function 2>,                                                                                                                                                                                                              
  args = { "daemon.rb" },                                                                                                                                                                                                                      
  command = "ruby",                                                                                                                                                                                                                            
  enable_handlers = true,                                                                                                                                                                                                                      
  enable_recording = true,                                                                                                                                                                                                                     
  interactive = true,                                                                                                                                                                                                                          
  pid = "ENOENT: no such file or directory",                                                                                                                                                                                                   
  stderr = <userdata 2>,                                                                                                                                                                                                                       
  stdin = <userdata 3>,                                                                                                                                                                                                                        
  stdout = <userdata 4>,                                                                                                                                                                                                                       
  user_data = {},                                                                                                                                                                                                                              
  <metatable> = <1>{                                                                                                                                                                                                                           
    __index = <table 1>,                                                                                                                                                                                                                       
    _create_uv_options = <function 3>,                                                                                                                                                                                                         
    _execute = <function 4>,                                                                                                                                                                                                                   
    _pipes_are_closed = <function 5>,                                                                                                                                                                                                          
    _prepare_pipes = <function 6>,                                                                                                                                                                                                             
    _reset = <function 7>,                                                                                                                                                                                                                     
    _shutdown = <function 8>,                                                                                                                                                                                                                  
    _stop = <function 9>,                                                                                                                                                                                                                      
    add_on_exit_callback = <function 10>,                                                                                                                                                                                                      
    after = <function 11>,                                                                                                                                                                                                                     
    after_failure = <function 12>,                                                                                                                                                                                                             
    after_success = <function 13>,                                                                                                                                                                                                             
    and_then = <function 14>,                                                                                                                                                                                                                  
    and_then_on_failure = <function 15>,                                                                                                                                                                                                       
    and_then_on_failure_wrap = <function 16>,                                                                                                                                                                                                  
    and_then_on_success = <function 17>,                                                                                                                                                                                                       
    and_then_on_success_wrap = <function 18>,                                                                                                                                                                                                  
    and_then_wrap = <function 19>,                                                                                                                                                                                                             
    chain = <function 20>,                                                                                                                                                                                                                     
    chain_status = <function 21>,                                                                                                                                                                                                              
    co_wait = <function 22>,                                                                                                                                                                                                                   
    is_job = <function 23>,                                                                                                                                                                                                                    
    join = <function 24>,                                                                                                                                                                                                                      
    new = <function 25>,                                                                                                                                                                                                                       
    pid = <function 26>,                                                                                                                                                                                                                       
    result = <function 27>,                                                                                                                                                                                                                    
    send = <function 28>,                                                                                                                                                                                                                      
    shutdown = <function 29>,                                                                                                                                                                                                                  
    start = <function 30>,                                                                                                                                                                                                                     
    stderr_result = <function 31>,                                                                                                                                                                                                             
    sync = <function 32>,                                                                                                                                                                                                                      
    wait = <function 33>                                                                                                                                                                                                                       
  }                                                                                                                                                                                                                                            
}
stack traceback:                                                                                                                                                                                                                               
        ...ocal/share/nvim/plugged/plenary.nvim/lua/plenary/job.lua:405: in function '_execute'                                                                                                                                                
        ...ocal/share/nvim/plugged/plenary.nvim/lua/plenary/job.lua:448: in function 'start'                                                                                                                                                   
        ...l/share/nvim/plugged/sonicpi.nvim/lua/sonicpi/remote.lua:148: in function <...l/share/nvim/plugged/sonicpi.nvim/lua/sonicpi/remote.lua:107>                                                                                         
stack traceback:                                                                                                                                                                                                                               
        [C]: in function 'error'                                                                                                                                                                                                               
        ...ocal/share/nvim/plugged/plenary.nvim/lua/plenary/job.lua:405: in function '_execute'                                                                                                                                                
        ...ocal/share/nvim/plugged/plenary.nvim/lua/plenary/job.lua:448: in function 'start'                                                                                                                                                   
        ...l/share/nvim/plugged/sonicpi.nvim/lua/sonicpi/remote.lua:148: in function <...l/share/nvim/plugged/sonicpi.nvim/lua/sonicpi/remote.lua:107>
Invertisment commented 2 years ago

My sonic-pi installation doesn't have daemon.rb file. I don't know how to get it for arch.

Invertisment commented 2 years ago

I've managed to start sonic-pi using their GUI and then interact with it via sonic_pi tool. Could you mention that this requires Sonic Pi LSP server or something like that? It would've saved me some time to know that I can't have it on Arch Linux.

It's also possible that somehow my Sonic Pi version is old. But I have v3.3.1, at least it shows that in UI when I managed to start it eventually.