Code Monkey home page Code Monkey logo

Comments (6)

yacaovsnc avatar yacaovsnc commented on July 2, 2024

You probably hit this issue: microsoft/oauth2-useragent#8

Any chance you can upgrade to JDK 8?

from git-credential-manager-for-mac-and-linux.

ColinDabritzViewpoint avatar ColinDabritzViewpoint commented on July 2, 2024

That looks likely, thanks for the reference!

It looks like the command line thinks it's java version "1.7.0_71" but the control panel believes I have Java 8 update 111. I'm investigating how to reconcile the command line version with the control panel version.

Update: Read that specifically installing the JDK may be required, will report back.

Installing from: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Specifically Mac OS X 227.39 MB jdk-8u111-macosx-x64.dmg

from git-credential-manager-for-mac-and-linux.

yacaovsnc avatar yacaovsnc commented on July 2, 2024

Most likely you installed GCM4ML when your java version was 1.7.0_71, and upgraded to java 8 v111 at a later time.

You can either modify your ~/.gitconfig file directly to use the latest jvm,
or run:
java -jar /usr/local/Cellar/git-credential-manager/1.3.0/libexec/git-credential-manager-1.3.0.jar install to reinstall with latest java. Just make sure you are using latest jvm in your terminal first by verifying your java home and java executable version.

from git-credential-manager-for-mac-and-linux.

ColinDabritzViewpoint avatar ColinDabritzViewpoint commented on July 2, 2024

Excellent pointers!

I installed the SE above, which got my command line environment in line.

I used java -version to figure out the exact version:

java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

I used /usr/libexec/java_home -v 1.8 to determine the home directory for that version

/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home

and finally, I updated my ~/.gitconfig config file to point at the new version.

From

[credential]
    helper = !/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/bin/java -Ddebug=false -jar /usr/local/Cellar/git-credential-manager/1.3.0/libexec/git-credential-manager-1.3.0.jar

to

[credential]
    helper = !/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/jre/bin/java -Ddebug=false -jar /usr/local/Cellar/git-credential-manager/1.3.0/libexec/git-credential-manager-1.3.0.jar

After that, my git pull showed the windows appropriately, and I was able to log in with my VSTS credentials.

Thanks much for the help!

from git-credential-manager-for-mac-and-linux.

ColinDabritzViewpoint avatar ColinDabritzViewpoint commented on July 2, 2024

I believe this issue is now resolved. Thank you.

from git-credential-manager-for-mac-and-linux.

yacaovsnc avatar yacaovsnc commented on July 2, 2024

Glad you got it resolved!

from git-credential-manager-for-mac-and-linux.

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.