-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Don't treat warnings as errors #1386
Comments
Hi @krischik , It should already be the case. The default profile mode is The validation profile ( |
My config directory changes as I use different profiles for different purposes. Which means that it could well be that |
Just tried it again and: >alr build --development
ⓘ Building adacl/adacl.gpr...
Compile
[Ada] adacl-strings.adb
/Users/Shared/Work/Projects/AdaCL/adacl/src/adacl-strings.adb:592:10: warning: "Start" is not modified, could be declared constant [-gnatwk]
compilation of adacl-strings.adb failed
gprbuild: *** compilation phase failed
error: Command ["gprbuild", "-s", "-j0", "-p", "-P", "/Users/Shared/Work/Projects/AdaCL/adacl/adacl.gpr"] exited with code 4
error: Compilation failed. This is so frustrating. I'm in the development phase and I don't care constants right now. This is just too strict for development. |
As I said this is not the expected behavior. Can please share with us some details on how to reproduce the case? |
I think I'm also reproducing this using these steps:
There's a missing dependency and I don't know if it's relevant:
Compilation of Florist fails due to a warning:
Cannot be reproduced using withing directly florist_blady. Investigating this I reached to Blady-Com/florist#6, so maybe @charlie5 reproduced it also, or even it is expected by him, although I cannot see nothing in either his crate or florist that includes the switch #1209 might also be related. |
I have to add something, the switch is in fact inside florist_blady, but I had to search for
So I guess the problem comes from that in my case. The only part that I don't understand is why these other steps (directly withing florist_blady) do not raise the same problem. I see warnings in the compilation also in this case, but the
I suppose Alire is doing something different in this case, like building the florist_blady with the new crate GPR (issue_1386_2/issue_1386_2.gpr). But in principle, it doesn't seem its fault, since I've opened an issue in Blady-Com/florist#7 @krischik, I guess, also in your case, running |
I've seen something else that explains this, and it is not Alire's fault. It can only be said, that it could do something to warn about this kind of inconsistencies done by the user, if possible and convenient, which I don't know. The question is that the crate ashell is withing I suppose this wouldn't happen if the crate configuration model were used. I opened charlie5/aShell#7 for this, so I won't spam this issue anymore. |
Make it possible to make development build when there are warnings. Treat errors as warnings is fine for release builds but it's huge hinderance for development. I don't need perfectly formatted code to run the debugger or the unit tests. For development I want quick turnarounds.
Please add an option to disable
-gnatwe
for faster development.Note that switching off warnings entirely is not a good option either as I don't want to be surprised be warnings when doing the release compile.
The text was updated successfully, but these errors were encountered: