Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needs updating to work with Sonic-PI 4.x #24

Open
andrewcrook opened this issue Dec 15, 2022 · 6 comments
Open

Needs updating to work with Sonic-PI 4.x #24

andrewcrook opened this issue Dec 15, 2022 · 6 comments

Comments

@andrewcrook
Copy link

andrewcrook commented Dec 15, 2022

Sonic-PI 4.x has significant changes which result in the incompatibility with the current version of this extension.
Note sure that the API has change much not looked at the actual code yet but the scripts available which this extension relies upon have.

example

  • port-discovery.rb is no longer available
  • sonic-pi-server.rb seems to be now spider-server.rb
    ......
@elileinkram
Copy link

@andrewcrook this plugin worked for me s00500/vscode-sonic-pi.

@fredlemieux
Copy link

@andrewcrook this plugin worked for me s00500/vscode-sonic-pi.

I can vouch for this plugin. Worked a treat! Thanks @elileinkram

@andrewcrook
Copy link
Author

Thanks hopefully it will be pulled back into the original

@jonnyhotchkiss
Copy link

Is this a vscode extension that will work with sonic-pi 4? Guessing no , from this open issue...

It's listed as a 'contribution' on Jackson's extension, which is available via vscode extensions-search...
Or do all these 'cli' plugins need plugins?!

Am wondering if any of these is all that's needed...
image

...or if possible to just use sonic-pi-vscode-editor, and how to install ...

Am guessing most clis are not sp4 ready (robin made one, maybe it runs on ruby), some may be fixable

Is everyone (on windows / sp4+) using s00500/vscode-sonic-pi ?

Test-time! Thanks!

@andrewcrook
Copy link
Author

To be honest I haven't tried it since.
I have moved from vscode to neovim since anyway.
if it is working let me know I might port it to neovim

@jonnyhotchkiss
Copy link

The plugin works on it's own with vscode marvellously 👍 The only (vscode usage) issue I found was the confusing overloading of shortcuts to actions, and a lack of info on identifying focus to understand the active where clauses (see vscode keyboard shortcuts)

In a .pi file I can run with alt+r and stop with alt+s
From a pibook I could start a cell with ctrl+alt+enter, but had to stop using alt+s. Most other shortcuts don't seem to work, or seem incorrectly configured as, for example, alt+t always calls the terminal menu (instead of running selected text in pibook cell, as expected)

I tried using the keyboard troubleshooting, and the developer tools to identify the focussed element(s) , still some work to do to understand the configurations listed (notebook!= Sonic pi)

I think I'll keep at it cause i think code will give me everything I've always wanted (and more!) Once I've traversed it's learning curve.

One thing I'd tried previously in sonic pi was to run code from clipboard, using a clipboard ruby module (encountered memory write error). Wondering if this could be achieved via cli, even if using a 'backing' file to quick dump clipboard to filesystem before running code... Anyone tried anything like this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants