Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProjectCommands.promptToImportImages always returns an empty list #1251

Closed
petebankhead opened this issue Mar 6, 2023 · 0 comments
Closed
Labels

Comments

@petebankhead
Copy link
Member

Bug report

Describe the bug
ProjectCommands.promptToImportImages claims to return a list of imported images, but it appears that it does not.

To Reproduce
Steps to reproduce the behavior:

  1. Run in an IDE using debug mode, with a breakpoint around
    List<ProjectImageEntry<BufferedImage>> entries = ProjectCommands.promptToImportImages(this, pathNew);
  2. Open a project
  3. Drag a new image onto the project and agree to import it
  4. Check the list contains the image (spoiler: it doesn't)

Expected behavior
A list is returned, as the docs suggest it should.

Or, if not possible (because the import is delayed), the method signature should be updated or there should be an async version explicitly provided.

Desktop (please complete the following information):

  • OS: All, presumably
  • QuPath Version: v0.4.3 (and likely before)

Additional context
Reported by @Rdornier at at https://forum.image.sc/t/prompttoimportimages-returns-empty-list-of-images/78112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant