Since the changes to auto path for Sonic PI and ruby I have had problems with my mac install. When I press f5 it starts to try and run but I get the error Activating extension 'Luis Lloret.sonicpieditor' failed: Cannot read property 'forEach' of null.
which is not particularly helpful. I’m a newbie to the the vscode interface and not found out (yet) how to sort this. I’ve moved my Sonic PI so that it is in the Applications folder and I think the paths are correct.
Not sure where I sepcify what the start method is (and whether that is the problem?) Where is this changed?
I updated and ran again with the same problem. I set a breakpoint in main.ts line 103 and looked at local variables. It seems to be using the original value wher I previously had sonic pi installed but it is moved from their to Applications and renamed to Sonic Pi
How do I clear any data from previous runs and get it to re-evaluate.
eg for FetchUrlPath it had:
"/Users/rbn/Downloads/Sonic Pi 3.2.2release.app/Contents/Resources/app/server/ruby/bin/fetch-url.rb"
Thanks for your answer and for your work.
No line appears to put the correct path but maybe this issue is due to my visual code version (visual code insiders). Maybe not the latest. I’ll try again tonight.
TBH, I am not putting as much time as I would like into this at the moment because of work and family commitments, but anything that you would like to contribute would be fantastic. Hopefully I will be able to get back to this at some point in the near future.
I would put this in the Extensions Marketplace once that we get it to a point where we think it has enough features, and they are stable enough for more people to jump in. What I would not want is that we put in there something half-baked, and people run away from it ;).
Just tried to run Sonic Pi in Visual Studio Code 1.72.2 under Windows 10. The well used extension “Sonic Pi” from Jackson Kearl did not work with the newest version of Sonic Pi 4.3.0, probably because file names and paths changed. I got it to work with “Sonic Pi Extension” from s00500 directly installed from the Extensions Marketplace. This extension is a preview and not very stable yet. But combined with the Jupyter-Extension I was able to make a Jupyter notebook tutorial for Sonic Pi with code that can be directly played within the notebook.
The tutorial can be found in GitHub, it is in German and a work of progress.
Unfortunately the sound is not as good as in the Sonic Pi IDE, especially with longer and more complicated code blocks the sound is distorted. Does anyone have the same problem with distorted sound in Visual Studio Code?