Zeugwerk / Twinpack

Twinpack is a package manager for TwinCAT libraries with integration into the TwinCAT IDE. It enables the TwinCAT community to share their libraries and simplifies the continous integration of third-party components into TwinCAT projects.
https://twinpack.dev
GNU General Public License v3.0
47 stars 3 forks source link

my library is not published... #87

Closed runtimevic closed 11 months ago

runtimevic commented 11 months ago

Hello @seehma , @iadonkey , @zeugwerker

My library is not published... Is there a log site or where I can see why it is not published?

INFO Publishing package INFO Updating plcproj, setting Version=1.0.0.9, Company=TcMotion INFO Checking all objects of PLC TcMotion_Library ERROR TcMotion_Library does not compile! INFO Uploading to Twinpack ... ERROR Could not find a part of the path 'E:\BECKHOFF_TcMotion\Component_Motion_OOP_Axis\TC3_Axis.Zeugwerk\libraries\TC3.1\TcMotion_Library_1.0.0.9.library'. INFO Log in to Twinpack Server successful

thank you, Víctor.

iadonkey commented 11 months ago

Twinpack is only uploading libraries when check all objects is going through without errors. According to the log this is not the case here. In the output window of your Visual Studio / TcXaeShell there should be some indications why check all object fails. In order to upload the library you have to fix these errors.

However, it is actually a bug that there is no message box popping up to indicate that check all objects failed, we will fix this in the next patch.

runtimevic commented 11 months ago

Is this normal? Should these 2 steps be performed?

iadonkey commented 11 months ago

No, and this is actually only possible due to the bug I mentioned. The log message indicates that check all object for your PLC failed and that's why Twinpack wasn't creating the folder and saving to library to this location. The normal process requires that check all objects get through without any errors and thus, the output window of visual studio doesn't show any error.

Can you check this please? If check all objects actually works for you?

image image image

runtimevic commented 11 months ago

Hi, @iadonkey , Yes, this is the problem:

Message: Compile complete -- 135 errors, 101 warnings

Thanks you, Víctor

iadonkey commented 11 months ago

Do you want me to delete the package you uploaded from the Twinpack Server for now? In any case, if the errors are fixed you can simply upload a new version (i.e.1.0.0.10) And sorry for the inconvenience that we require check all objects to work, but it is the only way to ensure that all objects the library provides can be used by others without issues

runtimevic commented 11 months ago

Do not delete it, it is a functional library, the errors come from the template provided by PLCOpen, these errors do not affect the Beckhoff TwinCAT library. If I have time one day I can create a new PLC and put in the template provided by PLCOpen and then the TwinCAT library will be error-free...

iadonkey commented 11 months ago

Sure, but I hope you understand that we will prevent the workaround for future releases 😉