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

Failure to get running in Windows #3

Closed
auphofBSF opened this issue May 26, 2020 · 8 comments
Closed

Failure to get running in Windows #3

auphofBSF opened this issue May 26, 2020 · 8 comments

Comments

@auphofBSF
Copy link

I am sorry this extension is failing to work for me. SonicPi is installed fresh and is working correctly. the extension appears to launch somewhat correctly, recognises the ruby file but does not appear do anything when I press alt R. I am also considering that the startup of scsynth is not complete. What I find odd is that I have to have jackd running if I fail to have this running see the additional error log below. this is not required when I run the Sonicpi IDE app. For a test I am just using play 70 as the ruby script. Look forward to getting your extension working thank you.
Happy to assist in any further debugging if you can point me to where to look !

Platform: windows 10.0.18363 Build 18363
Extension Sonic-pi-vscode-editor: commit: 7d0f522

The following are the logs and developer tool console session images at

1) Initial Extension Execution (F5)

image

log(extension host)

[2020-05-26 18:47:56.575] [exthost] [info] extension host started
[2020-05-26 18:47:56.704] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {"startup":true,"extensionId":{"value":"vscode.debug-auto-launch","_lower":"vscode.debug-auto-launch"},"activationEvent":"*"}
[2020-05-26 18:47:56.704] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/debug-auto-launch/dist/extension
[2020-05-26 18:47:56.714] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {"startup":true,"extensionId":{"value":"vscode.emmet","_lower":"vscode.emmet"},"activationEvent":"*"}
[2020-05-26 18:47:56.714] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/emmet/dist/extension
[2020-05-26 18:47:56.789] [exthost] [info] ExtensionService#_doActivateExtension vscode.git {"startup":true,"extensionId":{"value":"vscode.git","_lower":"vscode.git"},"activationEvent":"*"}
[2020-05-26 18:47:56.789] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/git/dist/main
[2020-05-26 18:47:56.954] [exthost] [info] ExtensionService#_doActivateExtension vscode.github-authentication {"startup":true,"extensionId":{"value":"vscode.github-authentication","_lower":"vscode.github-authentication"},"activationEvent":"*"}
[2020-05-26 18:47:56.954] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/github-authentication/dist/extension.js
[2020-05-26 18:47:57.015] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict {"startup":true,"extensionId":{"value":"vscode.merge-conflict","_lower":"vscode.merge-conflict"},"activationEvent":"*"}
[2020-05-26 18:47:57.015] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/merge-conflict/dist/extension
[2020-05-26 18:47:57.027] [exthost] [info] ExtensionService#_doActivateExtension vscode.search-result {"startup":true,"extensionId":{"value":"vscode.search-result","_lower":"vscode.search-result"},"activationEvent":"*"}
[2020-05-26 18:47:57.028] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/search-result/dist/extension.js
[2020-05-26 18:47:57.034] [exthost] [info] ExtensionService#_doActivateExtension vscode.vscode-account {"startup":true,"extensionId":{"value":"vscode.vscode-account","_lower":"vscode.vscode-account"},"activationEvent":"*"}
[2020-05-26 18:47:57.034] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/vscode-account/dist/extension.js
[2020-05-26 18:47:57.085] [exthost] [info] ExtensionService#_doActivateExtension dbaeumer.vscode-eslint {"startup":true,"extensionId":{"value":"dbaeumer.vscode-eslint","_lower":"dbaeumer.vscode-eslint"},"activationEvent":"*"}
[2020-05-26 18:47:57.085] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/BSFau/.vscode/extensions/dbaeumer.vscode-eslint-2.1.5/client/out/extension
[2020-05-26 18:47:57.154] [exthost] [info] ExtensionService#_doActivateExtension donjayamanne.githistory {"startup":true,"extensionId":{"value":"donjayamanne.githistory","_lower":"donjayamanne.githistory"},"activationEvent":"*"}
[2020-05-26 18:47:57.154] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/BSFau/.vscode/extensions/donjayamanne.githistory-0.6.5/dist/src/extension
[2020-05-26 18:47:57.371] [exthost] [info] ExtensionService#_doActivateExtension Gruntfuggly.todo-tree {"startup":true,"extensionId":{"value":"Gruntfuggly.todo-tree","_lower":"gruntfuggly.todo-tree"},"activationEvent":"*"}
[2020-05-26 18:47:57.371] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/BSFau/.vscode/extensions/gruntfuggly.todo-tree-0.0.176/extension
[2020-05-26 18:47:57.528] [exthost] [info] ExtensionService#_doActivateExtension ivanhofer.git-assistant {"startup":true,"extensionId":{"value":"ivanhofer.git-assistant","_lower":"ivanhofer.git-assistant"},"activationEvent":"*"}
[2020-05-26 18:47:57.528] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/BSFau/.vscode/extensions/ivanhofer.git-assistant-1.3.3/dist/extension
[2020-05-26 18:47:57.562] [exthost] [info] ExtensionService#_doActivateExtension mdickin.markdown-shortcuts {"startup":true,"extensionId":{"value":"mdickin.markdown-shortcuts","_lower":"mdickin.markdown-shortcuts"},"activationEvent":"*"}
[2020-05-26 18:47:57.562] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/BSFau/.vscode/extensions/mdickin.markdown-shortcuts-0.12.0/extension
[2020-05-26 18:47:57.583] [exthost] [info] ExtensionService#_doActivateExtension streetsidesoftware.code-spell-checker {"startup":true,"extensionId":{"value":"streetsidesoftware.code-spell-checker","_lower":"streetsidesoftware.code-spell-checker"},"activationEvent":"*"}
[2020-05-26 18:47:57.583] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/BSFau/.vscode/extensions/streetsidesoftware.code-spell-checker-1.9.0/dist/extension
[2020-05-26 18:47:57.687] [exthost] [info] ExtensionService#_doActivateExtension zhoufeng.pyqt-integration {"startup":true,"extensionId":{"value":"zhoufeng.pyqt-integration","_lower":"zhoufeng.pyqt-integration"},"activationEvent":"*"}
[2020-05-26 18:47:57.687] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/BSFau/.vscode/extensions/zhoufeng.pyqt-integration-0.2.0/out/extension
[2020-05-26 18:47:57.830] [exthost] [info] ExtensionService#_doActivateExtension vscode.npm {"startup":true,"extensionId":{"value":"vscode.npm","_lower":"vscode.npm"},"activationEvent":"workspaceContains:package.json"}
[2020-05-26 18:47:57.830] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Program Files/Microsoft VS Code/resources/app/extensions/npm/dist/main
[2020-05-26 18:47:57.866] [exthost] [info] ExtensionService#_doActivateExtension alexkrechik.cucumberautocomplete {"startup":true,"extensionId":{"value":"alexkrechik.cucumberautocomplete","_lower":"alexkrechik.cucumberautocomplete"},"activationEvent":"workspaceContains:.vscode/settings.json"}
[2020-05-26 18:47:57.866] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/BSFau/.vscode/extensions/alexkrechik.cucumberautocomplete-2.14.1/out/src/extension
[2020-05-26 18:47:58.012] [exthost] [info] ExtensionService#_doActivateExtension yzhang.markdown-all-in-one {"startup":true,"extensionId":{"value":"yzhang.markdown-all-in-one","_lower":"yzhang.markdown-all-in-one"},"activationEvent":"workspaceContains:README.md"}
[2020-05-26 18:47:58.012] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/BSFau/.vscode/extensions/yzhang.markdown-all-in-one-3.0.0/dist/extension
[2020-05-26 18:47:58.275] [exthost] [info] ExtensionService#_doActivateExtension jebbs.plantuml {"startup":false,"extensionId":{"value":"yzhang.markdown-all-in-one","_lower":"yzhang.markdown-all-in-one"},"activationEvent":"api"}
[2020-05-26 18:47:58.275] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/BSFau/.vscode/extensions/jebbs.plantuml-2.13.11/out/src/extension
[2020-05-26 18:47:59.220] [exthost] [warning] [yzhang.markdown-all-in-one] Accessing a window scoped configuration for a resource is not expected. To associate 'markdown.extension.katex.macros' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
[2020-05-26 18:47:59.304] [exthost] [info] eager extensions activated
[2020-05-26 18:48:01.183] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:01.183] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:01.183] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:01.183] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:01.183] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:01.183] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:01.183] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:01.183] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:01.183] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:01.183] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:01.184] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.347] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\SonicPi\\Trial20w22a: 'c:\\Users\\BSFau\\Cloudstation\\SonicPi\\Trial20w22a' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.347] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\SonicPi\\Trial20w22a: 'c:\\Users\\BSFau\\Cloudstation\\SonicPi\\Trial20w22a' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.347] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\SonicPi\\Trial20w22a: 'c:\\Users\\BSFau\\Cloudstation\\SonicPi\\Trial20w22a' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.347] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\SonicPi\\Trial20w22a: 'c:\\Users\\BSFau\\Cloudstation\\SonicPi\\Trial20w22a' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.347] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\SonicPi\\Trial20w22a: 'c:\\Users\\BSFau\\Cloudstation\\SonicPi\\Trial20w22a' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.347] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\SonicPi\\Trial20w22a: 'c:\\Users\\BSFau\\Cloudstation\\SonicPi\\Trial20w22a' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.347] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\SonicPi\\Trial20w22a: 'c:\\Users\\BSFau\\Cloudstation\\SonicPi\\Trial20w22a' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.358] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.358] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.358] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.358] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.358] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.358] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.358] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.358] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.359] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.359] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}
[2020-05-26 18:48:02.359] [exthost] [error] {"message":"Git error","stdout":"","stderr":"fatal: c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor: 'c:\\Users\\BSFau\\Cloudstation\\BSFsoftDev\\axternal\\sonic-pi-vscode-editor' is outside repository\n","exitCode":128}

