sonic-pi-vscode-editor icon indicating copy to clipboard operation
sonic-pi-vscode-editor copied to clipboard

Needs updating to work with Sonic-PI 4.x

Open andrewcrook opened this issue 3 years ago • 6 comments

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 ......

andrewcrook avatar Dec 15 '22 16:12 andrewcrook

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

elileinkram avatar Feb 07 '23 13:02 elileinkram

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

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

fredlemieux avatar Mar 21 '23 16:03 fredlemieux

Thanks hopefully it will be pulled back into the original

andrewcrook avatar Mar 21 '23 19:03 andrewcrook

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!

jonnyhotchkiss avatar Nov 29 '23 14:11 jonnyhotchkiss

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

andrewcrook avatar Nov 29 '23 19:11 andrewcrook

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?

jonnyhotchkiss avatar Nov 30 '23 21:11 jonnyhotchkiss