No worries, I imagine thats not automated as of yet, I just wasn’t sure if the new version would be available at the time the website is updated, or immediately after the recipe update is merged into the git repo
Apologies for the delayed update – this is now automated!
The 25.2 compatible patch is now available on MAX Builds Emberjson Package | MAX Builds
I got this error when parsing a string whose size is 1.8 MB:
var json = parse(string)
Error:
#0 0x00007f69885c793b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/mnt/Archive/Documents/Programming/Mojo/life/.pixi/envs/default/lib/libKGENCompilerRTShared.so+0x3c793b)
#1 0x00007f69885c5246 llvm::sys::RunSignalHandlers() (/mnt/Archive/Documents/Programming/Mojo/life/.pixi/envs/default/lib/libKGENCompilerRTShared.so+0x3c5246)
#2 0x00007f69885c8547 SignalHandler(int, siginfo_t*, void*) (/mnt/Archive/Documents/Programming/Mojo/life/.pixi/envs/default/lib/libKGENCompilerRTShared.so+0x3c8547)
#3 0x00007f69a3c49df0 (/lib/x86_64-linux-gnu/libc.so.6+0x3fdf0)
#4 0x00007f68d4026610
@notooth Could you provide the complete input in a file?
Does Emberjson support jsonl file? or is there any mojo library to read jsonl file?
Not at this time, but from the looks of it, it would be easy to add in. Could you describe your use case for it?
I am trying to read a dataset stored as jsonl file (many datasets are stored in jsonl format).
Ok yeah I think it makes sense to support that. Could you write a formal feature request on github and I’ll try to get to that soon.
ok thanks, will do
btw, how can I use emberjson? I run following, but get error message:
$ pixi add emberjson
Error: × failed to solve requirements of environment 'default' for platform 'linux-64'
├─▶ × failed to solve the environment
│
╰─▶ Cannot solve the request because of: No candidates were found for emberjson *.
Do you have the modular community channel added to your project? (https://repo.prefix.dev/modular-community). Though note that it currently only support stable releases. There has been some work done to support adding dependencies via github repo links like Go does, but I haven’t gotten around to making that possible in the emberjson repo, which I should do while I’m taking a look at this.
I already added the link to the channel in pixi.toml:
channels = [“https://conda.modular.com/max-nightly”, “conda-forge”, “https://repo.prefix.dev/modular-community”], is it correct?
But it didn’t work
this is the full pixi.toml:
[workspace]
authors = ["Cahya <My email>"]
channels = ["https://conda.modular.com/max-nightly", "conda-forge", "https://repo.prefix.dev/modular-community"]
name = "trie"
platforms = ["linux-64"]
version = "0.1.0"
[tasks]
[dependencies]
mojo = ">=25.6.0.dev2025090305,<26"
And the error message:
$ pixi add emberjson
Error: × failed to solve requirements of environment 'default' for platform 'linux-64'
├─▶ × failed to solve the environment
│
╰─▶ Cannot solve the request because of: No candidates were found for mojo
>=25.6.0.dev2025090305,<26.
It seems it can’t find emberjson in mojo 25.6.0.dev, so I changed the mojo dependency from “>=25.6.0.dev2025090305,<26” to “>=25,<26”, now it works.
Have you fixed the issue?
I don’t appear to have access to the link that you provided
I have just changed the file permission. Please access it again.
Looks like a particularly large string in that input was causing an issue in the vectorized fast-path string parsing since it was implemented using recursion. Seems to work fine now, thank you for reporting this!