2) after test1.rb is loaded and alt-R is attempted

i have also attempted to run from command palette; SonicPi: Run

Log output: [Extension Development Host]

[GUI] - Cleaning old sessions...
[GUI] - Discovering port numbers...
stdout: Sonic Pi server booting...
This is version 3.2.0 running on Ruby 2.7.1.
The time is 2020-05-26 19:30:18 +1200
Using primary protocol: udp
Detecting port numbers...
Listen port: 51235
  - OK
Scsynth port: 51237
  - OK
Scsynth send port: 51237
  - OK
OSC cues port: 4560
  - OK
Erlang port: 51240
  - OK
OSC MIDI out port: 51238
  - OK
OSC MIDI in port: 51239
  - OK
Websocket port: 51241
  - OK
Opening UDP Server to listen to GUI on port: 51235

stdout: Started [35628] [-] "C:\Program Files\Sonic Pi\app\server\native\scsynth.exe" -u 51237 -m 131072 -a 1024 -D 0 -R 0 -l 1 -i 16 -o 16 -U "C:/Program Files/Sonic Pi/app/server/native/plugins/" -b 4096 -B 127.0.0.1 [-] C:/Users/BSFau/AppData/Local/Temp/sonic-pi-pids/35628


Console - [extension development host]
image

[2020-05-26 19:30:05.692] [exthost] [info] ExtensionService#_doActivateExtension Luis Lloret.sonicpieditor {"startup":false,"extensionId":{"value":"Luis Lloret.sonicpieditor","_lower":"luis lloret.sonicpieditor"},"activationEvent":"onLanguage:ruby"}
[2020-05-26 19:30:05.692] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/BSFau/Cloudstation/BSFsoftDev/axternal/sonic-pi-vscode-editor/out/extension.js
[2020-05-26 19:30:11.863] [exthost] [info] ExtensionService#_doActivateExtension rebornix.ruby {"startup":false,"extensionId":{"value":"rebornix.ruby","_lower":"rebornix.ruby"},"activationEvent":"onLanguage:ruby"}
[2020-05-26 19:30:11.863] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/BSFau/.vscode/extensions/rebornix.ruby-0.27.0/dist/client/ruby.js
[2020-05-26 19:30:12.168] [exthost] [warning] [rebornix.ruby] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for 'ruby.format', provide the URI of a resource or 'null' for any resource.

