Skip to content
New issue

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

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

Already on GitHub? # to your account

Maestro CLI errors on all commands - Fedora 41 #2278

Open
1 task done
leonardohofling opened this issue Jan 30, 2025 · 4 comments
Open
1 task done

Maestro CLI errors on all commands - Fedora 41 #2278

leonardohofling opened this issue Jan 30, 2025 · 4 comments

Comments

@leonardohofling
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and didn't find mine.

Steps to reproduce

  1. Install latest version of maestro cli on Fedora 41
  2. Run maestro command on terminal

Actual results

leonardohofling@DESKTOP-BRUUJDN ➜ ProjectX git:(feature/add-redux) ✗ maestro
Exception in thread "main" java.lang.UnsatisfiedLinkError: 'int org.fusesource.jansi.internal.CLibrary.isatty(int)'
at org.fusesource.jansi.internal.CLibrary.isatty(Native Method)
at maestro.cli.DisableAnsiMixin$Companion.applyCLIMixin(DisableAnsiMixin.kt:43)
at maestro.cli.DisableAnsiMixin$Companion.executionStrategy(DisableAnsiMixin.kt:21)
at picocli.CommandLine.execute(CommandLine.java:2078)
at maestro.cli.AppKt.main(App.kt:143)

leonardohofling@DESKTOP-BRUUJDN ➜ ProjectX git:(feature/add-redux) ✗ maestro test e2e/register-flow.yaml
Exception in thread "main" java.lang.UnsatisfiedLinkError: 'int org.fusesource.jansi.internal.CLibrary.isatty(int)'
at org.fusesource.jansi.internal.CLibrary.isatty(Native Method)
at maestro.cli.DisableAnsiMixin$Companion.applyCLIMixin(DisableAnsiMixin.kt:43)
at maestro.cli.DisableAnsiMixin$Companion.executionStrategy(DisableAnsiMixin.kt:21)
at picocli.CommandLine.execute(CommandLine.java:2078)
at maestro.cli.AppKt.main(App.kt:143)

Alternative way to execute without error:
leonardohofling@DESKTOP-BRUUJDN ➜ ProjectX git:(feature/add-redux) ✗ maestro --no-ansi --no-color
option '--no-color' should be specified only once
Usage: maestro [-hv] [--[no-]ansi] [--verbose] [-p=] [--udid=] [COMMAND]
-h, --help Display help message
--[no-]ansi, --[no-]color
Enable / disable colors and ansi output
-p, --platform=
(Optional) Select a platform to run on
--udid, --device=
(Optional) Device ID to run on explicitly, can be a comma separated list of IDs: --device "Emulator_1,Emulator_2"
-v, --version Display CLI version
--verbose Enable verbose logging
Commands:
test Test a Flow or set of Flows on a local iOS Simulator or Android Emulator
cloud Test a Flow or set of Flows on Maestro Cloud (https://cloud.mobile.dev)
record Render a beautiful video of your Flow - Great for demos and bug reports
download-samples Download sample apps and flows for trying out maestro without setting up your own app
login Log into Maestro Cloud
logout Log out of Maestro Cloud
bugreport Report a bug - Help us improve your experience!
start-device Starts or creates an iOS Simulator or Android Emulator similar to the ones on Maestro Cloud

Expected results

Show documentation or execute the tests

About app

React Native

About environment

openjdk 17.0.6 2023-01-17 LTS
Fedora 41
Ryzen 7 5700x

Logs

Logs
<!-- Replace this line with your logs. *DO NOT* remove the backticks! -->

Maestro version

1.39.9

How did you install Maestro?

install script (https://get.maestro.mobile.dev)

Anything else?

No response

Copy link

linear bot commented Jan 30, 2025

@kirisaki-vk
Copy link

I'm having the same issue
Even running maestro bugreport throws the same error
I'm using maestro v1.39.13 and installed it from the install script

@leonardohofling
Copy link
Author

I tried using sudo and it worked. Doing some tests calling directly the jar library, I discovered that's missing some binary that should be extracted to the temp folder by the Jar library.

@Fishbowler Fishbowler marked this as a duplicate of #2324 Feb 20, 2025
@Fishbowler Fishbowler changed the title maestro-cli getting error in all scenarios Maestro CLI errors on all commands - Fedora 41 Feb 20, 2025
@Fishbowler
Copy link
Contributor

In #2324, @Harenabs21 found that this issue was resolved in OpenJDK 23, but you might then fall foul of #2120 if you're using the GraalJS engine.

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

No branches or pull requests

3 participants