Skip to content

xmind8: Unexpected method 'discontinued' called during caveats on Cask #210213

@arturmartins

Description

@arturmartins

Verification

Description of issue

I have used Xmind8 for more than a decade, and I have it installed using Homebrew. Somehow, I started to have the following errors this week:

Error: Unexpected method 'discontinued' called during caveats on Cask xmind8.

I do have the cask file locally:

brew edit xmind8

cask "xmind8" do
  version "8-update9"
  sha256 "120745d98a6122af56f944f666c59a6c3e06099be3838c365e6554e82db19211"
  url "https://dl3.xmind.net/xmind-#{version}-macosx.dmg"
  name "XMind"
  desc "Mind mapping and brainstorming tool"
  homepage "https://www.xmind.net/xmind8-pro/"

  conflicts_with cask: "xmind"

  app "XMind.app"

  zap trash: [
    "~/Library/XMind",
    "~/Library/Saved Application State/org.xmind.cathy.application.savedState",
  ]

  caveats do
    discontinued
  end
end

I noticed that the cask xmind8 doesn't exist anymore in https://github.com/Homebrew/homebrew-cask/tree/master/Casks/x, despite the app still being available to download at https://www.xmind.net/xmind8-pro/

Downloaded the app today and confirmed that sha256sum:

sha256sum /tmp/xmind-8-update9-macosx.dmg
120745d98a6122af56f944f666c59a6c3e06099be3838c365e6554e82db19211  /tmp/xmind-8-update9-macosx.dmg

Workaround:

Comment the discontinued line, and the error goes away.

Question:

Shouldn't this cask be in the https://github.com/Homebrew/homebrew-cask/tree/master/Casks/x ?

Command that failed

brew info xmind8

Output of command with --verbose --debug

/opt/homebrew/Library/Homebrew/brew.rb (Formulary::NullLoader): loading xmind8
/opt/homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromInstalledPathLoader): loading xmind8
Error: Unexpected method 'discontinued' called during caveats on Cask xmind8.
Follow the instructions here:
  https://github.com/Homebrew/homebrew-cask#reporting-bugs
==> Printing caveats
==> xmind8: 8-update9
https://www.xmind.net/xmind8-pro/
Installed
/opt/homebrew/Caskroom/xmind8/8-update9 (314.9MB)
==> Name
XMind
==> Description
Mind mapping and brainstorming tool
==> Artifacts
XMind.app (App)

Output of brew doctor and brew config

brew config
HOMEBREW_VERSION: 4.4.32-64-g3329aad
ORIGIN: https://github.com/Homebrew/brew
HEAD: 3329aada38aeec4b05159e895acfa2bd5a5052a4
Last commit: 18 hours ago
Branch: master
Core tap JSON: 25 Apr 20:43 UTC
Core cask tap JSON: 25 Apr 20:43 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.TJU1ucuN3f/org.xquartz:0
HOMEBREW_EDITOR: code -w
HOMEBREW_MAKE_JOBS: 10
HOMEBREW_NO_ANALYTICS: set
HOMEBREW_NO_INSTALL_CLEANUP: set
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.4.3 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.3/bin/ruby
CPU: deca-core 64-bit arm_firestorm_icestorm
Clang: 17.0.0 build 1700
Git: 2.49.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.4.1-arm64
CLT: 16.3.0.0.1.1742442376
Xcode: N/A
Rosetta 2: false


brew doctor
Error: Unexpected method 'discontinued' called during caveats on Cask xmind8.
Follow the instructions here:
  https://github.com/Homebrew/homebrew-cask#reporting-bugs
Error: Unexpected method 'discontinued' called during caveats on Cask xmind8.
Follow the instructions here:
  https://github.com/Homebrew/homebrew-cask#reporting-bugs
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You have the following deprecated, official taps tapped:
  Homebrew/homebrew-bundle
  Homebrew/homebrew-cask-fonts
  Homebrew/homebrew-services
Untap them with `brew untap`.
Error: Unexpected method 'discontinued' called during caveats on Cask xmind8.
Follow the instructions here:
  https://github.com/Homebrew/homebrew-cask#reporting-bugs

Output of brew tap

brew tap
aws/tap
buildpacks/tap
buo/cask-upgrade
github/gh
hashicorp/tap
homebrew/bundle
homebrew/cask-fonts
homebrew/services

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssue which has not received any feedback for some time.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions