We are currently evaluating Codesys for a project where we use a HY-TTC590 controller. We rely on TortoiseSVN so we also installed the Codesys SVN package. It worked fine till 2 days ago. Since then we get an exception when launching our project.
We use SVN for our Twincat environment too and never so this kind of exceptions. Does anyone know what could be the cause an how to fix it? A clean action of SVN doesn't solves it.
Yes and no. It reports a file in c:\ProgramData\CODESYS\Temporary Files\<guid>.SVN\DUT\svnobj.
But that's it. I think it has something to do because we create folders in which we store functionblocks.</guid>
But I don't have any idea how to fix is. It seems like due to this, the project is corrupted too. I had a Struct in a file. The file seems to be gone but the struct details are still there. Strange
From your first screenshot, lines 2, 3 and 4 contain the possible causes:
1 Bugs in CODESYS SVN
==> Use the latest version
2 Files in the project directory which were not commited with CODESYS SVN/ other repository manipulation outside of CODESYS SVN.
With CODESYS SVN you can only use the CODESYS SVN to manipulate the repository. Sounds like you manually copied some folders / structs using tortoise SVN?
If so, to fix it you could: With CODESYS SVN check out the last known good revision of /trunk/ With CODESYS SVN branch this to /branches/fix/ With tortoise SVN delete the broken trunk With CODESYS SVN copy /branches/fix/ to /trunk/ Add the structs using CODESYS Commit to trunk
There might be some other SVN-fu, but I am no hardened SVN expert, just a user.
Note that to me it seems deleting project directories is an acceptable operation to perform with Tortoise SVN.
3 Your repository does not support SVN properties:
If this is the case then use the right SVN server.
Last edit: i-campbell 2020-12-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We are currently evaluating Codesys for a project where we use a HY-TTC590 controller. We rely on TortoiseSVN so we also installed the Codesys SVN package. It worked fine till 2 days ago. Since then we get an exception when launching our project.
We use SVN for our Twincat environment too and never so this kind of exceptions. Does anyone know what could be the cause an how to fix it? A clean action of SVN doesn't solves it.
Do the second third and fourth lines of the error message give any clues as to what may have caused the broken repository?
Yes and no. It reports a file in c:\ProgramData\CODESYS\Temporary Files\<guid>.SVN\DUT\svnobj.
But that's it. I think it has something to do because we create folders in which we store functionblocks.</guid>
But I don't have any idea how to fix is. It seems like due to this, the project is corrupted too. I had a Struct in a file. The file seems to be gone but the struct details are still there. Strange
Last edit: tdie 2020-12-19
Looking again at the exception, I see it's due to the stucts:
Last edit: tdie 2020-12-19
From your first screenshot, lines 2, 3 and 4 contain the possible causes:
1 Bugs in CODESYS SVN
==> Use the latest version
2 Files in the project directory which were not commited with CODESYS SVN/ other repository manipulation outside of CODESYS SVN.
With CODESYS SVN you can only use the CODESYS SVN to manipulate the repository. Sounds like you manually copied some folders / structs using tortoise SVN?
If so, to fix it you could:
With CODESYS SVN check out the last known good revision of /trunk/
With CODESYS SVN branch this to /branches/fix/
With tortoise SVN delete the broken trunk
With CODESYS SVN copy /branches/fix/ to /trunk/
Add the structs using CODESYS
Commit to trunk
There might be some other SVN-fu, but I am no hardened SVN expert, just a user.
Note that to me it seems deleting project directories is an acceptable operation to perform with Tortoise SVN.
If this is the case then use the right SVN server.
Last edit: i-campbell 2020-12-19