Search Issue Tracker

By Design

Votes

0

Found in

6000.0.47f1

6000.1.0b15

6000.2.0a9

Issue ID

UUM-103307

Regression

No

"Could not retrieve value at path..." warnings flood the Console when UI Toolkit tries to bind list item fields without the ScriptableObject being correctly assigned as the binding context

-

How to reproduce:

1. Open the project: “IN-99199_Bug uitoolkit so list”
2. Open Window → UI Toolkit → SOEditorWindow
3. Click the “+” button
4. Observe the Console

Expected result: Not flooding console with warnings
Actual result: Warnings “Could not retrieve the value of path…” flood the Console

Reproducible with: 2023.3.0b10, 6000.0.47f1, 6000.1.0b15, 6000.2.0a9
Could not test with: 2022.3.61f1 (ListView does not contain definition dataSource)

Reproducible on: Windows 11
Not reproducible on: No other environments tested

  1. Resolution Note:

    This is expected. By default, when adding an item to the list view outside of the inspector, it will add a "default" item. For reference types, a null item will be added to the list. This will make the bindings for the new item fail since the value cannot be set at the binding path. This behaviour can be configured using the itemsAdded callback of the list view.

    For the logs specifically, this is also expected. By default, the editor window will report all bindings errors to the console. This is configurable via the kebab menu on the top right corner of the editor window. You can set the Bindings Console Logs to "Once per result" to reduce the amount of logs received when the error is same update after update and you can set it to "No logs" to not receive any logs at all.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.