You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This notebook works as expected. It defines the variable hello in cell 1 and has no problem printing it from cell 2.
The issue is that the language server incorrectly evaluates the context of each cell separately and fails to find the hello variable in cell 2 (red squiggly line, see screenshot below). This used to work correctly in v1.37.1.
There is a variation of this issue involving globalThis. Also used to work in v1.37.1.
With stuff.ts being:
I believed it worked in previous versions because the Deno LSP wasn't being used at all, and it wouldn't have worked for cells containing imports. Correct me if I'm wrong.
I believed it worked in previous versions because the Deno LSP wasn't being used at all, and it wouldn't have worked for cells containing imports. Correct me if I'm wrong.
This might well be the case, but I don't know for sure 😅
Consider the following simple notebook:
This notebook works as expected. It defines the variable
hello
in cell 1 and has no problem printing it from cell 2.The issue is that the language server incorrectly evaluates the context of each cell separately and fails to find the
hello
variable in cell 2 (red squiggly line, see screenshot below). This used to work correctly in v1.37.1.There is a variation of this issue involving
globalThis
. Also used to work in v1.37.1.With
stuff.ts
being:Full notebook source:
The text was updated successfully, but these errors were encountered: