Giter Site home page Giter Site logo

SciJava Commands fail silently about sciview HOT 7 CLOSED

kephale avatar kephale commented on September 3, 2024
SciJava Commands fail silently

from sciview.

Comments (7)

kephale avatar kephale commented on September 3, 2024

I think one of the issues here is an example of a silently failing command: #438

from sciview.

moreApi avatar moreApi commented on September 3, 2024

In #477 Curtis mentioned scijava/scijava-common#452 as a cause for this issue

from sciview.

kephale avatar kephale commented on September 3, 2024

We could potentially catch these ourselves with this strategy: scijava/scijava-common#452 (comment)

from sciview.

ctrueden avatar ctrueden commented on September 3, 2024

@kephale I'm happy to fix this at the SJC framework level, which would finally close scijava/scijava-common#452 properly, but I'd like your opinion on what you think should happen when a module errors:

  1. logService.error(exc)
  2. uiService.showDialog(exc.getMessage(), DialogPrompt.MessageType.ERROR_MESSAGE)
  3. Both
  4. Something else

from sciview.

kephale avatar kephale commented on September 3, 2024

1 would pull up the console and show the error?
2 would be prettier, but maybe 1 is sufficient and possibly less intrusive...

My vote is for consistency with Fiji (which I think might be 1?)

from sciview.

ctrueden avatar ctrueden commented on September 3, 2024

After digging into this issue again today for a while, I confirmed that the problem is actually already fixed, with the behavior of (1). However, when running in IntelliJ IDEA, it seems to be snarfing up the stderr and putting it only into its own log window, such that it no longer appears in the SciJava Console window. At least that's my theory. I'll be doing more testing tomorrow in an actual Fiji app outside of IntelliJ, so I'll be able to confirm for sure then. I'll wait to close this until I'm sure all is well, though.

from sciview.

ctrueden avatar ctrueden commented on September 3, 2024

All right, confirmed, scijava/scijava-common#459 does fix this issue. I forced a sciview command to throw a RuntimeException, and then I see it now on both the actual console and the in SciJava graphical console window. 👍

from sciview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.