Mojo in VScode error

Hello,

When running print("hello world") in vscode i get these errors.

/Users/mac/jj.mojo:1:1: error: unable to locate module 'builtin'
print("Hello world")
^
/Users/mac/jj.mojo:1:1: error: TODO: expressions are not yet supported at the file scope level
print("Hello world")
^
/Users/mac/jj.mojo:1:1: error: use of unknown declaration 'print'
print("Hello world")


I suspect that it's got to do with the path or something? ("mojo.modularHomePath": "/Users/mac/.modular/")

Any solutions or ideas greatly appreciated.
Was this page helpful?