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
I'm running into an issue with the VS Code extension freezing when trying to view the type of fold in the following code (simplified from an actual language AST):
typeast<'a> = [
| #Num(int)
| #Add('a, 'a)
]
typerecexpression=ast<expression>
// Hovering over "fold" freezes the language server, even with explicit signatureletrecfold= (expr: ast<'a>, transform: 'a=>'b): 'b=>switchexpr {
| #Num(_) asnum=>transform(num)
| #Add(lhs, rhs) =>transform(#Add(fold(lhs, transform), fold(rhs, transform)))
}
The tooltip gets stuck at "Loading...", formatting the file also becomes unresponsive. After about a minute, the following error gets logged in the extension output:
This is purely an extension issue, the code compiles and runs just fine. The issue persists after restarting VS Code without also restarting the build process, which makes me think that it may be related to formatting, and not actual type inference.
ReScript version: 11.1.3
Extension version: v1.55.5 (pre-release, but this also happens on stable)
OS: Windows 10
The text was updated successfully, but these errors were encountered:
Thanks for all the work on ReScript!
I'm running into an issue with the VS Code extension freezing when trying to view the type of
fold
in the following code (simplified from an actual language AST):The tooltip gets stuck at "Loading...", formatting the file also becomes unresponsive. After about a minute, the following error gets logged in the extension output:
Fatal error: exception Stack overflow
This is purely an extension issue, the code compiles and runs just fine. The issue persists after restarting VS Code without also restarting the build process, which makes me think that it may be related to formatting, and not actual type inference.
ReScript version: 11.1.3
Extension version: v1.55.5 (pre-release, but this also happens on stable)
OS: Windows 10
The text was updated successfully, but these errors were encountered: