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 entrylongpaths = true
in thecore
area. Then close the project and open it again.[core] longpaths = true
Conflict prevents checkout
Questo errore può verificarsi con le operazioni Git che eseguono un'unione (git merge/git
pull
). Probabilmente ci sono file modificati nel repository che non fanno parte del CODESYS progetto.
Aprire il Stato e messa in scena vista. Controlla se i file «esterni» sono elencati in Modifiche non programmate. Ciò significa che i file che non possono essere trovati come oggetti nel progetto in Dispositivi o POU visualizzazioni.
Puoi anche verificare se un file è un file esterno nel modo seguente: Fai doppio clic sulla voce del file nel Oggetto colonna del Stato e marchio visualizzazione. Se il messaggio di errore External objects are not supported in diff view
appare al posto della vista di confronto, quindi esiste un oggetto esterno.