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
52 stars 4 forks source link

Impossible to add library if project is encrypted #86

Closed elconfa closed 10 months ago

elconfa commented 1 year ago

I found a problem: my project has software protection (encryption) of the project and Twinpack does not allow to import of any library into the project. By unencrypting the project, everything works fine. Currently, to work around the problem, I unencrypt the project, add the library, and then put the encryption back before uploading the project to the PLC.

Thanks

1 2

iadonkey commented 1 year ago

Can you please try the following:

Then you should be able to add libraries and keep the project encrypted. Since the project is encrypted it seems that Twinpack is not able to create the configuration on the fly. Having a configuration file should workaround this issue for now.

elconfa commented 1 year ago

The "Create" button gives me an error (the project is unecrypted)

3

iadonkey commented 1 year ago

Sometimes the automation interface is a bit weird here. Can you to save and close the solution, open it again and press create again please?

elconfa commented 1 year ago

I tried to unencrypt the project and close Twincat. Reopen the project, but the "Create" button still does not work.

iadonkey commented 1 year ago

Unfortunately we can’t reproduce the problem. Could you upload the Twinpack Log, which is located in

%LOCALAPPDATA%\Zeugwerk\logs\Twinpack\Twinpack.debug.log

If possible, could you also upload your solution? We need the general structure of projects, plcs of the solution to debug this. Maybe you have non-plc projects in your solution? (This would cause an issue atm). Of course you can delete all the source code for this.

If this is not possible and/or we still don’t find the issue with our setup: Since Twinpack is open source you could also try to debug it yourself. We will write a guide how to debug the vsix, but it boils down to this: