Let's talk about errors and warnings.

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Let's talk about errors and warnings.

Post by GeneFC »

I think that PR misses the point.

There is no error with "CheckGeometry" itself, but there is an error shown in the result from "CheckGeometry".

Do you really want to suppress that error from the majority?

Gene
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Let's talk about errors and warnings.

Post by vocx »

GeneFC wrote: Tue May 26, 2020 6:55 pm There is no error with "CheckGeometry" itself, but there is an error shown in the result from "CheckGeometry".
I think the idea is that an error should be reported only when the function itself has problems and cannot proceed. In this case, the function works correctly.

That the shape has an error is a different matter. That error is the result of the analysis of the shape, and as such, that analysis should be reported in the task panel window, but it should not be displayed as an error in the terminal, because no error was encountered in the execution of the command itself.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
chrisb
Veteran
Posts: 54202
Joined: Tue Mar 17, 2015 9:14 am

Re: Let's talk about errors and warnings.

Post by chrisb »

vocx wrote: Tue May 26, 2020 2:46 am I tend to agree with this paradigm, and disagree a bit with chrisb. In my opinion, the error should be raised whenever a tool or command cannot proceed due to some cause. It does not have to be a catastrophic error that needs to be reported on the forum, it just has to be something that stops the user from proceeding. So in this case, yes, we should instruct the user the proper workflow with certain messages.
I can very well accept such messages in the cases you describe. But we often see the accusation that FreeCAD's error messages are poor and the user guidance needs improvements.
So in a perfect world we would not have some more or less program internal error message in the report view, but either a wonderful and clear error dialog, or - even better - it would be impossible to reach such state while leaving all the freedom to the user.

That's what I mean, that it should be clear, that this is not the final state, albeit very well acceptable - even for years to come.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Let's talk about errors and warnings.

Post by sgrogan »

sliptonic wrote: Tue May 26, 2020 3:55 pm Change my mind.
The application checked for the availability of an "optional" library. If Path handles this gracefully its a warning "this is not possible, install ocl"

If ocl becomes a dependency and its not there, then its an error.
"fight the good fight"
User avatar
dubstar-04
Posts: 698
Joined: Mon Mar 04, 2013 8:41 pm
Location: Chester, UK
Contact:

Re: Let's talk about errors and warnings.

Post by dubstar-04 »

herbk wrote: Thu Jun 04, 2020 7:50 am
chrisb wrote: Thu Jun 04, 2020 7:27 am Milling time should not be a warning, that could be an easy to implement relief, if you don't auto show report view on normal messages.
Related Post:
https://forum.freecadweb.org/posting.ph ... 5&p=405437

current logs:

No Tool Controller = Error - ("No Tool Controller selected.")
No Feed rate = Warning - ("Tool Controller feedrates required to calculate the cycle time.")
No Rapid Rates = Warning - ("Add Tool Controller Rapid Speeds on the SetupSheet for more accurate cycle times.")

Maybe the rapid rate shouldn't be a warning but IMO the other two are correct.

Thoughts?
chrisb
Veteran
Posts: 54202
Joined: Tue Mar 17, 2015 9:14 am

Re: Let's talk about errors and warnings.

Post by chrisb »

Milling time is shown in the Job itself, so a warning should indeed be issued if the number shown there is probably wrong. However, as said in the other post I would prefer a different technique for retrieving the milling time only on demand.
Another possibility would be to make the whole sum of milling times invalid if a single part is invalid. I don't know if this is possible without raising other errors.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Let's talk about errors and warnings.

Post by herbk »

The warnings itselve are OK.
The Problem is that FC opens the output panel although i have disabled "show warnings".
Gruß Herbert
User avatar
Wsk8
Posts: 182
Joined: Fri Dec 07, 2018 6:24 pm

Re: Let's talk about errors and warnings.

Post by Wsk8 »

Disable "show report view on warning/error"

mfg
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Let's talk about errors and warnings.

Post by herbk »

Wsk8 wrote: Thu Jun 04, 2020 4:55 pm Disable "show report view on warning/error"

mfg
like said: it is disabled
Gruß Herbert
chrisb
Veteran
Posts: 54202
Joined: Tue Mar 17, 2015 9:14 am

Re: Let's talk about errors and warnings.

Post by chrisb »

Wsk8 wrote: Thu Jun 04, 2020 4:55 pm Disable "show report view on warning/error"
That's acceptable as a shorttime workaround for certain situations, but it can't be a solution.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply