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

Gather is trying to run analysis on silent variable fetching executions from interactive window #4867

Closed
IanMatthewHuff opened this issue Feb 18, 2021 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@IanMatthewHuff
Copy link
Member

Steps:

  1. Run a few cell in the interactive window (running under the debugger)
  2. Open the variable explorer in the interactive window
  3. Look in the logging output

Couldn't analyze block _rwho_ls = %who_ls
print(_rwho_ls) , error encountered, Error: Parse error on line 1:
_rwho_ls = %who_lsprint(rwho
-----------^
Expecting '(', 'NAME', '*', 'ELLIPSIS', 'lambda', 'not', '+', '-', '~', '[', '{', 'NUMBER', 'IMAGINARY', 'None', 'True', 'False', 'STRING', 'BYTES', 'yield', got '%'
at _0x2e4359._0x55d591 (webpack:///./src/python3.js?:1:117001)
at _0x2e4359._0x1a1a86 [as parse] (webpack:///./src/python3.js?:1:119659)
at Object.eval [as parse] (webpack:///./src/python3.js?:1:136526)
at Object.parse (webpack:///./src/python-parser.ts?:1:3285)
at _0x292084.eval [as add] (webpack:///./src/program-builder.ts?:1:5091)
at _0xa381ec.eval [as addExecutionToLog] (webpack:///./src/log-slicer.ts?:1:4037)
at _0xa381ec.eval [as logExecution] (webpack:///./src/log-slicer.ts?:1:3922)
at GatherProvider.logExecution (/Users/ianhuff/.vscode-insiders/extensions/ms-python.gather-2021.1.0/out/extension.js:29644:43) , not adding to programs.
/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/bootstrap-fork.js:5

Not sure if this is causing an actual issue, but seems like something we can clean up. the who_ls magic is for fetching variables should be a silent execution. Might be that we are not sending this into the Extension API that gather is watching marked correctly.

@DavidKutu DavidKutu added the bug Issue identified by VS Code Team member as probable bug label Mar 2, 2021
@DavidKutu DavidKutu self-assigned this Mar 2, 2021
@IanMatthewHuff
Copy link
Member Author

Validated. I don't see the messages anymore.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2021
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

2 participants