Skip to content

Remote browser: Assert after adding a new remote #234

Description

@foundry-markf

I was browsing a package, and while the browser was open, I added a new remote to the local cache.
In the browser, I then went to choose a new recipe revision, but it always showed the same one regardless of what I chose.
I saw this in the console

Traceback (most recent call last):
  File "C:\dev\cruiz\src\cruiz\remote_browser\pages\packageidpage.py", line 338, in _on_back
    self._ui.stackedWidget.setCurrentWidget(self._ui.rrev)
  File "C:\dev\cruiz\src\cruiz\remote_browser\pages\reciperevisionpage.py", line 109, in showEvent
    self._ui.rrev_pkgref.setText(self._previous_pkgref)
  File "C:\dev\cruiz\src\cruiz\remote_browser\pages\page.py", line 93, in _previous_pkgref
    return self._previous_page.package_reference
  File "C:\dev\cruiz\src\cruiz\remote_browser\pages\packagereferencepage.py", line 119, in package_reference
    assert len(selection) == 1
AssertionError

Unsure if it's completely related to adding the new remote, but it was suspicious.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions