facebook / flipper

A desktop debugging platform for mobile developers.
https://fbflipper.com/
MIT License
13.3k stars 953 forks source link

Devtools not showing on Linux #4276

Open ldorigo opened 1 year ago

ldorigo commented 1 year ago

🐛 Bug Report

I downloaded the latest (0.173.0) version of flipper from the website. While trying to troubleshoot another problem, I found I'm unable to open the devtools via `View->Tggle Developer Tools". Instead, an error is logger to the console (linux terminal) saying:

"[73555:1029/171526.903093:ERROR:CONSOLE(1)] "Uncaught Error: Missing actionRegistry for shortcutRegistry", source: devtools://devtools/bundled/ui/legacy/legacy.js (1)"

Let me know if you can't reproduce or need additional information.

(In case it's relevant, since googling that bug brought me to some electron-related pages: my electron version is 20.0.3-3)

ldorigo commented 1 year ago

Note that a similar warning appears when I attempt to use the Hermes Debugger - a similar warning is shown, and the debugger view is blank.

aigoncharov commented 1 year ago

@ldorigo what are your system details? It works for me on Ubuntu 22.04

ldorigo commented 1 year ago

Here's the output of envinfo:


  System:
    OS: Linux 6.0 Arch Linux
    CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
    Memory: 12.81 GB / 30.77 GB
    Container: Yes
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.18.0 - ~/.nvm/versions/node/v16.18.0/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v16.18.0/bin/npm
    Watchman: 20221016.020512.0 - /usr/bin/watchman
  Managers:
    Cargo: 1.64.0 - /usr/bin/cargo
    Maven: 3.8.6 - /usr/bin/mvn
    pip3: 22.3 - /usr/bin/pip3
    RubyGems: 3.3.23 - /usr/bin/gem
  Utilities:
    Bazel: 5.3.1 - /usr/bin/bazel
    CMake: 3.24.2 - /usr/bin/cmake
    Make: 4.3 - /usr/bin/make
    GCC: 12.2.0 - /usr/bin/gcc
    Git: 2.38.1 - /usr/bin/git
    Clang: 14.0.6 - /usr/bin/clang
    Ninja: 1.11.1 - /usr/bin/ninja
    FFmpeg: 5.1.2 - /usr/bin/ffmpeg
  Virtualization:
    Docker: 20.10.20 - /usr/bin/docker
  SDKs:
    Android SDK:
      API Levels: 31, 33
      Build Tools: 30.0.3, 31.0.0
      System Images: android-28 | Google APIs Intel x86 Atom, android-31 | Intel x86 Atom_64
  IDEs:
    Android Studio: 4.2 AI-202.7660.26.42.7486908
    VSCode: 1.72.2 - /usr/bin/code
    Vim: 9.0 - /usr/bin/vim
  Languages:
    Bash: 5.1.16 - /usr/bin/bash
    Go: 1.19.2 - /usr/bin/go
    Java: 11.0.17 - /usr/bin/javac
    Perl: 5.36.0 - /usr/bin/perl
    Protoc: 3.21.7 - /usr/bin/protoc
    Python: 3.10.8 - /usr/bin/python
    Python3: 3.10.8 - /usr/bin/python3
    Ruby: 3.0.4 - /usr/bin/ruby
    Rust: 1.64.0 - /usr/bin/rustc
  Databases:
    MySQL: 10.9.3 (MariaDB) - /usr/bin/mysql
    PostgreSQL: 14.5 - /usr/bin/postgres
    SQLite: 3.39.4 - /usr/bin/sqlite3
  Browsers:
    Chromium: 106.0.5249.119

It might be related to electron versions? Or is electron bundled with flipper?

ldorigo commented 1 year ago

Hmm. It looks like the version of flipper available on the AUR (https://aur.archlinux.org/packages/flipper , version 0.171.0) and built locally doesn't have this problem. I only have it on the binary download for the latest version.

rafauke commented 1 year ago

@ldorigo the package has been bumped to 0.173.0. I wasn't aware of this issue (I'm usually building the app locally, do a quick check to see if it's running and then bump the version). I suggest pinning the version for now until it's fixed.