question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Support flipper plugins that contain a scope in their name

See original GitHub issue

šŸ› Bug Report

My team has been experimenting with publishing our custom desktop plugins to Github packages (developers then install them by downloading a tarball and using the ā€œinstall from fileā€ flow within the Flipper desktop app).

Github packages requires packages to have a scope in their name. When installing a plugin named @tinyspeck/flipper-plugin-$pluginName, I donā€™t see the plugin visible in Flipperā€™s sidebar or the ā€œmanage pluginsā€ page, and I see this error logged in the developer tools window:

Uncaught (in promise) Error: ENOENT: no such file or directory, open '/Users/jschear/.flipper/thirdparty/@tinyspeck/package.json'

This may be more of a feature request (flipper-pkg lint complains about the name not starting with flipper-plugin-, after all) ā€“ is this something Flipper could support?

To Reproduce

  1. Create a new flipper plugin with flipper-pkg init
  2. Modify the name by adding a scope: @scope/flipper-plugin-$pluginName
  3. Run yarn pack (youā€™ll need to modify the package.json to ignore the output of flipper-pkg lint in the prepack script).
  4. Within the Flipper desktop app, install the plugin from file.

Environment

Flipper 0.51.0, macos 10.15.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
nikoantcommented, Jul 29, 2020

ā€œlive-plugin-managerā€ is not used for plugin format v2, weā€™ll remove this dependency soon. So it seems like this limitation is just a side effect of having a slash character.

1reaction
nikoantcommented, Aug 5, 2020

This is fixed in #1427 and will be releases with the next Flipper version. For now you can test this by building manually from sources using command ā€œcd flipper/desktop && yarn build --macā€ which will output binaries to ā€œflipper/distā€ folder.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Desktop Plugin API - Flipper
PluginClient is the type of the client passed into a standard Sandy plugin. It takes two generic arguments: Event - mapping of an...
Read more >
React Native Flipper: Best tool for debugging your application!?
Flipper is a highly extensible mobile app debugger used to debug iOS, Android and React Native applications. It lets you inspect, control, and...
Read more >
Plugins - Ktor
Plugins have been designed in a way to offer maximum flexibility, and allow them to be present in any segment of the request/responseĀ ......
Read more >
Cannot use ā€œparentā€ when current class scope has no parent
Do we have some fix for this issue? I just installed the plugin and still showing the same as you guys. David. (@dkomando)....
Read more >
Xcode 13 - warning: Could not read serialized diagnostics file
I also upgraded to Xcode 13 and have the same error ... 7 files were created with the same name and different extensions,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found