dlr-gtlab / gtlab-core

GTlab Core Framework
https://www.gtlab.de
Other
7 stars 2 forks source link

Activate warning for unknown classes only in dev mode #1167

Closed jensschmeink closed 6 months ago

jensschmeink commented 6 months ago

Description

The widget entries for unknown classes is only shown in dev mode

How Has This Been Tested?

Checklist:

rainman110 commented 6 months ago

Is this a draft PR or should it be reviewed?

jensschmeink commented 6 months ago

Could be reviewed. Is a simple change to start show the dialog for unknown classes only in dev mode

rainman110 commented 6 months ago

@jensschmeink How can I even show the unkown classes dialog (before this change)? I tried to open a project using predesign and removed the predesign module first. Then I don't get this dialog but only the "unknown module" dialog.

jensschmeink commented 6 months ago

@jensschmeink How can I even show the unkown classes dialog (before this change)? I tried to open a project using predesign and removed the predesign module first. Then I don't get this dialog but only the "unknown module" dialog.

It is the same dialog but another page

rainman110 commented 6 months ago

@jensschmeink How can I even show the unkown classes dialog (before this change)? I tried to open a project using predesign and removed the predesign module first. Then I don't get this dialog but only the "unknown module" dialog.

It is the same dialog but another page

I just have the page unknown modules: image

jensschmeink commented 6 months ago

@jensschmeink How can I even show the unkown classes dialog (before this change)? I tried to open a project using predesign and removed the predesign module first. Then I don't get this dialog but only the "unknown module" dialog.

It is the same dialog but another page

I just have the page unknown modules: image

I think a module package is not shown if it is unknown and so non of your predesign objects are tried to be constructed. To reproduce add a predesign calculator to one process.

rainman110 commented 6 months ago

Okay, I could reproduce it.

rainman110 commented 6 months ago

@jensschmeink With your code changes, I still get the error dialog ?! I am not in dev mode.

image

jensschmeink commented 6 months ago

@jensschmeink With your code changes, I still get the error dialog ?! I am not in dev mode.

image

Yes, you get it as long there is also found an unknown module. If the unknown classes would be the only reason to show the warning it is not shown anymore

rainman110 commented 6 months ago

I think the problem is, that the popup opens up, because it also has unknown modules. What are the cases, when you have all modules but still unknwn classes?

jensschmeink commented 6 months ago

I think the problem is, that the popup opens up, because it also has unknown modules. What are the cases, when you have all modules but still unknwn classes?

If you have unkown modules but you save your project. Then the usage of the module is no longer registered in the project and there is no comparison of the footprints failing. But the classes use din the project are till unknown

rainman110 commented 6 months ago

If you have unkown modules but you save your project.

Okay, this sounds dangerous to me. Just by saving, I loose the connection to the module? Should we fix this (in a separate issue)? Or is this intentional?

jensschmeink commented 6 months ago

If you have unkown modules but you save your project.

Okay, this sounds dangerous to me. Just by saving, I loose the connection to the module? Should we fix this (in a separate issue)? Or is this intentional?

I'm not completely sure about that behaviour, so we should check it, discuss it and repair it in another issue