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

执行合并的 Git 操作可能会出现此错误 (git merge/gitpull)。存储库中可能有修改过的文件,这些文件不属于存储库的一部分 CODESYS 项目。

打开 状态和阶段 观点。检查 “外部” 文件是否列在下面 未暂存的更改。这意味着在项目中找不到作为对象的文件 设备 或者 POU 观点。

您还可以按如下方式检查文件是否为外部文件:双击文件条目 物体 的专栏 状态与标记 观点。如果错误消息 External objects are not supported in diff view 出现而不是比较视图,则存在外部对象。