3) Error when JackD is not running

[GUI] - Cleaning old sessions...
[GUI] - Discovering port numbers...
stdout: Sonic Pi server booting...
This is version 3.2.0 running on Ruby 2.7.1.
The time is 2020-05-26 16:36:21 +1200
Using primary protocol: udp
Detecting port numbers...
Listen port: 51235
  - OK
Scsynth port: 51237
  - OK
Scsynth send port: 51237
  - OK
OSC cues port: 4560
  - OK
Erlang port: 51240
  - OK
OSC MIDI out port: 51238
  - OK
OSC MIDI in port: 51239
  - OK
Websocket port: 51241
  - OK
Opening UDP Server to listen to GUI on port: 51235
Started [22796] [-] "C:\Program Files\Sonic Pi\app\server\native\scsynth.exe" -u 51237 -m 131072 -a 1024 -D 0 -R 0 -l 1 -i 16 -o 16 -U "C:/Program Files/Sonic Pi/app/server/native/plugins/" -b 4096 -B 127.0.0.1 [-] C:/Users/BSFau/AppData/Local/Temp/sonic-pi-pids/22796
stderr: Cannot connect to named pipe after wait = \\.\pipe\server_jack_default_0 err = 2
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
stdout: Started [21604] [-] "C:/Program Files/Sonic Pi/app/server/native/erlang/bin/erl.exe" -noshell -pz "C:/Program Files/Sonic Pi/app/server/erlang" -s pi_server start 51240 4560 51235 [-] C:/Users/BSFau/AppData/Local/Temp/sonic-pi-pids/21604

