Git Product home page Git Product logo

Comments (6)

Thunderforge avatar Thunderforge commented on May 24, 2024 1

@karianna Thanks, that pointed me to the information I needed.

It seems my version of adoptopenjdk8 is version 8,292:b10 (note the colon). So I loaded up:

/usr/local/Caskroom/adoptopenjdk8/.metadata/8,292:b10/20210813163759.546/Casks/adoptopenjdk8.rb`

in a text editor. I tried initially to remove the url (and subsequent verified) stanza, but there was still one for pkg and I wasn't sure if that was needed. So instead I opted to just do a hardcoded replace.

  • {version.after_comma.before_colon}292
  • {version.after_comma.after_colon} and {version.after_colon}b10.

Therefore, I changed

  url "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk#{version.before_comma}u#292-#b10/OpenJDK#{version.before_comma}U-jdk_x64_mac_hotspot_#{version.before_comma}u#292#b10.pkg"

to

  url "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk#{version.before_comma}u#292#b10/OpenJDK#{version.before_comma}U-jdk_x64_mac_hotspot_#{version.before_comma}u#292#b10.pkg"

and

  pkg "OpenJDK#{version.before_comma}U-jdk_x64_mac_hotspot_#{version.before_comma}u#{version.after_comma.before_colon}#{version.after_comma.after_colon}.pkg"

to

  pkg "OpenJDK#{version.before_comma}U-jdk_x64_mac_hotspot_#{version.before_comma}u#292#b10.pkg"

After these changes, brew uninstall adoptopenjdk8 worked properly and appears to have correctly removed the cask.

from homebrew-openjdk.

karianna avatar karianna commented on May 24, 2024

What does brew doctor tell you?

from homebrew-openjdk.

Thunderforge avatar Thunderforge commented on May 24, 2024

Nothing in relation to adoptopenjdk8. Here's the results in its entirety (following brew uninstall adoptopenjdk8 with the same results as above):

% brew doctor                 
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: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libGeoIP.1.dylib

Warning: Unbrewed '.la' files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected '.la' files:
  /usr/local/lib/[libGeoIP.la](http://libgeoip.la/)

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
  /usr/local/lib/libGeoIP.a

from homebrew-openjdk.

karianna avatar karianna commented on May 24, 2024

I think the cask is using old syntax Try brew cleanup first and then the uninstall again. If that fails do the uninstall but use --force

from homebrew-openjdk.

Thunderforge avatar Thunderforge commented on May 24, 2024

I tried brew cleanup (which didn't post anything relevant), then brew uninstall, then brew uninstall --force. The latter two failed with the same error.

% brew cleanup
Warning: Skipping abseil: most recent version 20230802.1 not installed
Warning: Skipping coreutils: most recent version 9.4 not installed
Warning: Skipping freetype: most recent version 2.13.2 not installed
Warning: Skipping gauge: most recent version 1.5.4 not installed
Warning: Skipping glib: most recent version 2.78.0 not installed
Warning: Skipping harfbuzz: most recent version 8.2.0 not installed
Warning: Skipping jpeg-turbo: most recent version 3.0.0 not installed
Warning: Skipping libgpg-error: most recent version 1.47 not installed
Warning: Skipping libksba: most recent version 1.6.4 not installed
Warning: Skipping libxcb: most recent version 1.16 not installed
Warning: Skipping mysql: most recent version 8.1.0 not installed
Warning: Skipping openapi-generator: most recent version 7.0.1 not installed
Warning: Skipping openjdk: most recent version 20.0.2 not installed
Warning: Skipping openjdk@11: most recent version 11.0.20.1 not installed
Warning: Skipping [email protected]: most recent version 1.1.1w not installed
Warning: Skipping protobuf: most recent version 24.3 not installed
Warning: Skipping sqlite: most recent version 3.43.1 not installed
Warning: Skipping zlib: most recent version 1.3 not installed
% brew uninstall adoptopenjdk8
Error: Cask 'adoptopenjdk8' is unreadable: undefined method `before_colon' for "292:b10":Cask::DSL::Version
Did you mean?  before_comma
% brew uninstall adoptopenjdk8 --force
Error: Cask 'adoptopenjdk8' is unreadable: undefined method `before_colon' for "292:b10":Cask::DSL::Version
Did you mean?  before_comma
%

from homebrew-openjdk.

karianna avatar karianna commented on May 24, 2024

Homebrew/homebrew-cask#145073 gives some advice on removing the line from a cask with this type of error. laternatively something like:

sudo rm /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions/Casks/adoptopenjdk8.rb may work

from homebrew-openjdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.