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

cells aren't recognized #10197

Closed
meganrogge opened this issue May 31, 2022 · 7 comments
Closed

cells aren't recognized #10197

meganrogge opened this issue May 31, 2022 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@meganrogge
Copy link

Testing #10164

python.mov
@github-actions github-actions bot added the triage-needed Issue needs to be triaged label May 31, 2022
@meganrogge
Copy link
Author

output for the python language server

[Info  - 11:29:03 AM] Pylance language server 2022.5.3 (pyright 73c82fab) starting
[Info  - 11:29:03 AM] Server root directory: /
Notebook support: Legacy
[Info  - 11:29:03 AM] No pyproject.toml file found.
[Warn  - 11:29:03 AM] stubPath typings is not a valid directory.
[Info  - 11:29:03 AM] Searching for source files
[Info  - 11:29:03 AM] No source files found.
[Info  - 11:29:06 AM] [FG] Long operation: parsing: [virtual] /typeshed-fallback/stdlib/builtins.pyi (2201ms)
[Info  - 11:29:06 AM] No pyproject.toml file found.
[Warn  - 11:29:06 AM] stubPath typings is not a valid directory.
[Info  - 11:29:06 AM] Searching for source files
[Info  - 11:29:06 AM] No source files found.
[Error - 11:29:08 AM] Request textDocument/foldingRange failed.
  Message: Request textDocument/foldingRange failed with message: request cancelled
  Code: -32603 
[Info  - 11:29:28 AM] No configuration file found.
[Info  - 11:29:28 AM] No pyproject.toml file found.
[Warn  - 11:29:28 AM] stubPath /tsup-project/typings is not a valid directory.
[Info  - 11:29:28 AM] Searching for source files
[Error - 11:29:28 AM] File or directory "/tsup-project" does not exist.
[Info  - 11:29:28 AM] No source files found.
[Error - 11:30:16 AM] Request textDocument/documentSymbol failed.
  Message: Request textDocument/documentSymbol failed with message: request cancelled
  Code: -32603 
[Error - 11:30:16 AM] Request textDocument/completion failed.
  Message: Request textDocument/completion failed with message: request cancelled
  Code: -32603 
[Error - 11:30:16 AM] Request textDocument/foldingRange failed.
  Message: Request textDocument/foldingRange failed with message: request cancelled
  Code: -32603 
[Error - 11:30:16 AM] Request completionItem/resolve failed.
  Message: Request completionItem/resolve failed with message: request cancelled
  Code: -32603 
[Error - 11:30:16 AM] Request completionItem/resolve failed.
  Message: Request completionItem/resolve failed with message: request cancelled
  Code: -32603 
[Info  - 11:31:29 AM] No configuration file found.
[Info  - 11:31:29 AM] No pyproject.toml file found.
[Warn  - 11:31:29 AM] stubPath /WorkspaceLaunchTaskDemo/typings is not a valid directory.
[Info  - 11:31:29 AM] Searching for source files
[Error - 11:31:29 AM] File or directory "/WorkspaceLaunchTaskDemo" does not exist.
[Info  - 11:31:29 AM] No source files found.
[Info  - 11:31:45 AM] [FG] Long operation: parsing: [virtual] /typeshed-fallback/stdlib/builtins.pyi (2040ms)
[Info  - 11:33:27 AM] [FG] Long operation: parsing: [virtual] /typeshed-fallback/stdlib/builtins.pyi (2137ms)
[Error - 11:34:39 AM] Request textDocument/completion failed.
  Message: Request textDocument/completion failed with message: request cancelled
  Code: -32603 
[Error - 11:35:31 AM] Request textDocument/completion failed.
  Message: Request textDocument/completion failed with message: request cancelled
  Code: -32603 
[Error - 11:35:31 AM] Request textDocument/foldingRange failed.
  Message: Request textDocument/foldingRange failed with message: request cancelled
  Code: -32603 
[Error - 11:35:31 AM] Request textDocument/signatureHelp failed.
  Message: Request textDocument/signatureHelp failed with message: request cancelled
  Code: -32603 
[Error - 11:35:31 AM] Request textDocument/foldingRange failed.
  Message: Request textDocument/foldingRange failed with message: request cancelled
  Code: -32603 
[Error - 11:35:31 AM] Request textDocument/documentSymbol failed.
  Message: Request textDocument/documentSymbol failed with message: request cancelled
  Code: -32603 
[Error - 11:35:31 AM] Request textDocument/signatureHelp failed.
  Message: Request textDocument/signatureHelp failed with message: request cancelled
  Code: -32603 