@llloret
Copy link
Owner

llloret commented May 26, 2020

Thank you for taking the time to report this issue, @auphofBSF . I am not using Jack on Windows, so not sure what the issue can be. Is it possible that you are having this reported issue with jack on Windows and Supercolllider: jackaudio/jack2#380?

Would it be possible to try to uninstall jack and see if that works?

Thanks again,
Luis

@auphofBSF
Copy link
Author

Thank you @llloret for that relevant flaged issue. Just to Note Supercollider is working fine. I am using it with Foxdot and so is SonicPi, all with or/and with out a running portaudio and Jackd (ver1.9.13). I have however not been using Supercollider through Jackd, I will try this and I will try and setup on another relatively clean machine SonicPi, vscode and your Extension with out jack.

@auphofBSF
Copy link
Author

auphofBSF commented May 26, 2020

Whilst that jackd issue may have a part to play, I am noting that on a second attempt to run the extension, scsynth.exe is spawned and so is erl.exe, there is a valid log file for each in this.sonicPiHomePath() + "/.sonic-pi/logs

When running Sonic Pi (app) it logs in this.sonicPiHomePath() + "/.sonic-pi/logs/server-output,log" . I have used this as comparison
When running the extension in the console output log it show that scsynth and erl are running, but the osmid bridge does not get started - no o2m or m2o, should I be seeing these ?

So I'm thinking something is failing in the Sonic Pi Server Runtime startup spawned by startRubyServer(), it does not appear to be scsynth, any clues ?

@llloret
Copy link
Owner

llloret commented May 26, 2020

Seems like the server booting needs some more work to be completely stable. We'll look into it.

@llloret
Copy link
Owner

llloret commented May 26, 2020

@auphofBSF, can you try something?

If you have the latest official version 3.2.0, go to where you have installed sonic-pi and then open the file .../app/server/ruby/lib/sonic-pi/util.rb and change lines 594 AND 601 from

Process.wait pid to

Process.wait(pid, Process::WNOHANG)

Make a backup copy of the file first! If you have another Sonic Pi version, the line numbers may not match... in that case, look for the functions register_process and kill_and_deregister_process and make the change.

In my local installation I have seen that with the original version, sometimes it fails to boot, where with the WNOHANG, it boots properly every time. I am not sure why it works as is with the original editor, but perhaps timing is involved....

Let me know if that works.

@llloret
Copy link
Owner

llloret commented May 26, 2020

In fact, looking at this, it is already like that in Sonic Pi's master branch...

@auphofBSF
Copy link
Author

Success!! that worked Process.wait(pid, Process::WNOHANG) .
I Installed sonicpi from https://sonic-pi.net/files/releases/v3.2.2/sonic-pi-for-win-x64-v3.2.2.msi . This obviously is slightly behind the repo.

I have not looked into the logistics of building sonicpi from the repo. Possibly a note in this extensions requirements on how to install /build from the latest repo.
Thanks for responding to this issue so fast with a positive outcome , good luck with this extension,

Sonicpis ide is good but having a more comprehensive IDE to drive sonicpi is great. I know @samaaron philosophy of keeping a simple and good experience to first time users certainly works and is admirably executed.
However for those that want to take this further having an extension to a solid IDE will bring in people from the top and move people from the bottom further.
I put SonicPi aside because I could not use my shortcuts for commenting and decided to use Foxdot under Atom instead. This extension is the gamechanger! Now I will have to look deeper.

Look forward to seeing how this extension evolves and if some or all of the elements of sonicpi's IDE can be incorporated.

@llloret
Copy link
Owner

llloret commented May 27, 2020

Great to know that this fixed the problem for you.

And thank you for your feedback. It is very encouraging to know that this effort might make some people come back to Sonic Pi or might bring some new ones.

I have already added some fx snippets from Sonic Pi, and planning to add more snippets and other things very soon. Stay tuned :).

@llloret llloret closed this as completed May 27, 2020
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

2 participants