Comments (6)
@shashankprasanna can you please look at this issue please
from mojo.
Hi. Can you verify that you're running WSL 2? You should be able to run wsl -l -v
to see the version. If you're on 1, you can find Microsoft's upgrade instructions here: https://learn.microsoft.com/en-us/windows/wsl/install#upgrade-version-from-wsl-1-to-wsl-2
from mojo.
Hi, I am using
WSL version: 2.0.9.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.2861
from mojo.
now updated to the latest version of wsl but still facing the same error
WSL version: 2.0.14.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.2861
from mojo.
With the main() there, I get the build-time error of:
error: TODO: expressions are not yet supported at the file scope level
main()
^
Do you have that in your file and can you remove? We also released v0.6.1 if you want to try that.
from mojo.
may be you are using it in a .mojo file thats why you got that error if you run the same code in notebook you have to write like this. Yep I know I was already updated to the latest version of mojo as well.
from mojo.
Related Issues (20)
- [BUG] Flaky segfault during `mojo build` with `-D MOJO_ENABLE_ASSERTIONS`
- [BUG] alias materialization of list
- [Feature Request] Add memoization decorator
- [BUG] Popping a String from a dictionary then using the value leads to a double free crash.
- [BUG] LSP Crash with basic trait and __contains__
- [Feature Request] Improving the developer experience for new contributors
- [Feature Request] [mojo-lang] [proposal] Make fstring formatting a priority and define what features will be available HOT 1
- [Docs] Indicate which platform a search result is for
- [BUG] Possible stack overflow in compiler for suffiently complex type declaration, hang at lower complexities
- [Feature Request] [stdlib] [proposal] Migrate/wrap `String.join()` methods into `StringLiteral` and add temp dict and list iter args
- [Feature Request] [stdlib] [proposal] Rename `InlineList` to `Array` HOT 3
- mojo-lsp-server crashes in Visual Studio Code
- [Feature Request] Improve ergonomics for writing functions generic across integral scalars. HOT 4
- [stdlib] Support custom prefix for `hex` function HOT 2
- [BUG] Mojo crashes when attempting run `str()` during compilation. HOT 3
- [BUG] Compiler bug of walrus operator with multiple `and`s HOT 12
- [BUG] [nightly 2024.5.2205] Error when hashing `StringLiteral` in `Dict.__setitem__` when building from generic trait
- [BUG] Compiler error when storing function whose input/output types are parameterized in struct
- Optional Flag to Prevent Python Code Execution HOT 1
- [Feature Request] Add playsound module HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mojo.