Skip to content

Fix compile error when using custom nimble env (#216) #217

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

Closed
wants to merge 1 commit into from

Conversation

sent44
Copy link
Contributor

@sent44 sent44 commented Aug 19, 2023

Fix #216

Tell me if you don't want regex


proc getNimibVersion*(): string =
var dir = currentSourcePath().parentDir().parentDir()

if dir.splitPath().tail == "src":
dir = dir.parentDir()

let dumpedJson = execProcess("nimble dump --json", dir)
let dumpedJson = execProcess("nimble dump", dir)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let dumpedJson = execProcess("nimble dump", dir)
let dumpedJson = execProcess("nimble dump --json --silent", dir)

using just this change and removing all other changes should be a better fix

@pietroppeter
Copy link
Owner

hi, thanks for working on this!

As mentioned here #216 (comment) a better fix is just to use the --silent option. I added a suggestion for the line to be changed and the rest of changes should be discarded

@sent44
Copy link
Contributor Author

sent44 commented Jun 13, 2025

Fixed by #230
I was busy at that time and then forgot about this.

@sent44 sent44 closed this Jun 13, 2025
@sent44 sent44 deleted the sent44-patch-1 branch June 13, 2025 15:28
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.

Compile error when using custom Nimble environment variable
2 participants