[Error - 11:35:31 AM] Request textDocument/foldingRange failed.
  Message: Request textDocument/foldingRange failed with message: request cancelled
  Code: -32603 
[Error - 11:35:31 AM] Request textDocument/completion failed.
  Message: Request textDocument/completion failed with message: request cancelled
  Code: -32603 
[Error - 11:35:31 AM] Request textDocument/completion failed.
  Message: Request textDocument/completion failed with message: request cancelled
  Code: -32603 

@meganrogge
Copy link
Author

jupyter output

Visual Studio Code - Insiders (1.68.0-insider, undefined, vscode.dev)
Jupyter Extension Version: 2022.5.1001491011.
Python Extension Version: 2022.6.2.
Opened workspace folder.
info 11:32:40.7: Starting interactive window for resource '/WorkspaceLaunchTaskDemo/test.py'
error 11:32:40.18: No remote controllers
info 11:32:40.125: Preferred Remote kernel for Interactive-1.interactive is undefined
error 11:32:40.125: No remote controllers
info 11:32:52.561: Creating server with url : https://hostname:8080/
warn 11:32:53.608: Uri verification error TypeError: Failed to fetch
error 11:32:53.610: SessionManager:getKernelSpecs failure:  Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
info 11:32:54.95: Creating server with url : https://hostname:8080/
warn 11:32:54.113: Uri verification error TypeError: Failed to fetch
error 11:32:54.115: SessionManager:getKernelSpecs failure:  Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.
info 11:33:4.503: Creating server with url : http://localhost:8888/
info 11:33:5.307: Checking for server existence.
info 11:33:5.308: Checking for server usability.
info 11:33:5.308: Starting notebook server.
info 11:33:5.308: Connecting to server
info 11:33:5.310: Connecting to process server
info 11:33:5.310: Connecting server kernel http://localhost:8888/
Connecting to Jupyter server at http://localhost:8888/
info 11:33:5.310: Creating server with url : http://localhost:8888/
info 11:33:5.311: Connection complete server
info 11:33:5.312: Server started.
info 11:33:5.312: Creating server with url : http://localhost:8888/
info 11:33:5.357: Creating server with url : http://localhost:8888/
info 11:33:13.920: Creating server with url : http://localhost:8888/
info 11:33:13.950: Checking for server existence.
info 11:33:13.950: Checking for server usability.
info 11:33:13.950: Starting notebook server.
info 11:33:13.950: Connecting to server
info 11:33:13.952: Connecting to process server
info 11:33:13.952: Connecting server kernel http://localhost:8888/
Connecting to Jupyter server at http://localhost:8888/
info 11:33:13.952: Creating server with url : http://localhost:8888/
info 11:33:13.953: Connection complete server
info 11:33:13.953: Server started.
info 11:33:13.954: Creating server with url : http://localhost:8888/
info 11:33:13.998: Creating server with url : http://localhost:8888/
info 11:33:24.820: Starting interactive window for resource '/WorkspaceLaunchTaskDemo/test.py'
info 11:33:24.884: Preferred Remote kernel for Interactive-1.interactive is undefined
info 11:33:25.533: Starting Jupyter Session id = '52add4ea0bf382687b803dfd80ce88736a7c4562925800e658d8d282ae5cce3c..python3./python./.-m#ipykernel_launcher' for 'Interactive-1.interactive' (disableUI=false)
http://localhost:8888/: Kernel started: b350f5a2-b54e-433a-9b16-0334781fc73c
info 11:33:25.920: Waiting for idle on (kernel): b350f5a2-b54e-433a-9b16-0334781fc73c -> unknown
info 11:33:27.129: Finished waiting for idle on (kernel): b350f5a2-b54e-433a-9b16-0334781fc73c -> idle
info 11:33:27.130: Started session for kernel 52add4ea0bf382687b803dfd80ce88736a7c4562925800e658d8d282ae5cce3c..python3./python./.-m#ipykernel_launcher
info 11:33:27.130: Finished connecting kernel 52add4ea0bf382687b803dfd80ce88736a7c4562925800e658d8d282ae5cce3c..python3./python./.-m#ipykernel_launcher
http://localhost:8888/: Creating new notebook 
info 11:33:27.135: Executing silently Code (idle) = __vsc_ipynb_file__ = "/WorkspaceLaunchTaskDemo/test.py"\n%config Completer.use_jedi = False
info 11:33:27.172: Executing silently Code (completed) = __vsc_ipynb_file__ = "/WorkspaceLaunchTaskDemo/test.py"\n%config Completer.use_jedi = False
info 11:33:27.172: Waiting for idle on (kernel): b350f5a2-b54e-433a-9b16-0334781fc73c -> idle
info 11:33:27.172: Finished waiting for idle on (kernel): b350f5a2-b54e-433a-9b16-0334781fc73c -> idle
info 11:33:27.174: Updating preferred kernel for remote notebook b350f5a2-b54e-433a-9b16-0334781fc73c
info 11:33:27.177: Creating server with url : http://localhost:8888/
info 11:33:27.177: Executing silently Code (idle) = __file__ = '/WorkspaceLaunchTaskDemo/test.py'
info 11:33:27.202: Executing silently Code (completed) = __file__ = '/WorkspaceLaunchTaskDemo/test.py'
info 11:33:27.236: Creating server with url : http://localhost:8888/
info 11:34:41.614: Execute Cell 1 Interactive-1.interactive
info 11:34:41.657: Cell 1 executed with state Success
info 11:35:43.271: Starting interactive window for resource '/WorkspaceLaunchTaskDemo/hello.py'
info 11:35:43.331: Preferred Remote kernel for Interactive-2.interactive is undefined
info 11:35:43.941: Starting Jupyter Session id = '52add4ea0bf382687b803dfd80ce88736a7c4562925800e658d8d282ae5cce3c..python3./python./.-m#ipykernel_launcher' for 'Interactive-2.interactive' (disableUI=false)
http://localhost:8888/: Kernel started: 86130421-ebf2-4d3a-83f6-a453498b60d6
info 11:35:44.64: Waiting for idle on (kernel): 86130421-ebf2-4d3a-83f6-a453498b60d6 -> unknown
info 11:35:45.124: Finished waiting for idle on (kernel): 86130421-ebf2-4d3a-83f6-a453498b60d6 -> idle
info 11:35:45.124: Started session for kernel 52add4ea0bf382687b803dfd80ce88736a7c4562925800e658d8d282ae5cce3c..python3./python./.-m#ipykernel_launcher
info 11:35:45.124: Finished connecting kernel 52add4ea0bf382687b803dfd80ce88736a7c4562925800e658d8d282ae5cce3c..python3./python./.-m#ipykernel_launcher
http://localhost:8888/: Creating new notebook 
info 11:35:45.126: Executing silently Code (idle) = __vsc_ipynb_file__ = "/WorkspaceLaunchTaskDemo/hello.py"\n%config Completer.use_jedi = False
info 11:35:45.167: Executing silently Code (completed) = __vsc_ipynb_file__ = "/WorkspaceLaunchTaskDemo/hello.py"\n%config Completer.use_jedi = False
info 11:35:45.168: Waiting for idle on (kernel): 86130421-ebf2-4d3a-83f6-a453498b60d6 -> idle
info 11:35:45.168: Finished waiting for idle on (kernel): 86130421-ebf2-4d3a-83f6-a453498b60d6 -> idle
info 11:35:45.169: Updating preferred kernel for remote notebook 86130421-ebf2-4d3a-83f6-a453498b60d6
info 11:35:45.172: Creating server with url : http://localhost:8888/
info 11:35:45.172: Executing silently Code (idle) = __file__ = '/WorkspaceLaunchTaskDemo/hello.py'
info 11:35:45.178: Creating server with url : http://localhost:8888/
info 11:35:45.202: Executing silently Code (completed) = __file__ = '/WorkspaceLaunchTaskDemo/hello.py'
info 11:36:36.755: Execute Cell 1 Interactive-2.interactive
info 11:36:36.798: Cell 1 executed with state Success

