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 just got the following error while working on a file. I'm not exactly sure how to resolve it other than opening a new file. This happened randomly when the mojo debugger was responding to my code while I was working on the main file. Here is the error message:
A crash happened in the Mojo Language Server when processing this document. The Language Server will try to reprocess this document once it is edited again. Please report this issue in https://github.com/modularml/mojo/issues along with all the relevant source codes with their current contents.
If it helps, here is the code that I was working on:
`
from python import Python
from collections import Optional
struct Btree:
var root: Optional[Int]
var left: Btree
var right: Btree
fn __init__(inout self):
var root = Optional[Int](None)
alias left = Btree
var right = Optional[Int](None)
self.root = root
fn new() -> Btree:
return Btree()
if self.root:
self.left = new()
self.right = new()
fn isempty(inout self) -> Bool:
return self.root is None
fn insert(inout self, item: Int):
fn new() -> Btree:
return Btree()
if self.isempty():
self.root = Int(item)
print("Placing value in root ", item)`
This is the first time that I've posted code, so if there's anything that might help, please let me know and I'll be sure to try to improve my posts.
Steps to reproduce
Add screenshots if possible, to help explain the problem.
Include anything that might help us debug the issue.
The text was updated successfully, but these errors were encountered:
Issue description
I just got the following error while working on a file. I'm not exactly sure how to resolve it other than opening a new file. This happened randomly when the mojo debugger was responding to my code while I was working on the main file. Here is the error message:
A crash happened in the Mojo Language Server when processing this document. The Language Server will try to reprocess this document once it is edited again. Please report this issue in https://github.com/modularml/mojo/issues along with all the relevant source codes with their current contents.
If it helps, here is the code that I was working on:
`
from python import Python
from collections import Optional
struct Btree:
var root: Optional[Int]
var left: Btree
var right: Btree
This is the first time that I've posted code, so if there's anything that might help, please let me know and I'll be sure to try to improve my posts.
Steps to reproduce
The text was updated successfully, but these errors were encountered: