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
- Create a new flipper plugin with
flipper-pkg init
- Modify the name by adding a scope:
@scope/flipper-plugin-$pluginName
- Run
yarn pack
(youāll need to modify thepackage.json
to ignore the output offlipper-pkg lint
in the prepack script). - Within the Flipper desktop app, install the plugin from file.
Environment
Flipper 0.51.0, macos 10.15.4
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ā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.
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.