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
import random
let rand = random.new()
print(rand.next())
# Output:
Error in main.metis:3:11: IndexError: Cannot index a non indexable value of type native with index "next"
|> print(rand.next())
^~~~~~^
This also occurs with the Regex library:
import regex
let a = regex.compile("a")
let matches = a.match("asdf")
# Output:
Error in main.metis:3:16: IndexError: Cannot index a non indexable value of type native with index "match"
|> let matches = a.match("asdf")
^~~~~~~~~~~~~^
I'm not exactly sure what causes the error, however after looking at source code I have narrowed it down to being specifically native libraries that throw this error.
I am also using the latest version built from source instead of the latest one from releases, if that changes anything.