@amunger
Copy link
Contributor

amunger commented May 31, 2022

try putting the code on the line after the # %% marker, otherwise it's just part of the comment and the cell is empty. e.g.

# %%
print(1)

@meganrogge
Copy link
Author

nothing is happening still when I run that

@meganrogge
Copy link
Author

but I see this log:

info 14:44:10.180: Starting interactive window for resource '/Users/meganrogge/Repos/WorkspaceLaunchTaskDemo/test.py'

@meganrogge
Copy link
Author

log:

Visual Studio Code - Insiders (1.68.0-insider, undefined, vscode.dev)
Jupyter Extension Version: 2022.5.1001491011.
Python Extension Version: 2022.6.2.
No workspace folder opened.
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
info 15:19:2.322: Starting interactive window for resource '/WorkspaceLaunchTaskDemo/hello.py'
error 15:19:2.365: No remote controllers
info 15:19:2.528: Preferred Remote kernel for Interactive-1.interactive is undefined
error 15:19:2.528: No remote controllers
info 15:19:11.322: Creating server with url : http://127.0.0.1:8888/
info 15:19:12.932: Checking for server existence.
info 15:19:12.933: Checking for server usability.
info 15:19:12.933: Starting notebook server.
info 15:19:12.934: Connecting to server
info 15:19:12.935: Connecting to process server
info 15:19:12.935: Connecting server kernel http://127.0.0.1:8888/
Connecting to Jupyter server at http://127.0.0.1:8888/
info 15:19:12.935: Creating server with url : http://127.0.0.1:8888/
info 15:19:12.937: Connection complete server
info 15:19:12.937: Server started.
info 15:19:12.938: Creating server with url : http://127.0.0.1:8888/
info 15:19:12.993: Creating server with url : http://127.0.0.1:8888/
info 15:19:25.410: Creating server with url : http://127.0.0.1:8888/
info 15:19:25.442: Checking for server existence.
info 15:19:25.442: Checking for server usability.
info 15:19:25.442: Starting notebook server.
info 15:19:25.443: Connecting to server
info 15:19:25.443: Connecting to process server
info 15:19:25.443: Connecting server kernel http://127.0.0.1:8888/
Connecting to Jupyter server at http://127.0.0.1:8888/
info 15:19:25.444: Creating server with url : http://127.0.0.1:8888/
info 15:19:25.444: Connection complete server
info 15:19:25.445: Server started.
info 15:19:25.445: Creating server with url : http://127.0.0.1:8888/
info 15:19:25.499: Creating server with url : http://127.0.0.1:8888/
info 15:19:49.853: Starting interactive window for resource '/WorkspaceLaunchTaskDemo/hello.py'
info 15:19:49.927: Preferred Remote kernel for Interactive-1.interactive is undefined
info 15:19:50.613: Starting Jupyter Session id = 'f04db549ba0970b589380d97e582f43d45ef8ec35c04c0bd98d16c40e703dc2e..python3./python./.-m#ipykernel_launcher' for 'Interactive-1.interactive' (disableUI=false)
http://127.0.0.1:8888/: Kernel started: a6195140-76ee-4cf5-a9a8-6e12f91214bd
info 15:19:51.380: Waiting for idle on (kernel): a6195140-76ee-4cf5-a9a8-6e12f91214bd -> unknown
info 15:19:54.44: Finished waiting for idle on (kernel): a6195140-76ee-4cf5-a9a8-6e12f91214bd -> idle
info 15:19:54.45: Started session for kernel f04db549ba0970b589380d97e582f43d45ef8ec35c04c0bd98d16c40e703dc2e..python3./python./.-m#ipykernel_launcher
info 15:19:54.45: Finished connecting kernel f04db549ba0970b589380d97e582f43d45ef8ec35c04c0bd98d16c40e703dc2e..python3./python./.-m#ipykernel_launcher
http://127.0.0.1:8888/: Creating new notebook 
info 15:19:54.49: Executing silently Code (idle) = __vsc_ipynb_file__ = "/WorkspaceLaunchTaskDemo/hello.py"\n%config Completer.use_jedi = False
info 15:19:54.113: Executing silently Code (completed) = __vsc_ipynb_file__ = "/WorkspaceLaunchTaskDemo/hello.py"\n%config Completer.use_jedi = False
info 15:19:54.114: Waiting for idle on (kernel): a6195140-76ee-4cf5-a9a8-6e12f91214bd -> idle
info 15:19:54.114: Finished waiting for idle on (kernel): a6195140-76ee-4cf5-a9a8-6e12f91214bd -> idle
info 15:19:54.116: Updating preferred kernel for remote notebook a6195140-76ee-4cf5-a9a8-6e12f91214bd
info 15:19:54.119: Creating server with url : http://127.0.0.1:8888/
info 15:19:54.119: Executing silently Code (idle) = __file__ = '/WorkspaceLaunchTaskDemo/hello.py'
info 15:19:54.150: Executing silently Code (completed) = __file__ = '/WorkspaceLaunchTaskDemo/hello.py'
info 15:19:54.154: Generated code for 1 = <ipython-input-1-d853b20065a6> with 2 lines
info 15:19:54.181: Creating server with url : http://127.0.0.1:8888/
info 15:19:54.208: Cell 1 executed with state Success

@rchiodo
Copy link
Contributor

rchiodo commented May 31, 2022

Something is weird in the GIF. There is NO colorization whatsoever on the python file. VS code ships with a tmlanguage file for python so it should colorize it? Is it possible to turn that off?

@greazer greazer added vscode-web bug Issue identified by VS Code Team member as probable bug and removed triage-needed Issue needs to be triaged labels Jun 2, 2022
@greazer greazer closed this as completed Jun 2, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

4 participants