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 比較ビューの代わりに表示されれば、外部オブジェクトが存在する。