Josiah
Josiah
MModular
Created by obadakhalili on 4/8/2024 in #questions
Debugging Issue with Mojo's VSCode Debugger
Actually when I do mojo debug -I . tests/samples/test_hello_world.mojo and settings show, I also see this target.disable-aslr (boolean) = false If I do --vscode it shows the personality set error again, doesn't let me view settings show
38 replies
MModular
Created by obadakhalili on 4/8/2024 in #questions
Debugging Issue with Mojo's VSCode Debugger
@Walter Erquinigo I have cat /home/fastrl_mojo_user/.lldbinit settings set target.disable-aslr false I still get:
mojo debug --vscode -I . tests/samples/test_hello_world.mojo
[INFO] Additional logs can be found in /tmp/mojo-debug-rpc-logs-280557.txt. Please include them when reporting bugs.

Active VS Code windows:
0: [VSCode] test_hello_world.mojo
Last activity identified 5 seconds ago, pid=328, port=12355

Only one VS Code window was found. The debug session will be launched in this window automatically.

mojo: error: RPC Server response:
Error: Unable to start the debug session
mojo debug --vscode -I . tests/samples/test_hello_world.mojo
[INFO] Additional logs can be found in /tmp/mojo-debug-rpc-logs-280557.txt. Please include them when reporting bugs.

Active VS Code windows:
0: [VSCode] test_hello_world.mojo
Last activity identified 5 seconds ago, pid=328, port=12355

Only one VS Code window was found. The debug session will be launched in this window automatically.

mojo: error: RPC Server response:
Error: Unable to start the debug session
When I use mojo-lldb and do settings show I see target.disable-aslr (boolean) = false . Using mojo-lldb mojo looks like it kind of works, but it doesn't like it when I include -I . as part of settings set -- target.run-args "-I . tests/samples/test_hello_world.mojo". This is also sort of clunky even if it worked.
38 replies
MModular
Created by obadakhalili on 4/8/2024 in #questions
Debugging Issue with Mojo's VSCode Debugger
38 replies
MModular
Created by obadakhalili on 4/8/2024 in #questions
Debugging Issue with Mojo's VSCode Debugger
No description
38 replies
MModular
Created by obadakhalili on 4/8/2024 in #questions
Debugging Issue with Mojo's VSCode Debugger
@Hylke is this the current official way to run the Mojo debugger using VS code? Tried using the mojo docs, and it just doesn't work, I get a personality set error. Using the --vscode looks much simpler at least, and I'm on nightly so I'll try this out tried it, same issue
38 replies
MModular
Created by Josiah on 8/4/2024 in #questions
Difficult Trait Conformance
I still get:
error: no matching function in initialization
return Optional[T](self.src[self.index - 1])
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
note: candidate not viable: expected at most 1 positional argument, got 2
from fastrl_mojo.data.datapipes.base import ListDatapipe
^note: candidate not viable: argument #1 cannot be converted from 'T' to 'T'
from fastrl_mojo.data.datapipes.base import ListDatapipe
error: no matching function in initialization
return Optional[T](self.src[self.index - 1])
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
note: candidate not viable: expected at most 1 positional argument, got 2
from fastrl_mojo.data.datapipes.base import ListDatapipe
^note: candidate not viable: argument #1 cannot be converted from 'T' to 'T'
from fastrl_mojo.data.datapipes.base import ListDatapipe
Yeah sounds like parameterizable traits will be needed to make this actually work, but I appreciate the response!
9 replies
MModular
Created by Jack Clayton on 5/10/2024 in #community-showcase
Basalt: ML Framework
I think there are still features needed (?). I saw this thread: https://discord.com/channels/1087530497313357884/1224434323193594059/1238338296699158598 which gave me the impression its not possible yet
26 replies
MModular
Created by Jack Clayton on 5/10/2024 in #community-showcase
Basalt: ML Framework
I'm interested in dataloading and made a comment in https://github.com/basalt-org/basalt/issues/90#issuecomment-2127550998. I agree with what as posted on one of the other channels about not licking the cookie though. I'm curious what frameworks people have used for dataloading / what they like / dont like. To me I think mojo still needs Iterable / Gettable traits to make transforms/pipes possible to even prototype.
26 replies
MModular
Created by obadakhalili on 4/8/2024 in #questions
Debugging Issue with Mojo's VSCode Debugger
Stumbled on here also. Kind of looking for a PYTHON_PATHS env var. I'm also trying to use basalt as a thirdparty package with vscode. The launch.json doesnt work for me either Its nice they have a package API to transport stuff, but since mojo is super young, and the packages are super new, being able to import them in "develop" mode would be valuable.
38 replies