Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Add all env. vars. used to pass mojo lib. search paths to tutorial #3997

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

izo0x90
Copy link

@izo0x90 izo0x90 commented Feb 14, 2025

The env. var. shown in the tutorial section of the development document for the Stdlib is (at least in some cases) insufficient to point mojo to a newly build stdlib.mjpkg. This adds all the same variable that are passed in the lit config to hopefully get all edge cases covered and make getting stared easier.

Issue mentiones on Modular Discord:
https://discord.com/channels/1087530497313357884/1151418092052815884/1295522197275934824
https://discord.com/channels/1087530497313357884/1282843332690575444/1282845603017130127

The env. var. shown in the tutorial section of the development document
for the Stdlib is (at least in some cases) insufficient to point `mojo`
to a newly build stdlib.mjpkg. This adds all the same variable that are
passed in the `lit` config to hopefully get all edge cases covered and
make getting stared easier.

Signed-off-by: Hristo I. Gueorguiev <[email protected]>
@izo0x90 izo0x90 changed the title Add all env. vars. used to pass mojo lib. search paths to tutorial [docs] Add all env. vars. used to pass mojo lib. search paths to tutorial Feb 14, 2025
@owenhilyard
Copy link
Contributor

I'm wondering if this makes sense or if it's better to ship the stdlib with a modular.cfg in its root which has the import paths specified, if the LSP and compiler can handle that. If they can't, I'd like to suggest an "inherit/override" system, where the stdlib modular.cfg could be something like

[inherit]
path = "./.magic/envs/default/share/max/modular.cfg"

[mojo-max.import_path]
prepend = true
path = "./build/"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants