Skip to content

DuplicateWidgetID error message should surface widget name#1942

Merged
akrolsmir merged 8 commits intostreamlit:developfrom
akrolsmir:fix-ids
Aug 31, 2020
Merged

DuplicateWidgetID error message should surface widget name#1942
akrolsmir merged 8 commits intostreamlit:developfrom
akrolsmir:fix-ids

Conversation

@akrolsmir
Copy link
Copy Markdown
Contributor

@akrolsmir akrolsmir commented Aug 31, 2020

Fixes #1941

@akrolsmir akrolsmir requested a review from a team August 31, 2020 21:57
Fixes streamlit#1941

This was an error made when refactoring out DG.

We should ideally have regression tests too, but let's not block.
@tconkling
Copy link
Copy Markdown
Contributor

tconkling commented Aug 31, 2020

Because no good deed goes unpunished - but also especially because this is a regression: can you add a test?

@akrolsmir
Copy link
Copy Markdown
Contributor Author

Because no good deed goes unpunished - but also especially because this is a regression: can you add a test?

Even better -- we already have a regression test for this, except it wasn't running at all because the code was structured incorrectly. Essentially it was like

try:
   throw error
   check_regression()
catch e

when it should have been

try:
   throw error
catch
   check_regression()

@tconkling
Copy link
Copy Markdown
Contributor

I wrote those broken tests and I feel shame :( - thanks for catching that

@akrolsmir
Copy link
Copy Markdown
Contributor Author

No shame - thanks for putting in the work to write those in the first place!

@akrolsmir akrolsmir merged commit 4d0182d into streamlit:develop Aug 31, 2020
tconkling added a commit to tconkling/streamlit that referenced this pull request Sep 8, 2020
* develop:
  Migrate Modal to Baseweb (streamlit#1930)
  Update bl dependency to resolve CVE (streamlit#1965)
  Force reinstall of setuptools to 49.6.0 (streamlit#1962)
  ComponentInstance unit tests (streamlit#1956)
  Update change log
  Fix alignment of `.. output::` command in st.write() (streamlit#1955)
  Fix alignment of `.. output::` command in st.write() (streamlit#1955)
  Add spacing to slider docs
  Up version to 0.66.0
  Switch statement to include ArrowTable (streamlit#1951)
  Remove st.write from unsupported in sidebar (streamlit#1952)
  Remove st.write from unsupported in sidebar (streamlit#1952)
  Switch statement to include ArrowTable (streamlit#1951)
  Add deprecation label to st.deck_gl_chart (streamlit#1943)
  Pin setuptools to <= 49.6.0 (streamlit#1944)
  DuplicateWidgetID error message should surface widget name (streamlit#1942)
  Set z-index of balloons to 1000000 to allow it to display over other elements. (streamlit#1934)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crazy error message shown when two widgets have the same key

3 participants