njpipeorgan / wolfram-language-notebook

Notebook support for Wolfram Language in VS Code
Apache License 2.0
159 stars 11 forks source link

No output from wolframscript #61

Open jskupin opened 7 months ago

jskupin commented 7 months ago

Describe the bug After starting an evaluation with wolframscript everything seems to initialize correctly:

[Mon, 05 Feb 2024 10:29:48 GMT] kernelIsRemote = false, kernelPort = 52906
[Mon, 05 Feb 2024 10:29:48 GMT] kernelInitPath = /Users/jochen/.vscode/extensions/njpipeorgan.wolfram-language-notebook-0.1.0/resources/init-compressed.txt
[Mon, 05 Feb 2024 10:29:48 GMT] kernelRenderInitPath = /Users/jochen/.vscode/extensions/njpipeorgan.wolfram-language-notebook-0.1.0/resources/render-html.wl
[Mon, 05 Feb 2024 10:29:48 GMT] launchCommand = /Applications/Wolfram Engine.app/Contents/Resources/Wolfram Player.app/Contents/MacOS/wolframscript
[Mon, 05 Feb 2024 10:29:48 GMT] launchArguments = -code,ToExpression["zmqPort=52906;"<>Uncompress["1:eJy9PA1X27iy96e4gsMBrkJJ+7bvHSB54fOWu0ApSXfvWdcLJhHEi2OnttNCQ/afvf/2ZvRhS7IdUtpddimJJY1Go9F8yy+u44vu/7n/+MfqurO1de737/xbtrXlrK993Gy+wl/e0GX9LIijvGF1/
[Mon, 05 Feb 2024 10:29:50 GMT] Received the following data from kernel:
[Mon, 05 Feb 2024 10:29:50 GMT] <INITIALIZATION STARTS>
[Mon, 05 Feb 2024 10:29:51 GMT] Received the following data from kernel:
[Mon, 05 Feb 2024 10:29:51 GMT] $CommandLine={/Applications/Wolfram Engine.app/Contents/Resources/Wolfram Player.app/Contents/MacOS/WolframKernel, -runfirst, Unprotect[$EvaluationEnvironment];$EvaluationEnvironment="Script";Protect[$EvaluationEn$ScriptCommandLine={/Applications/Wolfram Engine.app/Contents/Resources/Wolfram Player.app/Contents/MacOS/wolframscript, -code, ToExpression["zmqPort=52906;"<>Uncompress["1:eJy9PA1X27iy96e4gsMBrkJJ+7bvHSB54fOWu0ApSXfvWd
[Mon, 05 Feb 2024 10:29:51 GMT] Received the following data from kernel:
[Mon, 05 Feb 2024 10:29:51 GMT] Using the following command to launch the subkernel process:
[Mon, 05 Feb 2024 10:29:51 GMT] Received the following data from kernel:
[Mon, 05 Feb 2024 10:29:51 GMT] /Applications/Wolfram Engine.app/Contents/Resources/Wolfram Player.app/Contents/MacOS/WolframKernel -noicon -wstp -linkprotocol SharedMemory -linkmode connect -linkname zteqxmg164pmb7av
[Mon, 05 Feb 2024 10:29:53 GMT] Received the following data from kernel:
[Mon, 05 Feb 2024 10:29:53 GMT] Subkernel launched; $preemptive=LinkObject[6phwkmgumlz4r77a, 195, 3], $processID=58499
[Mon, 05 Feb 2024 10:29:54 GMT] Received the following data from kernel:
[Mon, 05 Feb 2024 10:29:54 GMT] [address tcp://127.0.0.1:52906]

[Mon, 05 Feb 2024 10:29:54 GMT] Received the following data from kernel:
[Mon, 05 Feb 2024 10:29:54 GMT] <INITIALIZATION ENDS>
[Mon, 05 Feb 2024 10:29:54 GMT] Received the following test message from kernel:
[Mon, 05 Feb 2024 10:29:54 GMT] {"type":"test","text":"299870655","version":"13.2.0 for Mac OS X x86 (64-bit) (November 18, 2022)"}

But at this point it gets stuck and the evaluation runs forever without returning a result until I quit the kernel manually.

Expected behavior Return of the evaluation result.

Screenshots

Evaluation_runs_forever

Environment (please complete the following information):

Additional context

amindanial commented 6 months ago

version 0.1.1 does not connect with Wolfram Engine version 14.0 at all. image