-
Notifications
You must be signed in to change notification settings - Fork 228
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
Refactor stdlib-candidate for nupm #790
Conversation
❯ nu --ide-check 10 stdlib-candidate/std-rfc/mod.nu | $'[($in)]' | from nuon
╭───┬────────────┬──────────┬───────────────────┬─────────────────╮
│ # │ type │ severity │ message │ span │
├───┼────────────┼──────────┼───────────────────┼─────────────────┤
│ 0 │ diagnostic │ Error │ Module not found. │ ╭───────┬────╮ │
│ │ │ │ │ │ start │ 24 │ │
│ │ │ │ │ │ end │ 31 │ │
│ │ │ │ │ ╰───────┴────╯ │
│ 1 │ diagnostic │ Error │ Module not found. │ ╭───────┬────╮ │
│ │ │ │ │ │ start │ 24 │ │
│ │ │ │ │ │ end │ 31 │ │
│ │ │ │ │ ╰───────┴────╯ │
│ 2 │ diagnostic │ Error │ Module not found. │ ╭───────┬────╮ │
│ │ │ │ │ │ start │ 46 │ │
│ │ │ │ │ │ end │ 52 │ │
│ │ │ │ │ ╰───────┴────╯ │
│ 3 │ diagnostic │ Error │ Module not found. │ ╭───────┬────╮ │
│ │ │ │ │ │ start │ 46 │ │
│ │ │ │ │ │ end │ 52 │ │
│ │ │ │ │ ╰───────┴────╯ │
│ 4 │ diagnostic │ Error │ Module not found. │ ╭───────┬────╮ │
│ │ │ │ │ │ start │ 75 │ │
│ │ │ │ │ │ end │ 80 │ │
│ │ │ │ │ ╰───────┴────╯ │
│ 5 │ diagnostic │ Error │ Module not found. │ ╭───────┬────╮ │
│ │ │ │ │ │ start │ 75 │ │
│ │ │ │ │ │ end │ 80 │ │
│ │ │ │ │ ╰───────┴────╯ │
│ 6 │ diagnostic │ Error │ Module not found. │ ╭───────┬─────╮ │
│ │ │ │ │ │ start │ 94 │ │
│ │ │ │ │ │ end │ 104 │ │
│ │ │ │ │ ╰───────┴─────╯ │
│ 7 │ diagnostic │ Error │ Module not found. │ ╭───────┬─────╮ │
│ │ │ │ │ │ start │ 94 │ │
│ │ │ │ │ │ end │ 104 │ │
│ │ │ │ │ ╰───────┴─────╯ │
╰───┴────────────┴──────────┴───────────────────┴─────────────────╯ But this works: ❯ nu -n -c 'use stdlib-candidate/std-rfc/mod.nu set-env; set-env -h'
Gracefully set an environment variable or merge a nested option.
...etc. Maybe @AucaCoyan can help me identify next steps to debug the testing script? I did it in Zed without the LSP I'll check VS Code now. |
@texastoland This is what I said in discord. |
Mmmm yes, this is not correct. Let me check what can we do |
65aa7cc
to
f544753
Compare
I'd avoid relying on the nupm registries and online package installation because that's guaranteed to change, the current implementation is just a proof of concept. If online package installation is not requirred, then it's OK to merge. It's hard to tell from the diff. |
Confirmed can:
The individual commits are readable (unlike the diff) and summarized above. The theme of my changes was just moving existing code:
|
f544753
to
36c07d7
Compare
@fdncred Rebased and new CI (correctly running and) passing |
OK, I see the If nupm changes such that it breaks the CI, the CI could be configured to fetch the last working commit until the breakage is updated. |
Easier to review individual commits because of renames. Happy to provide DiffNow links if helpful. Involved:
nupm.nuon
from another directoryinsert
implements closure$in
inconsistently nushell#12193)To test first set up nupm then: