-
Notifications
You must be signed in to change notification settings - Fork 10
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
Compile error when using custom Nimble environment variable #216
Comments
If I understand this correctly, there is a As for a temporary fix, I would like to avoid regex if possible. I would prefer if we could just trim off everything before the JSON starts instead. So basically remove everything until the first |
How about mini lexical analysis? I don't trust crop until About that bug, I do not open issue yet. I just feel lazy to do it. |
IMO, this is in principle a nimble bug, and we should not have to do a complex solution to this on our side. We should do the simplest solution possible. This is a general rule of coding that I wish I followed more myself. Implementing our own parser is too complex of a solution in my opinion, but I appreciate the initiative. :D
Change the rule to the first # remove this
{
# keep this I don't see how nimble would cause a false positive in this case. Even if a path contained a
Someone should. That is the correct place to solve this issue. Let me know if you don't plan on opening the issue, and I'll do it myself :) |
While I say mini lexical analysis, I mean |
Oh, then that might actually be simpler 😯 If you make a PR that uses that approach (without using regex), I'm for approving it 😄 |
I just thought of that after reply to you 😅 |
No hurry, take it when you have the time and energy 😁 |
hi, agree that this is a nimble bug but instead of a workaround for our parsing I found a workaround looking at nimble code for display. There is indeed a |
Fixed by #230 |
nimib/src/nimib/config.nim
Lines 9 to 11 in dc89060
When using
nimble dump --json
with custom Nimble environment variable, it will also outputInfo: Using the environment variable: ...
at the front of json.So when using that result string with
parseJson()
, it will error.The text was updated successfully, but these errors were encountered: