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

🐛 parser fixes #801

Merged
merged 9 commits into from
Jul 21, 2024
Merged

🐛 parser fixes #801

merged 9 commits into from
Jul 21, 2024

Conversation

AucaCoyan
Copy link
Contributor

@AucaCoyan AucaCoyan commented Mar 27, 2024

  • replace str collect for str join
  • replace str lpad for fill
  • str lpad -c for fill --width
  • str rpad -l for fill --alignment r --width
  • updated before_v0.60/README.md
  • $nu.scope.commands for scope commands
  • add a couple of if (true) {} else {} (else keyword)
  • $true for true
  • $false for false

@AucaCoyan AucaCoyan marked this pull request as ready for review March 27, 2024 13:54
@AucaCoyan
Copy link
Contributor Author

There are a couple of errors in some files, that is because they arent 0.91.1 compliant. I believe it can be merged with no problem

@fdncred
Copy link
Collaborator

fdncred commented Mar 27, 2024

I don't really get the point of modifying files in the before_v0.60 folder so that they don't work in a different way. Those files work with versions of nushell before 0.60 right now, although I doubt anyone is using those versions. If we change it like you have here, they neither work for versions before 0.60 or after 0.60.

The idea when I created the before_v0.60 folder was that people would move a given script to the appropriate folder in the new folder structure, then update it to work with whatever version they were working on. That would add the new script to the new folders, and remove the script from the old folders. Eventually, there would be no files in the before_v0.60 folder because all the scripts were ported. It hasn't quite worked out like that but that was the idea.

@AucaCoyan AucaCoyan marked this pull request as draft March 27, 2024 15:17
@AucaCoyan
Copy link
Contributor Author

I see. I'll revert some of those changes and see if I'm capable of moving some scripts to current nushell. I'll be back

@AucaCoyan AucaCoyan marked this pull request as ready for review April 28, 2024 11:53
@AucaCoyan
Copy link
Contributor Author

Well, time has passed and the PR still was in the same place I left it. I think it's better to stop here and leave the transcription from 0.60 to present nushell to another day.
One strange thing it came up was that I don't detect the errors the CI is throwing, nor in VS Code or in the terminal
image

image

No trouble at all. I'm using the same version 0.92.0.
Do you see anything to correct? Is the CI responding with a false positive or am I missing something?

@fdncred
Copy link
Collaborator

fdncred commented Jul 21, 2024

if you clean up the conflicts and test it out again we can land this, thanks.

@fdncred fdncred merged commit ba46538 into nushell:main Jul 21, 2024
1 check failed
@fdncred
Copy link
Collaborator

fdncred commented Jul 21, 2024

Thanks!

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