Skip to content

Conversation

@vdonato
Copy link
Collaborator

@vdonato vdonato commented Nov 22, 2022

📚 Context

The message that we currently display to users when they give two widgets the same key
assumes that the two widgets have the same type, which is not necessarily the case.

It doesn't seem worth it to do the work (+add more complexity to this code) to include the
widget types in this message given that it should already be pretty easy to find the offending
widgets with the given stacktrace + key, so this PR just changes the message to not mention
the widget type.

  • What kind of change does this PR introduce?

    • Bugfix

🧠 Description of Changes

  • This is a visible (user-facing) change

🌐 References

Closes #5715

@vdonato vdonato added the security-assessment-completed Security assessment has been completed for PR label Nov 22, 2022
@vdonato vdonato merged commit 1ded9b0 into streamlit:develop Nov 27, 2022
@vdonato vdonato deleted the fix-misleading-error-message branch November 27, 2022 01:42
tconkling added a commit to tconkling/streamlit that referenced this pull request Nov 28, 2022
* develop:
  Improve error message when widgets of different types have the same key (streamlit#5748)
  Add a new make target to only install build dependencies (streamlit#5755)
  Fix camera_input flaky test (hopefully) (streamlit#5714)
  Fix py_snowflake job for Nightly Release (streamlit#5751)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DuplicateWidgetID error message is misleading when creating two different widgets with the same key

2 participants