nikolas-theodosis / fastlane-discord_notifier

Discord fastlane integration
MIT License
30 stars 2 forks source link

No actions found after adding the plugin #1

Open FloresRobles opened 4 years ago

FloresRobles commented 4 years ago

The action can't be found after installing the plugin via bundle exec fastlane add_plugin discord_notifier.

Running bundle exec fastlane action discord_notifier prints:

...
[00:55:07]: Error loading plugin 'fastlane-plugin-discord_notifier': cannot load such file -- discordrb
+----------------------------------+---------+-----------------------------------------------------------------+
|                                                 Used plugins                                                 |
+----------------------------------+---------+-----------------------------------------------------------------+
| Plugin                           | Version | Action                                                          |
+----------------------------------+---------+-----------------------------------------------------------------+
| fastlane-plugin-discord_notifier | 0.1.4   | No actions found                                                |
+----------------------------------+---------+-----------------------------------------------------------------+

[!] No actions were found while loading one or more plugins
    Please use `bundle exec fastlane` with plugins
    More info - https://docs.fastlane.tools/plugins/using-plugins/#run-with-plugins

Loading documentation for discord_notifier:

Couldn't find action for the given filter.
==========================================
nikolas-theodosis commented 4 years ago

It seems like you have not included the output of fastlane env To make it easier to help you resolve this issue, please update the issue to include the output of fastlane env

FloresRobles commented 4 years ago

Thanks for taking a look. Here is the env:

