-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix #13412 nim now recompiles for stdin input; SuccessX now configurable; can show whether it recompiled #13506
fix #13412 nim now recompiles for stdin input; SuccessX now configurable; can show whether it recompiled #13506
Conversation
The patch to extccomp is ok, the rest is noisy. How about we report 0 for LOC if it's a cached build? It makes sense, right, if it's cached, we looked at 0 lines of code. |
I stumbled across this today.. I meant to highlight above that Even with corrected |
acb8a61
to
0f91dea
Compare
nah, it's not 0 because of various config files etc; that would be a lie and also not what user wants
found a much better future proof solution, now I can add this to my ~/.config/nim/config.nims (or just use cmd line but that's not practical for that):
and it works exactly the way user wants, without affecting others, and can be later augmented with other fields a specific user may care about note:using |
0f91dea
to
b0da397
Compare
b0da397
to
cb7ffaa
Compare
cb7ffaa
to
dc5811e
Compare
ping @Araq (just rebased, no changes, was green already before rebase) |
Can you restrict this PR to the extccomp patch? |
…ndicates whether it recompiled
…put recompiled: $projectRecompiled"
dc5811e
to
8268aa2
Compare
done, PTAL (I will revisit the other changes I was making here in another PR as it is useful, there are still existing bugs related to nim not rebuilding when it should, which forces the suboptimal |
echo 'echo 1' | nim c -r -
silently gives wrong results (nimBetterRun not updated for stdin) #13412(in future PR this could be improved by not recompilining if stdin was the same but not sure how to do that; help welcome)
note
it's very useful and I use it a lot, lots of modern languages support it, eg python (
python -c
), D (rdmd --eval
) and plenty othersthis is very useful when you just want to quickly test a single command without having to open a file just for that;
having 1 liners that can be copy pasted in a shell without further work is quite useful too
that's a different beast, VM code semantics is different from runtime code and there are other differences