バージョンアップしたらコンパイルエラーが発生

Here is a forum for reporting failure to Arbor developer.
Please read the forum rules carefully and enter the information necessary to confirm the problem.

Note:
  • Please read the "Update Guide" carefully when updating Arbor.
  • The bugs that we already know are summarized in "Known Issues", so please check once.
  • Please check ReleaseNote and use the latest version if possible before reporting a bug.
  • Unity beta and alpha versions are not supported. Please use the official release version.
  • In principle, defects caused by the introduction of other assets are not supported. If you find a defect, please report it after isolating which asset is the problem.

ここは、Arbor開発者へ不具合を報告するためのフォーラムです。
フォーラムルールをよく読み、不具合確認に必要な情報を記載するようお願いします。

注意点:
  • Arborを更新する際は「アップデートガイド」をよく読み行ってください。
  • 既に把握している不具合は「既知の問題」にまとめてありますので一度確認してみてください。
  • 不具合報告をする前にReleaseNoteを確認し、なるべく最新バージョンを使用して下さい。
  • Unityのベータ版およびアルファ版はサポート対象外です。正式リリース版をご利用ください。
  • 他アセット導入による不具合は原則サポート対象外です。不具合を見つけた場合はどのアセットの問題であるか切り分けた上でのご報告をお願いいたします。

Forum rules
The items necessary for reporting are as follows.
  • OS(Required)
  • Unity version(Required)
  • Arbor version(Required)
  • How to reproduce(Required)
    The reproduction method should be described accurately so that anyone can read the same procedure.
    If you do not know the exact reproduction procedure, as long as you can remember it, so please tell us what you were doing immediately before and the last time you edited it.
  • Build platform
  • Reproduction project (Minimum configuration not including Arbor and other assets) or video

Note:
  • Please read the "Update Guide" carefully when updating Arbor.
  • The bugs that we already know are summarized in "Known Issues", so please check once.
  • Please check ReleaseNote and use the latest version if possible before reporting a bug.
  • Unity beta and alpha versions are not supported. Please use the official release version.
  • In principle, defects caused by the introduction of other assets are not supported. If you find a defect, please report it after isolating which asset is the problem.

報告に必要な項目は以下の通りです。
  • OS(必須)
  • Unityバージョン(必須)
  • Arborバージョン(必須)
  • 再現方法(必須)
    再現方法については、誰が読んでも同様の手順を行えるよう正確に記述するようにお願いいたします。
    もし正確な再現手順が不明な場合、覚えている限りで構いませんので直前に行っていたことや最後に編集した時のことを教えてください。
  • ビルドプラットフォーム
  • 再現プロジェクト(Arborや他アセットなどを含まない最小構成)もしくは動画

注意点:
  • Arborを更新する際は「アップデートガイド」をよく読み行ってください。
  • 既に把握している不具合は「既知の問題」にまとめてありますので一度確認してみてください。
  • 不具合報告をする前にReleaseNoteを確認し、なるべく最新バージョンを使用して下さい。
  • Unityのベータ版およびアルファ版はサポート対象外です。正式リリース版をご利用ください。
  • 他アセット導入による不具合は原則サポート対象外です。不具合を見つけた場合はどのアセットの問題であるか切り分けた上でのご報告をお願いいたします。
himawari

バージョンアップしたらコンパイルエラーが発生

Post by himawari »

・OS(必須)
 Windows10 Pro
・Unityバージョン(必須)
 Unity 2020.1.6f1
・Arborバージョン(必須)
 Arbor3 3.7.2
・再現方法(必須)
 以前までUnity2019.3.14f1、Arbor3 3.6.9で開発を行っていました。
 Unityのバージョンを2020.1.6f1にあげたら、ArborEditorのStateをドラッグできないUIの不具合が発生したので、Arbor3を3.7.2にアップデートしました。(アップデートガイドにあった手順で行いました)
 すると下記のエラーが出て、コンパイルできませんでした。
 (Welcomeウィンドウが開いているとアクティブになるたび発生)

ArgumentException: An item with the same key has already been added. Key: Extensions
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <fb001e01371b4adca20013e0ac763896>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <fb001e01371b4adca20013e0ac763896>:0)
ArborEditor.Icons..cctor () (at Assets/Plugins/Arbor/Internal/Editor/Icons.cs:152)
Rethrow as TypeInitializationException: The type initializer for 'ArborEditor.Icons' threw an exception.
ArborEditor.ArborEditorWindow.get_defaultTitleContent () (at Assets/Plugins/Arbor/Internal/Editor/Windows/ArborEditorWindow.cs:90)
ArborEditor.ArborEditorWindow.OnEnable () (at Assets/Plugins/Arbor/Internal/Editor/Windows/ArborEditorWindow.cs:585)

 Icons.cs:152にある、「s_TypeIcons」のDictionaryに同名Keyが登録されるようです。

 すでにs_TypeIconsにKeyが登録されていたらAddしないようにソースを書き換えたら動作しました。
User avatar
caitsithware
管理人
Posts: 493
Joined: 2015/08/17 12:41

Re: バージョンアップしたらコンパイルエラーが発生

Post by caitsithware »

ご報告ありがとうございます。

コンパイルエラーとのことですが、エラー内容を見たところ例外が発生していますね。
原因としてはおっしゃる通りs_TypeIconsにすでに同じ型で登録済みのため発生しているようです。

こちらの環境での再現確認が取れていないため、具体的な発生条件なども詳しく調査して修正いたします。
User avatar
caitsithware
管理人
Posts: 493
Joined: 2015/08/17 12:41

Re: バージョンアップしたらコンパイルエラーが発生

Post by caitsithware »

再現確認してみたところ、以下の条件で発生するようです。
  • クラスをpartialで分割している。
  • その上で同一クラスを定義しているソースファイルにクラスと同名(フォルダ分けてクラスと同名のファイル名)のもの複数がある。
  • Unityのバージョンは特に関係なさそう。
報告していただいたエラー内容からすると、Extensionsというクラスがその条件に合致するかと思いますが如何でしょうか。

また、StateBehaviourで上記条件に合致するクラスがある場合、挙動選択ウィンドウに多重表示されるなどの不具合も確認いたしましたのでそちらもあわせて修正いたします。
ご不便おかけして申し訳ございませんが、修正までしばらくお待ちください。
User avatar
caitsithware
管理人
Posts: 493
Joined: 2015/08/17 12:41

Re: バージョンアップしたらコンパイルエラーが発生

Post by caitsithware »

Arbor 3.7.3にて修正いたしました。
アセットストアから再DLし、リリースノートやreadme記載の更新手順に従って再インポートしてください。
Arbor 3.7.3 リリース | Arbor 3
Locked