✅ fastlane environment ✅ ### Stack | Key | Value | | --------------------------- | -------------------------------------------------------------- | | OS | 10.15.4 | | Ruby | 2.6.3 | | Bundler? | true | | Git | git version 2.24.2 (Apple Git-127) | | Installation Source | /usr/local/bin/fastlane | | Host | Mac OS X 10.15.4 (19E287) | | Ruby Lib Dir | /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib | | OpenSSL Version | LibreSSL 2.8.3 | | Is contained | false | | Is homebrew | false | | Is installed via Fabric.app | false | | Xcode Path | /Applications/Xcode.app/Contents/Developer/ | | Xcode Version | 11.4.1 | ### System Locale | Variable | Value | | | -------- | ----------- | - | | LANG | en_US.UTF-8 | ✅ | | LC_ALL | | | | LANGUAGE | | | ### fastlane files:
`./fastlane/Fastfile` ```ruby # This file contains the fastlane.tools configuration # You can find the documentation at https://docs.fastlane.tools # # For a list of all available actions, check out # # https://docs.fastlane.tools/actions # # For a list of all available plugins, check out # # https://docs.fastlane.tools/plugins/available-plugins # opt_out_usage # Uncomment the line if you want fastlane to automatically update itself # update_fastlane desc "Generate app icons" lane :icons do appicon( appicon_image_file: 'art/icon/icon.png', appicon_devices: [:ipad, :iphone, :ios_marketing], appicon_path: 'proj.ios_mac/ios/Images.xcassets' ) android_appicon( appicon_image_file: 'art/icon/icon.png', appicon_icon_types: [:launcher], appicon_path: 'proj.android/app/res/mipmap' ) end desc "Generate assets for all resolutions" lane :assets do Dir.chdir("..") do sh("python3", "scripts/generate-resources.py", "art/resources", "resources") end end platform :ios do before_all do ENV["GYM_PROJECT"] = "./ios-build/asimov.xcodeproj" ENV["FL_VERSION_NUMBER_PROJECT"] = ENV["GYM_PROJECT"] ENV["FL_PROJECT_SIGNING_PROJECT_PATH"] = ENV["GYM_PROJECT"] end desc "Submits a new TestFlight Build" lane :dogfood do Dir.chdir("..") do sh "cmake -B ios-build -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos -DSIGN_IDENTITY:STRING=\"Apple Distribution\" -DDEVELOPMENT_TEAM:STRING=\"**\"" end increment_build_number_in_plist( build_number: String(Time.now.to_i) ) match(type: "appstore") build_app( scheme: "asimov", configuration: "Release", export_method:"app-store") upload_to_testflight end end ```
`./fastlane/Appfile` ```ruby # app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app # apple_id("[[APPLE_ID]]") # Your Apple email address # For more information about the Appfile, see: # https://docs.fastlane.tools/advanced/#appfile ```
### fastlane gems | Gem | Version | Update-Status | | -------- | ------- | ------------- | | fastlane | 2.147.0 | ✅ Up-To-Date | ### Loaded fastlane plugins: | Plugin | Version | Update-Status | | -------------------------------- | ------- | ------------- | | fastlane-plugin-appicon | 0.15.0 | ✅ Up-To-Date | | fastlane-plugin-versioning | 0.4.3 | ✅ Up-To-Date | | fastlane-plugin-discord_notifier | 0.1.4 | ✅ Up-To-Date |
Loaded gems | Gem | Version | | -------------------------------- | ------------ | | did_you_mean | 1.3.0 | | bundler | 2.1.4 | | CFPropertyList | 3.0.2 | | public_suffix | 2.0.5 | | addressable | 2.7.0 | | atomos | 0.1.3 | | aws-eventstream | 1.1.0 | | aws-partitions | 1.313.0 | | aws-sigv4 | 1.1.3 | | jmespath | 1.4.0 | | aws-sdk-core | 3.95.0 | | aws-sdk-kms | 1.31.0 | | aws-sdk-s3 | 1.64.0 | | babosa | 1.0.3 | | claide | 1.0.3 | | colored | 1.2 | | colored2 | 3.1.2 | | highline | 1.7.10 | | commander-fastlane | 4.4.6 | | declarative | 0.0.10 | | declarative-option | 0.1.0 | | digest-crc | 0.5.1 | | unf_ext | 0.0.7.7 | | unf | 0.1.4 | | domain_name | 0.5.20190701 | | dotenv | 2.7.5 | | emoji_regex | 1.0.1 | | excon | 0.73.0 | | multipart-post | 2.0.0 | | faraday | 1.0.1 | | http-cookie | 1.0.3 | | faraday-cookie_jar | 0.0.6 | | faraday_middleware | 1.0.0 | | fastimage | 2.1.7 | | gh_inspector | 1.1.3 | | jwt | 2.1.0 | | memoist | 0.16.2 | | multi_json | 1.14.1 | | os | 1.1.0 | | signet | 0.14.0 | | googleauth | 0.12.0 | | httpclient | 2.8.3 | | mini_mime | 1.0.2 | | uber | 0.1.0 | | representable | 3.0.4 | | retriable | 3.1.2 | | google-api-client | 0.36.4 | | google-cloud-env | 1.3.1 | | google-cloud-errors | 1.0.0 | | google-cloud-core | 1.5.0 | | google-cloud-storage | 1.26.1 | | json | 2.3.0 | | mini_magick | 4.10.1 | | multi_xml | 0.6.0 | | plist | 3.5.0 | | rubyzip | 1.3.0 | | security | 0.1.3 | | naturally | 2.2.0 | | simctl | 1.6.8 | | slack-notifier | 2.3.2 | | terminal-notifier | 2.0.0 | | unicode-display_width | 1.7.0 | | terminal-table | 1.8.0 | | tty-screen | 0.7.1 | | tty-cursor | 0.7.1 | | tty-spinner | 0.9.3 | | word_wrap | 1.0.0 | | nanaimo | 0.2.6 | | xcodeproj | 1.16.0 | | rouge | 2.0.7 | | xcpretty | 0.3.0 | | xcpretty-travis-formatter | 1.0.0 | | fastlane-plugin-appicon | 0.15.0 | | fastlane-plugin-discord_notifier | 0.1.4 | | fastlane-plugin-versioning | 0.4.3 |
*generated on:* **2020-05-14**
nikolas-theodosis commented 4 years ago

Quoting a possible fix from a similar issue as I could not reproduce it. Seems legit though so give it a try 😉

I think the solution you may want to try is using bundle install --path vendor/bundle when installing gems and THEN using bundle exec fastlane from now on. This will install the gems relative to your project so that you won't run into system permission issues.

joshdholtz commented 4 years ago

@FloresRobles Heyyy 👋 Looks like @nikolas-theodosis fixed this 5 days ago here - https://github.com/nikolas-theodosis/fastlane-discord_notifier/commit/53fab9a1b177a831f5dcc19380d32f5be9b43101

Try running bundle exec fastlane update_plugins to install the latest (which is 0.1.7). The latest works for me 😊

FloresRobles commented 4 years ago

Thanks for looking into this @nikolas-theodosis and for the ping @joshdholtz.

After running through bundle and installing the latest version, I keep getting the following error when trying to run bundle exec fastlane:

NameError: uninitialized constant Fastlane::VERSION

Removing the plugin from Pluginfile fixes fastlane

3luyka commented 3 years ago

@FloresRobles same here, @nikolas-theodosis could you please fixed that issue?