microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.26k stars 275 forks source link

IHaskell Kernel Issue in Jupyter Notebook (.ipynb files) #15579

Open jjunho opened 3 months ago

jjunho commented 3 months ago

Applies To

What happened?

Cell processing doesn't stop after running the code in the cell. The counter keeps increasing and the processing never goes to the next cell.

It's been happening for some months now. I've been waiting to see if it gets fixed but it hasn't. As I don't use haskell much, I haven't payed attention to exactly when it started happening. I tried to clean the cache, create a new profile and install only the files needed for jupyter and haskell but the issue persists. It just worked out when I used Code OSS with the following command line: code --enable-proposed-api ms-python.python --enable-proposed-api ms-toolsai.jupyter. The kernel works fine with Jupyter Notebook and Jupyter Lab.

I'm using Manjaro (fully updated as of 2024-04-21).

Steps:

VS Code Version

1.88.1

Jupyter Extension Version

v2024.3.1

Jupyter logs

Visual Studio Code (1.88.1, undefined, desktop)
Jupyter Extension Version: 2024.3.1.
Python Extension Version: 2024.4.1.
Pylance Extension Version: 2024.4.1.
Platform: linux (x64).
No workspace folder opened.
17:43:37.879 [error] Failed to validate Password info [D [FetchError]: request to http://127.0.0.1:8888/tree? failed, reason: connect ECONNREFUSED 127.0.0.1:8888
    at ClientRequest.<anonymous> (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/node-fetch.js:1:306479)
    at ClientRequest.emit (node:events:517:28)
    at Socket.socketErrorListener (node:_http_client:501:9)
    at Socket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
17:43:37.922 [error] Error fetching kernels from http://127.0.0.1:8888/ (docker): [FetchError: request to http://127.0.0.1:8888/api/kernels?1713689017908 failed, reason: connect ECONNREFUSED 127.0.0.1:8888
    at ClientRequest.<anonymous> (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/node-fetch.js:1:306479)
    at ClientRequest.emit (node:events:517:28)
    at Socket.socketErrorListener (node:_http_client:501:9)
    at Socket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
17:43:37.923 [error] Jupyter Lab Helper:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
    at v.dispose (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
    at ni.dispose (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
    at r.dispose (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/extension.node.js:198:13704)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async w_.listKernelsFromConnection (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/extension.node.js:312:20211)
    at async ~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/extension.node.js:312:17636]
17:43:38.128 [error] Failed to validate Password info [D [FetchError]: request to http://localhost:8888/tree? failed, reason: connect ECONNREFUSED 127.0.0.1:8888
    at ClientRequest.<anonymous> (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/node-fetch.js:1:306479)
    at ClientRequest.emit (node:events:517:28)
    at Socket.socketErrorListener (node:_http_client:501:9)
    at Socket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
17:43:38.148 [error] Failed to validate Password info [D [FetchError]: request to http://127.0.0.1:8888/tree? failed, reason: connect ECONNREFUSED 127.0.0.1:8888
    at ClientRequest.<anonymous> (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/node-fetch.js:1:306479)
    at ClientRequest.emit (node:events:517:28)
    at Socket.socketErrorListener (node:_http_client:501:9)
    at Socket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
17:43:38.170 [error] Error fetching kernels from http://localhost:8888/ (localhost): [FetchError: request to http://localhost:8888/api/kernels?1713689018129 failed, reason: connect ECONNREFUSED 127.0.0.1:8888
    at ClientRequest.<anonymous> (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/node-fetch.js:1:306479)
    at ClientRequest.emit (node:events:517:28)
    at Socket.socketErrorListener (node:_http_client:501:9)
    at Socket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
17:43:38.171 [error] Jupyter Lab Helper:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
    at v.dispose (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
    at ni.dispose (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
    at r.dispose (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/extension.node.js:198:13704)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async w_.listKernelsFromConnection (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/extension.node.js:312:20211)
    at async ~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/extension.node.js:312:17636]
17:43:38.172 [error] Error fetching kernels from http://127.0.0.1:8888/ (docker): [FetchError: request to http://127.0.0.1:8888/api/kernels?1713689018149 failed, reason: connect ECONNREFUSED 127.0.0.1:8888
    at ClientRequest.<anonymous> (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/node-fetch.js:1:306479)
    at ClientRequest.emit (node:events:517:28)
    at Socket.socketErrorListener (node:_http_client:501:9)
    at Socket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
17:43:38.172 [error] Jupyter Lab Helper:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
    at v.dispose (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
    at ni.dispose (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
    at r.dispose (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/extension.node.js:198:13704)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async w_.listKernelsFromConnection (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/extension.node.js:312:20211)
    at async ~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/extension.node.js:312:17636]
17:43:38.172 [error] UniversalRemoteKernelFinder: Failed to get kernels without cache [FetchError: request to http://127.0.0.1:8888/api/kernels?1713689018149 failed, reason: connect ECONNREFUSED 127.0.0.1:8888
    at ClientRequest.<anonymous> (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/node-fetch.js:1:306479)
    at ClientRequest.emit (node:events:517:28)
    at Socket.socketErrorListener (node:_http_client:501:9)
    at Socket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
17:43:38.195 [info] Starting Kernel startUsingPythonInterpreter, .jvsc74a57bd0767d51c1340bd893661ea55ea3124f6de3c7a262a8b4abca0554b478b1e2ff90./usr/bin/python./usr/bin/python.-m#ipykernel_launcher  (Python Path: /usr/bin/python, Unknown, Python 3.11.8, 3.11.8) for '~/Nextcloud/julibee/N4/md/M9/m9-m15.ipynb' (disableUI=true)
17:43:38.228 [error] Failed to validate Password info [D [FetchError]: request to http://localhost:8888/tree? failed, reason: connect ECONNREFUSED 127.0.0.1:8888
    at ClientRequest.<anonymous> (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/node-fetch.js:1:306479)
    at ClientRequest.emit (node:events:517:28)
    at Socket.socketErrorListener (node:_http_client:501:9)
    at Socket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  type: 'system',
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED'
}
17:43:38.258 [error] Error fetching kernels from http://localhost:8888/ (localhost): [FetchError: request to http://localhost:8888/api/kernels?1713689018229 failed, reason: connect ECONNREFUSED 127.0.0.1:8888
    at ClientRequest.<anonymous> (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/node-fetch.js:1:306479)
    at ClientRequest.emit (node:events:517:28)
    at Socket.socketErrorListener (node:_http_client:501:9)
    at Socket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
17:43:38.259 [error] Jupyter Lab Helper:getKernelSpecs failure:  [Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
    at v.dispose (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/@jupyterlab/services.js:11:10935)
    at ni.dispose (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/@jupyterlab/services.js:11:29299)
    at r.dispose (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/extension.node.js:198:13704)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async w_.listKernelsFromConnection (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/extension.node.js:312:20211)
    at async ~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/extension.node.js:312:17636]
17:43:38.259 [error] UniversalRemoteKernelFinder: Failed to get kernels without cache [FetchError: request to http://localhost:8888/api/kernels?1713689018229 failed, reason: connect ECONNREFUSED 127.0.0.1:8888
    at ClientRequest.<anonymous> (~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/dist/node_modules/node-fetch.js:1:306479)
    at ClientRequest.emit (node:events:517:28)
    at Socket.socketErrorListener (node:_http_client:501:9)
    at Socket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)]
17:43:38.348 [warn] Failed to get activated env vars for /usr/bin/python in 154ms
17:43:38.354 [info] Process Execution: /usr/bin/python -c "import site;print("USER_BASE_VALUE");print(site.USER_BASE);print("USER_BASE_VALUE");"
17:43:38.357 [warn] Failed to get activated env vars for /usr/bin/python in 141ms
17:43:38.380 [info] Process Execution: /usr/bin/python -m pip list
17:43:38.385 [info] Process Execution: /usr/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
17:43:38.390 [info] Process Execution: /usr/bin/python -m ipykernel_launcher --f=~/.local/share/jupyter/runtime/kernel-v2-34468wYcIgr9Etjer.json
    > cwd: ~/Nextcloud/julibee/N4/md/M9
17:43:38.866 [warn] StdErr from Kernel Process [IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled
17:48:22.873 [info] No interpreter for Pylance for Notebook URI "Untitled-1.ipynb"
17:48:22.945 [warn] Failed to get activated env vars for /usr/bin/python in 44ms
17:48:22.950 [info] Process Execution: /usr/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2024.3.1-linux-x64/pythonFiles/printJupyterDataDir.py
17:48:52.328 [info] No interpreter for Pylance for Notebook URI "Untitled-1.ipynb"
17:48:52.329 [info] Starting Kernel startUsingLocalKernelSpec, .haskell.~/.local/bin/ihaskell./.~/.local/bin/ihaskell#kernel#{connection_file}#--ghclib#~/.ghcup/ghc/9.6.4/lib/ghc-9.6.4/lib#+rts#-m3g#-n2#-rts  for 'Untitled-1.ipynb' (disableUI=true)
17:48:52.352 [info] Launching Raw Kernel Haskell # ~/.local/bin/ihaskell
17:48:52.357 [info] Process Execution: ~/.local/bin/ihaskell kernel ~/.local/share/jupyter/runtime/kernel-v2-34468vG6OKuP94AoI.json --ghclib ~/.ghcup/ghc/9.6.4/lib/ghc-9.6.4/lib +RTS -M3g -N2 -RTS
    > cwd: ~
17:48:53.644 [warn] No nbextensions folder found for kernel .haskell.~/.local/bin/ihaskell./.~/.local/bin/ihaskell#kernel#{connection_file}#--ghclib#~/.ghcup/ghc/9.6.4/lib/ghc-9.6.4/lib#+rts#-m3g#-n2#-rts
17:48:53.645 [warn] Unhandled message found: kernel_info_reply
17:48:53.646 [warn] Unhandled message found: kernel_info_reply
17:49:09.729 [info] Handle Execution of Cells 0 for Untitled-1.ipynb

Coding Language and Runtime Version

Haskell

Language Extension Version (if applicable)

Haskell v2.4.3

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

Local

DonJayamanne commented 3 months ago

Please could you enable logging as follows:

VSCodeTriageBot commented 2 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

jjunho commented 2 months ago

Upon installing "Jupyter" and "Haskell" extensions, accompanied by their respective extensions, in a new profile, encountered an issue where cell execution in Jupyter files became unresponsive after executing a cell with the Haskell kernel. The cell timer and progress bar continued indefinitely, preventing the execution of subsequent cells.

Steps to Reproduce:

  1. Create a new profile.
  2. Install "Jupyter" and "Haskell" extensions.
  3. Open a new Jupyter file.
  4. Write code "1+1" in the first cell.
  5. Select "Haskell" as the kernel.
  6. Execute the cell.

Expected Behavior: After executing the cell with the Haskell kernel, the output should display promptly, and the cell timer and progress bar should stop, allowing the execution of subsequent cells.

Actual Behavior: Upon executing the cell with the Haskell kernel, the output displays correctly, but the cell timer and progress bar continue indefinitely. Subsequent cells cannot be executed as they wait for the first cell to complete execution. This renders the Jupyter file unresponsive.

Additional Information:

VSCode Environment:

Logging:

2024-05-06 14:40:55.691 [debug] [BacklayerWebview] untitled:Untitled-1.ipynb?jupyter-notebook (a54e6c87-7005-4208-9a63-93fac6511758) - Creating backlayer webview for notebook
2024-05-06 14:40:55.693 [debug] [NotebookEditorWidget] warmup untitled:Untitled-1.ipynb?jupyter-notebook
2024-05-06 14:40:55.761 [debug] [NotebookEditorWidget] warmup - webview resolved
2024-05-06 14:40:55.763 [debug] [NotebookEditorWidget] warmup - viewport warmed up
2024-05-06 14:40:55.772 [debug] [NotebookEditorWidget] warmup - list view model attached, set to visible
2024-05-06 14:40:55.805 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: undefined. Suggested: undefined
2024-05-06 14:40:55.805 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:40:55.879 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: undefined. Suggested: undefined
2024-05-06 14:40:55.879 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:40:56.032 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: undefined. Suggested: undefined
2024-05-06 14:40:56.032 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:41:01.821 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: undefined. Suggested: undefined
2024-05-06 14:41:01.821 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:41:01.931 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: undefined. Suggested: undefined
2024-05-06 14:41:01.931 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:41:02.833 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: Haskell. Suggested: undefined
2024-05-06 14:41:02.833 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:41:02.934 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: Haskell. Suggested: undefined
2024-05-06 14:41:02.934 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:41:07.725 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: Haskell. Suggested: undefined
2024-05-06 14:41:07.725 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:41:07.828 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: Haskell. Suggested: undefined
2024-05-06 14:41:07.828 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:41:08.088 [debug] [BacklayerWebview] untitled:Untitled-1.ipynb?jupyter-notebook (a54e6c87-7005-4208-9a63-93fac6511758) - [renderer vscode.builtin-renderer] - Start loading renderer
2024-05-06 14:41:08.094 [debug] [BacklayerWebview] untitled:Untitled-1.ipynb?jupyter-notebook (a54e6c87-7005-4208-9a63-93fac6511758) - [renderer vscode.builtin-renderer] - Imported renderer {
    "duration": "3.400000000372529ms"
}
2024-05-06 14:41:08.095 [debug] [BacklayerWebview] untitled:Untitled-1.ipynb?jupyter-notebook (a54e6c87-7005-4208-9a63-93fac6511758) - [renderer vscode.builtin-renderer] - Activated renderer {
    "duration": "3.699999999254942ms"
}
2024-05-06 14:41:08.096 [debug] [BacklayerWebview] untitled:Untitled-1.ipynb?jupyter-notebook (a54e6c87-7005-4208-9a63-93fac6511758) - [renderer vscode.builtin-renderer] - Activating dependant renderers {
    "dependents": "jupyter-notebook-built-in-renderer-hooks"
}
2024-05-06 14:41:08.096 [debug] [BacklayerWebview] untitled:Untitled-1.ipynb?jupyter-notebook (a54e6c87-7005-4208-9a63-93fac6511758) - [renderer jupyter-notebook-built-in-renderer-hooks] - Start loading renderer
2024-05-06 14:41:08.098 [debug] [BacklayerWebview] untitled:Untitled-1.ipynb?jupyter-notebook (a54e6c87-7005-4208-9a63-93fac6511758) - [renderer jupyter-notebook-built-in-renderer-hooks] - Imported renderer {
    "duration": "6.200000001117587ms"
}
2024-05-06 14:41:08.098 [debug] [BacklayerWebview] untitled:Untitled-1.ipynb?jupyter-notebook (a54e6c87-7005-4208-9a63-93fac6511758) - [renderer jupyter-notebook-built-in-renderer-hooks] - Activated renderer {
    "duration": "6.300000000745058ms"
}
2024-05-06 14:41:08.099 [debug] [BacklayerWebview] untitled:Untitled-1.ipynb?jupyter-notebook (a54e6c87-7005-4208-9a63-93fac6511758) - [renderer vscode.builtin-renderer] - Rendered output item {
    "id": "40a81bab-c19a-4c71-b215-e558c39f4569",
    "duration": "0.6999999992549419ms"
}
2024-05-06 14:41:08.197 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: Haskell. Suggested: undefined
2024-05-06 14:41:08.197 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:41:20.346 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: Haskell. Suggested: undefined
2024-05-06 14:41:20.347 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:44:01.138 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: Haskell. Suggested: undefined
2024-05-06 14:44:01.138 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:44:01.283 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: Haskell. Suggested: undefined
2024-05-06 14:44:01.283 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:47:40.109 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: Haskell. Suggested: undefined
2024-05-06 14:47:40.110 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:47:40.268 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: Haskell. Suggested: undefined
2024-05-06 14:47:40.268 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:49:23.960 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: Haskell. Suggested: undefined
2024-05-06 14:49:23.960 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:49:24.117 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: Haskell. Suggested: undefined
2024-05-06 14:49:24.117 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:50:07.078 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: Haskell. Suggested: undefined
2024-05-06 14:50:07.078 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:50:07.889 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: Haskell. Suggested: undefined
2024-05-06 14:50:07.889 [debug] [History] mru: 1 kernels in history, 1 registered already.
2024-05-06 14:50:08.047 [debug] [History] getMatchingKernels: 2 kernels available for Untitled-1.ipynb. Selected: Haskell. Suggested: undefined
2024-05-06 14:50:08.047 [debug] [History] mru: 1 kernels in history, 1 registered already.
DonJayamanne commented 2 months ago

Please could you enable logging as follows:

DonJayamanne commented 2 months ago

Use the command Jupyter: Show Output to get to the output panel.

jjunho commented 2 months ago

With "Haskell" kernel (ihaskell)

15:12:43.484 [debug] No interpreter for Pylance for Notebook URI "Untitled-1.ipynb"
15:12:43.518 [debug] No controller, hence notebook communications cannot be initialized for editor Untitled-1.ipynb
15:12:48.847 [debug] KernelProvider switched kernel to id = .haskell./home/~/.local/bin/ihaskell././home/~/.local/bin/ihaskell#kernel#{connection_file}#--ghclib#/home/~/.ghcup/ghc/9.6.4/lib/ghc-9.6.4/lib#+rts#-m3g#-n2#-rts#--stack
15:12:48.847 [debug] start the kernel, options.disableUI=true for Untitled-1.ipynb
15:12:48.848 [info] Starting Kernel startUsingLocalKernelSpec, .haskell./home/~/.local/bin/ihaskell././home/~/.local/bin/ihaskell#kernel#{connection_file}#--ghclib#/home/~/.ghcup/ghc/9.6.4/lib/ghc-9.6.4/lib#+rts#-m3g#-n2#-rts#--stack  for 'Untitled-1.ipynb' (disableUI=true)
15:12:48.848 [debug] Creating raw notebook for resource 'Untitled-1.ipynb'
15:12:48.851 [debug] Launching kernel .haskell./home/~/.local/bin/ihaskell././home/~/.local/bin/ihaskell#kernel#{connection_file}#--ghclib#/home/~/.ghcup/ghc/9.6.4/lib/ghc-9.6.4/lib#+rts#-m3g#-n2#-rts#--stack for Untitled-1.ipynb in /home/~ with ports 9001, 9000, 9004, 9002, 9003
15:12:48.851 [info] Launching Raw Kernel Haskell # /home/~/.local/bin/ihaskell
15:12:48.851 [debug] Create ProcessService, Class name = Bm (started execution), Arg 1: "Untitled-1.ipynb", Arg 2: {"a":false,"b":{"w":3,"u":{"i":-1,"end":0},"t":[{"id":1402},{"id":1403},null,{"id":1406}]}}
15:12:48.851 [debug] Cached data exists getEnvironmentVariables, Untitled-1.ipynb
15:12:48.852 [debug] Get Custom Env Variables, Class name = qm, completed in 1ms, has a truthy return value, Arg 1: "Untitled-1.ipynb", Arg 2: "RunNonPythonCode", Arg 3: {"a":false,"b":{"w":3,"u":{"i":-1,"end":0},"t":[{"id":1402},{"id":1403},null,{"id":1406}]}}
15:12:48.852 [debug] Create ProcessService, Class name = Bm, completed in 1ms, has a truthy return value, Arg 1: "Untitled-1.ipynb", Arg 2: {"a":false,"b":{"w":3,"u":{"i":-1,"end":0},"t":[{"id":1402},{"id":1403},null,{"id":1406}]}}
15:12:48.852 [debug] No custom variables nor do we have a conda environment
15:12:48.852 [debug] Kernel Env Variables for /home/~/.local/share/jupyter/kernels/haskell/kernel.json, PATH value is /home/~/.local/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
15:12:48.855 [info] Process Execution: ~/.local/bin/ihaskell kernel /home/~/.local/share/jupyter/runtime/kernel-v2-164166Wm6queQF7Hd.json --ghclib /home/~/.ghcup/ghc/9.6.4/lib/ghc-9.6.4/lib +RTS -M3g -N2 -RTS --stack
    > cwd: /home/~
15:12:48.855 [debug] Kernel process 17568.
15:12:48.856 [debug] Registering commtarget jupyter.widget
15:12:48.856 [debug] Controller selection change completed
15:12:48.856 [debug] Version of IPyWidgets 7 determined after 0s
15:12:49.058 [debug] Waiting for Raw Session to be ready in postStartRawSession
15:12:49.058 [debug] Waiting for Raw session to be ready, status: connected
15:12:49.058 [debug] Raw session connected
15:12:49.058 [debug] Waiting for Raw session to be ready
15:12:49.058 [debug] Waited for Raw session to be ready & got status: connected
15:12:49.058 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
15:12:49.058 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
15:12:49.058 [debug] Sending request for kernelInfo
15:12:49.391 [debug] Web view is ready to receive widget messages
15:12:49.559 [debug] Did not get a response for requestKernelInfo
15:12:49.559 [debug] Sending request for kernelInfo
15:12:50.059 [debug] Did not get a response for requestKernelInfo
15:12:50.059 [debug] Sending request for kernelInfo
15:12:50.162 [debug] Got response for requestKernelInfo
15:12:50.162 [debug] Successfully completed postStartRawSession after 3 attempt(s) in 1104ms
15:12:50.163 [debug] Started running kernel initialization for Untitled-1.ipynb
15:12:50.163 [debug] Requesting Kernel info
15:12:50.163 [debug] Got Kernel info
15:12:50.163 [debug] End running kernel initialization, now waiting for idle
15:12:50.163 [debug] Waiting for idle on (kernel): d565c9f5-5bd7-48d4-b312-1e5c10c8eb75 -> busy
15:12:50.164 [debug] Got status idle in waitForIdleOnSession
15:12:50.164 [debug] Finished waiting for idle on (kernel): d565c9f5-5bd7-48d4-b312-1e5c10c8eb75 -> idle
15:12:50.164 [debug] End running kernel initialization, session is idle
15:12:50.164 [warn] Kernel completions not enabled for 'Haskell'. 
To enable Kernel completion for this language please add the following setting 
jupyter.completionTriggerCharacters = {haskell: [<List of characters that will trigger completions>]}. 
For more information please see https://aka.ms/vscodeJupyterCompletion
15:12:50.164 [debug] IPyWidgetScriptSource.initialize
15:12:50.164 [warn] No nbextensions folder found for kernel .haskell./home/~/.local/bin/ihaskell././home/~/.local/bin/ihaskell#kernel#{connection_file}#--ghclib#/home/~/.ghcup/ghc/9.6.4/lib/ghc-9.6.4/lib#+rts#-m3g#-n2#-rts#--stack
15:12:50.165 [warn] Unhandled message found: kernel_info_reply
15:12:50.165 [warn] Unhandled message found: kernel_info_reply
15:12:50.173 [debug] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
15:12:50.175 [debug] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
15:12:51.615 [info] Handle Execution of Cells 0 for Untitled-1.ipynb
15:12:51.615 [debug] Cell Index:0 sent to kernel
15:12:51.617 [debug] Start cell 0 execution @ 1714975971617 (clear output)
15:12:51.617 [debug] Kernel acknowledged execution of cell 0 @ 1714975971617

With "Python 3.11.8" kernel (no problem at all):

15:11:27.027 [debug] No interpreter for Pylance for Notebook URI "Untitled-1.ipynb"
15:11:27.056 [debug] No controller, hence notebook communications cannot be initialized for editor Untitled-1.ipynb
15:11:33.256 [debug] KernelProvider switched kernel to id = .jvsc74a57bd0e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a./bin/python./bin/python.-m#ipykernel_launcher
15:11:33.257 [debug] start the kernel, options.disableUI=true for Untitled-1.ipynb
15:11:33.257 [debug] Registering commtarget jupyter.widget
15:11:33.258 [debug] Controller selection change completed
15:11:33.258 [info] Starting Kernel startUsingPythonInterpreter, .jvsc74a57bd0e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a./bin/python./bin/python.-m#ipykernel_launcher  (Python Path: /bin/python, Unknown, Python 3.11.8, 3.11.8) for 'Untitled-1.ipynb' (disableUI=true)
15:11:33.259 [debug] Creating raw notebook for resource 'Untitled-1.ipynb'
15:11:33.260 [debug] Get Custom Env Variables, Class name = qm, completed in 0ms, has a truthy return value, Arg 1: "Untitled-1.ipynb", Arg 2: "RunPythonCode"
15:11:33.263 [debug] Launching kernel .jvsc74a57bd0e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a./bin/python./bin/python.-m#ipykernel_launcher for Untitled-1.ipynb in /home/~ with ports 9001, 9000, 9004, 9002, 9003
15:11:33.267 [warn] Failed to get activated env vars for /bin/python in 7ms
15:11:33.268 [debug] Prepend PATH with user site path for /bin/python, user site /home/~/.local/bin
15:11:33.268 [debug] Prepend PATH with python bin for /bin/python
15:11:33.268 [debug] Activated Env Variables for /bin/python, 
    PATH value is /bin:/home/~/.local/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/~/.local/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl and 
    Path value is undefined
15:11:33.268 [debug] Getting activated env variables, Class name = kp, completed in 8ms, has a truthy return value, Arg 1: "Untitled-1.ipynb", Arg 2: "/bin/python", Arg 3: undefined
15:11:33.271 [info] Process Execution: /bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
15:11:33.271 [debug] Kernel Env Variables for /home/~/.vscode/extensions/ms-toolsai.jupyter-2024.4.0-linux-x64/temp/jupyter/kernels/python3118jvsc74a57bd0e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a/kernel.json, PATH value is /bin:/home/~/.local/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/~/.local/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
15:11:33.275 [info] Process Execution: /bin/python -m ipykernel_launcher --f=/home/~/.local/share/jupyter/runtime/kernel-v2-16416hBNvMlXfrFln.json
    > cwd: /home/~
15:11:33.276 [debug] Kernel process 17473.
15:11:33.417 [debug] ipykernel version & path 6.29.3, /usr/lib/python3.11/site-packages/ipykernel/__init__.py for /bin/python
15:11:33.545 [debug] Kernel output 17473: To connect another client to this kernel, use:
--existing kernel-v2-16416hBNvMlXfrFln.json
15:11:33.571 [debug] KernelProcess error 17473: [IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

15:11:33.680 [debug] Waiting for Raw Session to be ready in postStartRawSession
15:11:33.680 [debug] Waiting for Raw session to be ready, status: connected
15:11:33.680 [debug] Raw session connected
15:11:33.680 [debug] Waiting for Raw session to be ready
15:11:33.680 [debug] Waited for Raw session to be ready & got status: connected
15:11:33.680 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
15:11:33.680 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
15:11:33.680 [debug] Sending request for kernelInfo
15:11:33.683 [debug] Got response for requestKernelInfo
15:11:33.683 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 3ms
15:11:33.684 [debug] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
15:11:33.689 [debug] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
15:11:33.690 [debug] Started running kernel initialization for Untitled-1.ipynb
15:11:33.690 [debug] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
15:11:33.726 [debug] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s)
15:11:33.726 [debug] Determined IPyWidgets Version as 8
15:11:33.726 [debug] Version of IPyWidgets 8 determined after 0.469s
15:11:33.726 [debug] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None):
15:11:33.735 [debug] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callback, data=None): with 0 output(s)
15:11:33.735 [debug] Requesting Kernel info
15:11:33.735 [debug] Got Kernel info
15:11:33.735 [debug] End running kernel initialization, now waiting for idle
15:11:33.735 [debug] Waiting for idle on (kernel): 8bd30510-378c-484e-a361-ee60433877a7 -> idle
15:11:33.735 [debug] Finished waiting for idle on (kernel): 8bd30510-378c-484e-a361-ee60433877a7 -> idle
15:11:33.736 [debug] End running kernel initialization, session is idle
15:11:33.736 [debug] Registering Kernel Completion Provider from kernel Python 3.11.8 for language python
15:11:33.736 [debug] IPyWidgetScriptSource.initialize
15:11:34.251 [debug] Web view is ready to receive widget messages
15:11:34.256 [debug] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
15:11:34.256 [debug] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
15:11:34.264 [debug] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net/home/~/.vscode/extensions/ms-toolsai.jupyter-2024.4.0-linux-x64/temp/scripts/5025d6a5c4df71f4502a853d7f80a37d8be0228745293b0e528bc4850f83a169/jupyter
15:11:34.265 [debug] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
15:11:34.265 [debug] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
15:11:34.265 [debug] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net/home/~/.vscode/extensions/ms-toolsai.jupyter-2024.4.0-linux-x64/temp/scripts/5025d6a5c4df71f4502a853d7f80a37d8be0228745293b0e528bc4850f83a169/jupyter
15:11:36.216 [info] Handle Execution of Cells 0 for Untitled-1.ipynb
15:11:36.216 [debug] Cell Index:0 sent to kernel
15:11:36.221 [debug] Start cell 0 execution @ 1714975896221 (clear output)
15:11:36.221 [debug] Kernel acknowledged execution of cell 0 @ 1714975896221
15:11:36.223 [info] Cell 0 completed in 0.001s (start: 1714975896221, end: 1714975896222)
15:11:36.223 [debug] Cell 0 executed successfully
kjslag commented 3 weeks ago

I'm getting exactly the same issue on an M1 Pro macos 14.5 using a fresh installation of haskell using ghcup. When I evaluate 1+1, the vscode notebook quickly returns 2, but the cell keeps evaluating, which prevents other cells from evaluating. Python notebooks work fine. Below are my logs. For some reason, many "k" characters are replaced with "~" in my logs.

haskell spins forever

Visual Studio Code (1.90.2, undefined, desktop)
Jupyter Extension Version: 2024.5.0.
Python Extension Version: 2024.8.1.
Pylance Extension Version: 2024.6.1.
Platform: darwin (arm64).
Workspace folder ~/Documents/AI/ARC, Home = /Users/k
14:33:54.458 [info] Telemetry level is off
14:33:54.458 [info] Experiments are disabled, only manually opted experiments are active.
14:33:54.547 [debug] Start refreshing ~ernel Pic~er (1719448434547)
14:33:55.534 [trace] No controller, hence noteboo~ communications cannot be initialized for editor ~/test.ipynb
14:33:55.538 [debug] Start refreshing Interpreter ~ernel Pic~er
14:33:55.592 [trace] Search for ~ernelSpecs in Interpreter /opt/homebrew/bin/python3.11
14:33:55.592 [trace] Search for ~ernelSpecs in Interpreter ~/miniconda3/bin/python
14:33:55.592 [trace] Search for ~ernelSpecs in Interpreter ~/miniconda3/envs/swe-agent/bin/python
14:33:55.592 [trace] Search for ~ernelSpecs in Interpreter ~/opt/anaconda3/bin/python
14:33:55.592 [trace] Search for ~ernelSpecs in Interpreter ~/opt/anaconda3/envs/coreml_stable_diffusion/bin/python
14:33:55.592 [trace] Search for ~ernelSpecs in Interpreter ~/opt/anaconda3/envs/edm/bin/python
14:33:55.592 [trace] Search for ~ernelSpecs in Interpreter ~/opt/anaconda3/envs/fooocus/bin/python
14:33:55.593 [trace] Search for ~ernelSpecs in Interpreter ~/opt/anaconda3/envs/invo~eai/bin/python
14:33:55.593 [trace] Search for ~ernelSpecs in Interpreter ~/opt/anaconda3/envs/pytorch2.1/bin/python
14:33:55.593 [trace] Search for ~ernelSpecs in Interpreter ~/opt/anaconda3/envs/temperature_stablediffusion/bin/python
14:33:55.593 [trace] Search for ~ernelSpecs in Interpreter /usr/bin/python3
14:33:55.593 [trace] Search for ~ernelSpecs in Interpreter /opt/homebrew/bin/python3.10
14:33:55.593 [trace] Search for ~ernelSpecs in Interpreter /opt/homebrew/bin/python3.8
14:33:55.593 [trace] Search for ~ernelSpecs in Interpreter /opt/homebrew/bin/python3.9
14:33:55.593 [trace] Search for ~ernelSpecs in Interpreter /opt/homebrew/bin/python3
14:33:55.595 [debug] Get Custom Env Variables, Class name = Bm, completed in 1048ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
14:33:55.595 [debug] Jupyter Paths /~ernels: 
14:33:55.596 [debug] ~ernel Spec Root Paths, /usr/share/jupyter/~ernels, /usr/local/share/jupyter/~ernels, ~/Library/Jupyter/~ernels
14:33:55.858 [trace] Hiding default ~ernelSpec ~/opt/anaconda3/bin/python for interpreter ~/opt/anaconda3/bin/python (~ernelSpec file ~/opt/anaconda3/share/jupyter/~ernels/python3/~ernel.json)
14:33:55.861 [trace] Hiding default ~ernelSpec ~/opt/anaconda3/envs/invo~eai/bin/python for interpreter ~/opt/anaconda3/envs/invo~eai/bin/python (~ernelSpec file ~/opt/anaconda3/envs/invo~eai/share/jupyter/~ernels/python3/~ernel.json)
14:33:56.073 [trace] Conda file is conda
14:33:56.264 [trace] Python API env change detected, update => '/opt/homebrew/bin/python3'
14:33:56.265 [trace] Python API env change detected, update => '/Users/~/miniconda3/bin/python'
14:33:56.266 [trace] Python API env change detected, update => '/Users/~/miniconda3/envs/swe-agent/bin/python'
14:33:56.267 [trace] Python API env change detected, update => '/Users/~/opt/anaconda3/bin/python'
14:33:56.267 [trace] Python API env change detected, update => '/Users/~/opt/anaconda3/envs/coreml_stable_diffusion/bin/python'
14:33:56.268 [trace] Python API env change detected, update => '/Users/~/opt/anaconda3/envs/edm/bin/python'
14:33:56.268 [trace] Python API env change detected, update => '/Users/~/opt/anaconda3/envs/fooocus/bin/python'
14:33:56.269 [trace] Python API env change detected, update => '/Users/~/opt/anaconda3/envs/invo~eai/bin/python'
14:33:56.269 [trace] Python API env change detected, update => '/Users/~/opt/anaconda3/envs/pytorch2.1/bin/python'
14:33:56.270 [trace] Python API env change detected, update => '/Users/~/opt/anaconda3/envs/temperature_stablediffusion/bin/python'
14:33:56.270 [trace] Python API env change detected, update => '/usr/bin/python3'
14:33:56.271 [trace] Python API env change detected, update => '/opt/homebrew/bin/python3.10'
14:33:56.271 [trace] Python API env change detected, update => '/opt/homebrew/bin/python3.11'
14:33:56.272 [trace] Python API env change detected, update => '/opt/homebrew/bin/python3.8'
14:33:56.272 [trace] Python API env change detected, update => '/opt/homebrew/bin/python3.9'
14:33:56.275 [debug] Refreshed Environments
14:33:56.698 [debug] No interpreter for Pylance for Noteboo~ URI "~/test.ipynb"
14:33:57.275 [debug] End refreshing ~ernel Pic~er (1719448434547)
14:34:11.879 [debug] ~ernelProvider switched ~ernel to id = .has~ell./Users/~/.local/state/cabal/store/ghc-9.4.8/hs~ll-0.11.0.0-094f958d/bin/ihas~ell././users/~/.local/state/cabal/store/ghc-9.4.8/hs~ll-0.11.0.0-094f958d/bin/ihas~ell#~ernel#{connection_file}#--ghclib#/users/~/.ghcup/ghc/9.4.8/lib/ghc-9.4.8/lib#+rts#-m3g#-n2#-rts
14:34:11.879 [debug] start the ~ernel, options.disableUI=true for ~/test.ipynb
14:34:11.881 [info] Starting ~ernel (Has~ell) for '~/test.ipynb' (disableUI=true)
14:34:11.882 [trace] Creating raw noteboo~ for resource '~/test.ipynb'
14:34:11.883 [debug] No interpreter for Pylance for Noteboo~ URI "~/test.ipynb"
14:34:11.901 [trace] Registering commtarget jupyter.widget
14:34:11.902 [debug] Controller selection change completed
14:34:11.903 [trace] Version of IPyWidgets 7 determined after 0.001s
14:34:11.916 [debug] Launching ~ernel .has~ell./Users/~/.local/state/cabal/store/ghc-9.4.8/hs~ll-0.11.0.0-094f958d/bin/ihas~ell././users/~/.local/state/cabal/store/ghc-9.4.8/hs~ll-0.11.0.0-094f958d/bin/ihas~ell#~ernel#{connection_file}#--ghclib#/users/~/.ghcup/ghc/9.4.8/lib/ghc-9.4.8/lib#+rts#-m3g#-n2#-rts for ~/test.ipynb in //Users/~ with ports 9001, 9000, 9004, 9002, 9003
14:34:11.916 [info] Launching Raw ~ernel Has~ell # /Users/~/.local/state/cabal/store/ghc-9.4.8/hs~ll-0.11.0.0-094f958d/bin/ihas~ell
14:34:11.916 [debug] Create ProcessService, Class name = Vm (started execution), Arg 1: "~/test.ipynb", Arg 2: {"a":false,"b":{"w":3,"u":{"i":-1,"end":0},"t":[{"id":1663},{"id":1664},null,{"id":1667}]}}
14:34:11.917 [debug] Get Custom Env Variables, Class name = Bm, completed in 1ms, has a truthy return value, Arg 1: "~/test.ipynb", Arg 2: "RunNonPythonCode", Arg 3: {"a":false,"b":{"w":3,"u":{"i":-1,"end":0},"t":[{"id":1663},{"id":1664},null,{"id":1667}]}}
14:34:11.917 [debug] Create ProcessService, Class name = Vm, completed in 1ms, has a truthy return value, Arg 1: "~/test.ipynb", Arg 2: {"a":false,"b":{"w":3,"u":{"i":-1,"end":0},"t":[{"id":1663},{"id":1664},null,{"id":1667}]}}
14:34:11.917 [debug] No custom variables nor do we have a conda environment
14:34:11.928 [info] Process Execution: ~/.local/state/cabal/store/ghc-9.4.8/hs~ll-0.11.0.0-094f958d/bin/ihas~ell ~ernel /Users/~/Library/Jupyter/runtime/~ernel-v2-14533ImasJMJIiIVp.json --ghclib /Users/~/.ghcup/ghc/9.4.8/lib/ghc-9.4.8/lib +RTS -M3g -N2 -RTS
    > cwd: //Users/~
14:34:11.928 [debug] ~ernel process 14747.
14:34:12.139 [debug] Waiting for Raw Session to be ready in postStartRawSession
14:34:12.140 [debug] Waiting for Raw session to be ready, status: connected
14:34:12.140 [trace] Raw session connected
14:34:12.140 [debug] Waited for Raw session to be ready & got status: connected
14:34:12.140 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
14:34:12.140 [debug] ~ernel status is 'un~nown' before requesting ~ernel info and after ready
14:34:12.140 [debug] Sending request for ~ernelInfo
14:34:12.424 [trace] Web view is ready to receive widget messages
14:34:12.640 [trace] Did not get a response for request~ernelInfo
14:34:12.641 [debug] Sending request for ~ernelInfo
14:34:12.643 [trace] Got response for request~ernelInfo
14:34:12.643 [debug] Successfully completed postStartRawSession after 2 attempt(s) in 503ms
14:34:12.645 [trace] Started running ~ernel initialization for ~/test.ipynb
14:34:12.645 [debug] Requesting ~ernel info
14:34:12.646 [trace] Got ~ernel info
14:34:12.646 [trace] End running ~ernel initialization, now waiting for idle
14:34:12.646 [trace] Waiting for idle on (~ernel): 888af0d5-44b6-44b9-8b16-d59f39087d94 -> idle
14:34:12.647 [trace] Finished waiting for idle on (~ernel): 888af0d5-44b6-44b9-8b16-d59f39087d94 -> idle
14:34:12.647 [trace] End running ~ernel initialization, session is idle
14:34:12.648 [warn] ~ernel completions not enabled for 'Has~ell'. 
To enable ~ernel completion for this language please add the following setting 
jupyter.completionTriggerCharacters = {has~ell: [<List of characters that will trigger completions>]}. 
For more information please see https://a~a.ms/vscodeJupyterCompletion
14:34:12.648 [trace] IPyWidgetScriptSource.initialize
14:34:12.649 [info] ~ernel successfully started
14:34:12.649 [warn] No nbextensions folder found for ~ernel .has~ell./Users/~/.local/state/cabal/store/ghc-9.4.8/hs~ll-0.11.0.0-094f958d/bin/ihas~ell././users/~/.local/state/cabal/store/ghc-9.4.8/hs~ll-0.11.0.0-094f958d/bin/ihas~ell#~ernel#{connection_file}#--ghclib#/users/~/.ghcup/ghc/9.4.8/lib/ghc-9.4.8/lib#+rts#-m3g#-n2#-rts
14:34:12.655 [trace] Widget Message: Received IPyWidgets_~ernelOptions in ScriptManager
14:34:12.655 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_~ernelOptions
14:34:20.405 [debug] Handle Execution of Cells 0 for ~/test.ipynb
14:34:20.408 [trace] Cell Index:0 sent to ~ernel
14:34:20.411 [trace] Start cell 0 execution @ 1719448460411 (clear output)
14:34:20.412 [debug] ~ernel ac~nowledged execution of cell 0 @ 1719448460411

python works

Visual Studio Code (1.90.2, undefined, desktop)
Jupyter Extension Version: 2024.5.0.
Python Extension Version: 2024.8.1.
Pylance Extension Version: 2024.6.1.
Platform: darwin (arm64).
Workspace folder ~/Documents/AI/ARC, Home = /Users/k
14:36:03.277 [info] Telemetry level is off
14:36:03.277 [info] Experiments are disabled, only manually opted experiments are active.
14:36:03.362 [debug] Start refreshing ~ernel Pic~er (1719448563362)
14:36:04.553 [trace] No controller, hence noteboo~ communications cannot be initialized for editor ~/test.ipynb
14:36:04.556 [debug] Start refreshing Interpreter ~ernel Pic~er
14:36:04.610 [trace] Search for ~ernelSpecs in Interpreter /opt/homebrew/bin/python3.11
14:36:04.611 [trace] Search for ~ernelSpecs in Interpreter ~/miniconda3/bin/python
14:36:04.611 [trace] Search for ~ernelSpecs in Interpreter ~/miniconda3/envs/swe-agent/bin/python
14:36:04.611 [trace] Search for ~ernelSpecs in Interpreter ~/opt/anaconda3/bin/python
14:36:04.611 [trace] Search for ~ernelSpecs in Interpreter ~/opt/anaconda3/envs/coreml_stable_diffusion/bin/python
14:36:04.611 [trace] Search for ~ernelSpecs in Interpreter ~/opt/anaconda3/envs/edm/bin/python
14:36:04.611 [trace] Search for ~ernelSpecs in Interpreter ~/opt/anaconda3/envs/fooocus/bin/python
14:36:04.611 [trace] Search for ~ernelSpecs in Interpreter ~/opt/anaconda3/envs/invo~eai/bin/python
14:36:04.611 [trace] Search for ~ernelSpecs in Interpreter ~/opt/anaconda3/envs/pytorch2.1/bin/python
14:36:04.611 [trace] Search for ~ernelSpecs in Interpreter ~/opt/anaconda3/envs/temperature_stablediffusion/bin/python
14:36:04.612 [trace] Search for ~ernelSpecs in Interpreter /usr/bin/python3
14:36:04.612 [trace] Search for ~ernelSpecs in Interpreter /opt/homebrew/bin/python3.10
14:36:04.612 [trace] Search for ~ernelSpecs in Interpreter /opt/homebrew/bin/python3.8
14:36:04.612 [trace] Search for ~ernelSpecs in Interpreter /opt/homebrew/bin/python3.9
14:36:04.612 [trace] Search for ~ernelSpecs in Interpreter /opt/homebrew/bin/python3
14:36:04.615 [debug] Get Custom Env Variables, Class name = Bm, completed in 1253ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
14:36:04.615 [debug] Jupyter Paths /~ernels: 
14:36:04.615 [debug] ~ernel Spec Root Paths, /usr/share/jupyter/~ernels, /usr/local/share/jupyter/~ernels, ~/Library/Jupyter/~ernels
14:36:04.755 [debug] ~ernelProvider switched ~ernel to id = .jvsc74a57bd0b0fa6594d8f4cbf19f97940f81e996739fb7646882a419484c72d19e05852a7e./opt/homebrew/bin/python3./opt/homebrew/bin/python3.-m#ipy~ernel_launcher
14:36:04.755 [debug] start the ~ernel, options.disableUI=true for ~/test.ipynb
14:36:04.772 [trace] Registering commtarget jupyter.widget
14:36:04.773 [debug] Controller selection change completed
14:36:04.789 [debug] Get Custom Env Variables, Class name = Bm, completed in 0ms, has a truthy return value, Arg 1: "~/Documents/AI/ARC", Arg 2: "RunPythonCode"
14:36:04.790 [info] Starting ~ernel (Python Path: /opt/homebrew/bin/python3, Un~nown, 3.12.4) for '~/test.ipynb' (disableUI=true)
14:36:04.790 [trace] Creating raw noteboo~ for resource '~/test.ipynb'
14:36:04.896 [debug] Get Custom Env Variables, Class name = Bm, completed in 0ms, has a truthy return value, Arg 1: "~/test.ipynb", Arg 2: "RunPythonCode"
14:36:04.918 [trace] Hiding default ~ernelSpec ~/opt/anaconda3/envs/invo~eai/bin/python for interpreter ~/opt/anaconda3/envs/invo~eai/bin/python (~ernelSpec file ~/opt/anaconda3/envs/invo~eai/share/jupyter/~ernels/python3/~ernel.json)
14:36:04.919 [trace] Hiding default ~ernelSpec ~/opt/anaconda3/bin/python for interpreter ~/opt/anaconda3/bin/python (~ernelSpec file ~/opt/anaconda3/share/jupyter/~ernels/python3/~ernel.json)
14:36:05.109 [debug] Launching ~ernel .jvsc74a57bd0b0fa6594d8f4cbf19f97940f81e996739fb7646882a419484c72d19e05852a7e./opt/homebrew/bin/python3./opt/homebrew/bin/python3.-m#ipy~ernel_launcher for ~/test.ipynb in //Users/~ with ports 9001, 9000, 9004, 9002, 9003
14:36:05.111 [warn] Failed to get activated env vars for /opt/homebrew/bin/python3 in 322ms
14:36:05.111 [debug] Create ProcessService, Class name = Vm (started execution), Arg 1: undefined
14:36:05.112 [warn] Failed to get activated env vars for /opt/homebrew/bin/python3 in 216ms
14:36:05.114 [trace] Conda file is conda
14:36:05.115 [debug] Get Custom Env Variables, Class name = Bm, completed in 4ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunNonPythonCode", Arg 3: undefined
14:36:05.115 [debug] Create ProcessService, Class name = Vm, completed in 4ms, has a truthy return value, Arg 1: undefined
14:36:05.115 [info] Process Execution: /opt/homebrew/bin/python3 -c "import site;print("USER_BASE_VALUE");print(site.USER_BASE);print("USER_BASE_VALUE");"
14:36:05.140 [trace] USER_SITE for /opt/homebrew/bin/python3 is /Users/~/Library/Python/3.12/bin
14:36:05.140 [trace] Prepend PATH with user site path for /opt/homebrew/bin/python3, user site /Users/~/Library/Python/3.12/bin
14:36:05.141 [trace] Prepend PATH with python bin for /opt/homebrew/bin/python3
14:36:05.141 [trace] Prepend PATH with user site path for /opt/homebrew/bin/python3, user site /Users/~/Library/Python/3.12/bin
14:36:05.141 [trace] Prepend PATH with python bin for /opt/homebrew/bin/python3
14:36:05.141 [debug] Getting activated env variables, Class name = Pp, completed in 352ms, has a truthy return value, Arg 1: "~/Documents/AI/ARC", Arg 2: "/opt/homebrew/bin/python3", Arg 3: undefined
14:36:05.141 [debug] Getting activated env variables, Class name = Pp, completed in 245ms, has a truthy return value, Arg 1: "~/test.ipynb", Arg 2: "/opt/homebrew/bin/python3", Arg 3: undefined
14:36:05.142 [info] Process Execution: /opt/homebrew/bin/python3 -m pip list
14:36:05.143 [info] Process Execution: /opt/homebrew/bin/python3 -c "import ipy~ernel; print(ipy~ernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipy~ernel.__file__)"
14:36:05.145 [info] Process Execution: /opt/homebrew/bin/python3 -m ipy~ernel_launcher --f=/Users/~/Library/Jupyter/runtime/~ernel-v2-15252xEgupLtJAdIO.json
    > cwd: //Users/~
14:36:05.145 [debug] ~ernel process 15363.
14:36:05.278 [trace] ipy~ernel version & path 6.29.4, ~/Library/Python/3.12/lib/python/site-pac~ages/ipy~ernel/__init__.py for /opt/homebrew/bin/python3
14:36:05.327 [trace] Python API env change detected, update => '/opt/homebrew/bin/python3'
14:36:05.328 [trace] Python API env change detected, update => '/Users/~/miniconda3/bin/python'
14:36:05.329 [trace] Python API env change detected, update => '/Users/~/miniconda3/envs/swe-agent/bin/python'
14:36:05.330 [trace] Python API env change detected, update => '/Users/~/opt/anaconda3/bin/python'
14:36:05.330 [trace] Python API env change detected, update => '/Users/~/opt/anaconda3/envs/coreml_stable_diffusion/bin/python'
14:36:05.331 [trace] Python API env change detected, update => '/Users/~/opt/anaconda3/envs/edm/bin/python'
14:36:05.332 [trace] Python API env change detected, update => '/Users/~/opt/anaconda3/envs/fooocus/bin/python'
14:36:05.332 [trace] Python API env change detected, update => '/Users/~/opt/anaconda3/envs/invo~eai/bin/python'
14:36:05.337 [trace] Python API env change detected, update => '/Users/~/opt/anaconda3/envs/pytorch2.1/bin/python'
14:36:05.337 [trace] Python API env change detected, update => '/Users/~/opt/anaconda3/envs/temperature_stablediffusion/bin/python'
14:36:05.338 [trace] Python API env change detected, update => '/usr/bin/python3'
14:36:05.338 [trace] Python API env change detected, update => '/opt/homebrew/bin/python3.10'
14:36:05.339 [trace] Python API env change detected, update => '/opt/homebrew/bin/python3.11'
14:36:05.339 [trace] Python API env change detected, update => '/opt/homebrew/bin/python3.8'
14:36:05.340 [trace] Python API env change detected, update => '/opt/homebrew/bin/python3.9'
14:36:05.343 [debug] Refreshed Environments
14:36:05.419 [debug] ~ernel output 15363: To connect another client to this ~ernel, use:
--existing ~ernel-v2-15252xEgupLtJAdIO.json
14:36:05.555 [debug] Waiting for Raw Session to be ready in postStartRawSession
14:36:05.555 [debug] Waiting for Raw session to be ready, status: connected
14:36:05.555 [trace] Raw session connected
14:36:05.555 [debug] Waited for Raw session to be ready & got status: connected
14:36:05.556 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
14:36:05.556 [debug] ~ernel status is 'un~nown' before requesting ~ernel info and after ready
14:36:05.556 [debug] Sending request for ~ernelInfo
14:36:05.560 [trace] Got response for request~ernelInfo
14:36:05.560 [debug] Successfully completed postStartRawSession after 1 attempt(s) in 4ms
14:36:05.561 [trace] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
14:36:05.566 [trace] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
14:36:05.567 [trace] Started running ~ernel initialization for ~/test.ipynb
14:36:05.567 [trace] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
14:36:05.602 [trace] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s)
14:36:05.603 [trace] Determined IPyWidgets Version as 8
14:36:05.603 [trace] Version of IPyWidgets 8 determined after 0.83s
14:36:05.603 [trace] Executing silently Code (idle) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callbac~, data=None):
14:36:05.613 [trace] Executing silently Code (completed) = def __VSCODE_inject_module():\ndef __VSCODE_call_function(function, callbac~, data=None): with 0 output(s)
14:36:05.613 [debug] Requesting ~ernel info
14:36:05.613 [trace] Got ~ernel info
14:36:05.614 [trace] End running ~ernel initialization, now waiting for idle
14:36:05.614 [trace] Waiting for idle on (~ernel): 8fdffacc-2c9e-4e3a-984b-462b96861884 -> idle
14:36:05.614 [trace] Finished waiting for idle on (~ernel): 8fdffacc-2c9e-4e3a-984b-462b96861884 -> idle
14:36:05.615 [trace] End running ~ernel initialization, session is idle
14:36:05.615 [trace] Registering ~ernel Completion Provider from ~ernel Python 3.12.4 for language python
14:36:05.616 [trace] IPyWidgetScriptSource.initialize
14:36:05.617 [info] ~ernel successfully started
14:36:05.617 [debug] getDataDirsImpl, Class name = jr (started execution), Arg 1: "~/test.ipynb", Arg 2: "/opt/homebrew/bin/python3"
14:36:05.618 [debug] Get Custom Env Variables, Class name = Bm, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
14:36:05.618 [debug] Jupyter Paths : 
14:36:05.619 [debug] Get Custom Env Variables, Class name = Bm, completed in 1ms, has a truthy return value, Arg 1: "~/test.ipynb", Arg 2: "RunPythonCode"
14:36:05.637 [warn] Failed to get activated env vars for /opt/homebrew/bin/python3 in 19ms
14:36:05.637 [trace] Prepend PATH with user site path for /opt/homebrew/bin/python3, user site /Users/~/Library/Python/3.12/bin
14:36:05.638 [trace] Prepend PATH with python bin for /opt/homebrew/bin/python3
14:36:05.638 [debug] Getting activated env variables, Class name = Pp, completed in 20ms, has a truthy return value, Arg 1: "~/test.ipynb", Arg 2: "/opt/homebrew/bin/python3", Arg 3: undefined
14:36:05.639 [info] Process Execution: /opt/homebrew/bin/python3 /Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.5.0-darwin-arm64/pythonFiles/printJupyterDataDir.py
14:36:05.664 [debug] getDataDirsImpl, Class name = jr, completed in 47ms, has a truthy return value, Arg 1: "~/test.ipynb", Arg 2: "/opt/homebrew/bin/python3", Return Value: <Uri:/Users/~/Library/Python/3.12/share/jupyter>, <Uri:/Users/~/Library/Jupyter>, <Uri:/opt/homebrew/opt/python@3.12/Framewor~s/Python.framewor~/Versions/3.12/share/jupyter>, <Uri:/usr/local/share/jupyter>, <Uri:/usr/share/jupyter>
14:36:05.760 [debug] Interpreter for Pylance for Noteboo~ URI "~/test.ipynb" is /opt/homebrew/bin/python3
14:36:06.136 [trace] Web view is ready to receive widget messages
14:36:06.138 [trace] Widget Message: Received IPyWidgets_~ernelOptions in ScriptManager
14:36:06.139 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_~ernelOptions
14:36:06.146 [trace] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.5.0-darwin-arm64/temp/scripts/97b8cc3fc3cf6169abf002922b8bbce7bbd1e04f2d9b8730176b346c45895627/jupyter
14:36:06.147 [trace] Widget Message: Received IPyWidgets_~ernelOptions in ScriptManager
14:36:06.147 [trace] Widget Message: Received IPyWidgetMessages.IPyWidgets_~ernelOptions
14:36:06.148 [trace] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net/Users/~/.vscode/extensions/ms-toolsai.jupyter-2024.5.0-darwin-arm64/temp/scripts/97b8cc3fc3cf6169abf002922b8bbce7bbd1e04f2d9b8730176b346c45895627/jupyter
14:36:06.421 [debug] End refreshing ~ernel Pic~er (1719448563362)
14:36:07.566 [debug] Handle Execution of Cells 0 for ~/test.ipynb
14:36:07.567 [trace] Cell Index:0 sent to ~ernel
14:36:07.573 [trace] Start cell 0 execution @ 1719448567573 (clear output)
14:36:07.574 [debug] ~ernel ac~nowledged execution of cell 0 @ 1719448567573
14:36:07.576 [trace] Cell 0 completed in 0.003s (start: 1719448567573, end: 1719448567576)
14:36:07.577 [trace] Cell 0 executed successfully
14:36:07.579 [debug] Interpreter for Pylance for Noteboo~ URI "~/test.ipynb" is /opt/homebrew/bin/python3
14:36:07.582 [debug] Interpreter for Pylance for Noteboo~ URI "~/test.ipynb" is /opt/homebrew/bin/python3
kjslag commented 3 weeks ago

I've tried the following things to get it to work: downgrade the version of vscode, ihaskell, and the vscode jupyter extension. I also tried using a fresh ~/.vscode directory and installing just the jupyter extension. IHaskell works fine with JupyterLab for me.