Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[uno-check] Unhandled exceptions result in "????" output when Visual Studio is missing & specific Java path is not foundΒ #483

@trghieu9415

Description

@trghieu9415

Current behavior πŸ›

Description
I ran uno-check for the first time to set up the Uno Platform environment. Instead of displaying helpful error messages, the tool output a long string of question marks ??????????? followed by a generic "There were one or more problems detected" message.

Image

I had to run uno-check --verbose to actually see the exceptions causing the crash.

Image

Steps to Reproduce

  1. On a Windows machine without Visual Studio installed (I am using JetBrains Rider).
  2. Have a valid Java JDK installed (e.g., Microsoft OpenJDK 17) but not at the specific Oracle path the tool seems to be looking for.
  3. Run uno-check.

Actual Behavior
The tool outputs question marks and fails to report the specific errors unless the --verbose flag is used.
Running with --verbose revealed three critical errors:

  • IDE Neutrality Issue (vswin & vswinworkloads): vswin: Object reference not set to an instance of an object. vswinworkloads: Object reference not set to an instance of an object. Context: I am using Rider, so I do not have the full VS workload. The tool seems to crash when trying to access VS instances that don't exist.
  • Java Detection Issue (androidemulator): androidemulator: Unable to find Java C:\Program Files\Common Files\Oracle\Java\bin\java.exe. Context: I have Java installed and verified via where java (Microsoft OpenJDK 17), but the tool seems to check a hardcoded or legacy Oracle path, causing a failure even though a valid JVM is present.

Environment

  • OS: Windows 11
  • IDE: JetBrains Rider (No Visual Studio installed)
  • Java: Microsoft OpenJDK 17 (Verified via command line)
  • Uno Check Version: (Latest)

Expected behavior 🎯

No response

How to reproduce it (as minimally and precisely as possible) πŸ”¬

No response

Workaround πŸ› οΈ

No response

Renderer 🎨

  • Skia
  • Native

Affected platforms πŸ“±πŸ’»πŸ–₯️

No response

Uno.Sdk version (and other relevant versions) πŸ“¦

There is not an Uno.Sdk problem, I'm using Uno.Check Version 1.33.1.0 (built 2025-11-11)

IDE version πŸ§‘β€πŸ’»

No response

Anything else we need to know? πŸ’¬

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions