Comments (4)
I updated the title to reflect that this is a parser bug as it's trying to resolve sys
as the stdlib package sys
in your case, despite there not being an explicit import in your program. The same is true of the random
package if you swap your identifier, for example.
from mojo.
The same crash happens even if the package is imported (and thus resolved):
import algorithm
fn main():
print( algorithm )
from mojo.
Thanks for filing! We'll take a look
from mojo.
This has been fixed at top of tree
from mojo.
Related Issues (20)
- [BUG]: Can't iterate over `DynamicVector` passed in as parameter HOT 2
- [BUG]: `[]` notation of `Dictionary` doesn't pick the right overload
- [BUG]: mojo crash: assertion failed in Casting.h:566
- [BUG]: Compiler crashes while analyzing function signature after variadic arguments
- [BUG]: Empty strings concat raises `(os/kern) failure (5)` sometimes(!) HOT 1
- [BUG]: Parser crashes binding Reference to lvalue with subtype lifetime HOT 3
- [BUG]: Wrong error produced for borrowed argument
- [Feature Request] Make AnyRegType EqualityComparable
- [BUG]: Debugger does not stop at breakpoint in VSC on Github codespace HOT 2
- [BUG]: mojo crash: Assertion `outermostFuncScope && "couldn't find an enclosing function"' failed.
- [BUG]: mojo crash: Assertion `argIdx != 0 && "TODO: unexpected self mismatch"' failed.
- [BUG]: mojo crashes while parsing the `0 and Float32`
- Mojo SDK post-install test failure on Ubuntu 24.04
- [Modular CLI]: Installation of Mojo fails (fedora-39) HOT 2
- [BUG]: Mojo parses `"" + str(1)` as `("")\(+s)`
- [BUG]: Unhygienic internal use of type name `T` in traits causes surprising behaviour
- [BUG]: Parser crash
- [BUG]: `import a.b` made `b` available but not `a.b`
- [BUG]: `math.copysign` doesn't restrict it's dtype to float HOT 5
- [BUG]: Runtime crash when trying to access dict_values() element HOT 1
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.