Skip to main content

Troubleshooting – "Unknown error"

The error message "Unknown error" appears for a number of errors which CODESYS cannot resolve by itself. However, there are ways for the user to correct some of these errors.

In the message dialog with the error message, click the Details button to get more information about the error.

See below for instructions on how to handle the respective error:

Path too long

This error message can appear if the file paths of the Git project in the file system are too long. To resolve the problem, you need to enable the Long paths option for Git. There are two possible solutions for this:

  • Enable the option in the project via Git Config:

    In the open project, click the Git → Git Config command. In the configuration dialog, enable the Long paths option. Click OK to exit the dialog. Close the project and open it again.

  • Enable the option in the .gitconfig file of the user:

    Open the file C:\Benutzer\<user name>\.gitconfig (example: C:\Users\m.muster\.gitconfig). Edit the file so that there is an entry longpaths = true in the core area. Then close the project and open it again.

    [core]    
     longpaths = true

Conflict prevents checkout

Cette erreur peut se produire avec les opérations Git qui effectuent une fusion (git merge/gitpull). Il y a probablement des fichiers modifiés dans le référentiel qui ne font pas partie du CODESYS projet.

Ouvrez le Statut et mise en scène voir. Vérifiez si les fichiers « externes » sont répertoriés sous Changements non planifiés. Cela signifie que les fichiers qui ne peuvent pas être trouvés en tant qu'objets dans le projet dans Appareils ou POU vues.

Vous pouvez également vérifier si un fichier est un fichier externe comme suit : Double-cliquez sur l'entrée du fichier dans le Objet colonne du État et marque voir. Si le message d'erreur External objects are not supported in diff view apparaît à la place de la vue de comparaison, alors un objet externe existe.