Git Product home page Git Product logo

Comments (8)

OpherV avatar OpherV commented on August 22, 2024

Thanks for the heads up!

from gitflow4idea.

soverbosch avatar soverbosch commented on August 22, 2024

Had the same problem and after some fiddling around got it working, or at least it compiles and I am able to load the plugin and see the gitflow in main screen. Main changes are the plugin idea-version and the GitUIUtil.notifySuccess does not exist anymore use GitUIUtil.notifyMessage instead and add two extra parameters. I had a bit of difficulties getting the project to build, isn't it possible to mavenize the project

from gitflow4idea.

OpherV avatar OpherV commented on August 22, 2024

I came across the same issue - looks like GitUIUtil was updated in this build. The xml change is a given.
Some work is needed to both fix the issue of this version as well as make it compatible for the previous ones.

I know @avogler is looking into it, we can use this thread for discussion on solutions\progress.

from gitflow4idea.

soverbosch avatar soverbosch commented on August 22, 2024

True, I've created a feature branch is which I made the changes needed to get it working and the resulting plugin is now installed and seams to be working fine. The part where I am not sure is in TrackReleaseAction

  •        new Notification(GitVcs.IMPORTANT_ERROR_NOTIFICATION.getDisplayId(), "Error", "No remote branches", NotificationType.ERROR).notify(myProject);
    
  •        GitUIUtil.notifyImportantError(myProject,"Error","No remote branches");
    

Date: Tue, 25 Mar 2014 13:35:57 -0700
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [gitflow4idea] IDEA 13.1 (#31)

I came across the same issue - looks like GitUIUtil was updated in this build. The xml change is a given.

Some work is needed to both fix the issue of this version as well as make it compatible for the previous ones.

I know @avogler is looking into it, we can use this thread for discussion on solutions\progress.


Reply to this email directly or view it on GitHub.

from gitflow4idea.

avogler avatar avogler commented on August 22, 2024

I got it working for 13.1 but my solution isn't backward compatible. Did you find a way that works both in 12.x and 13.1?

from gitflow4idea.

OpherV avatar OpherV commented on August 22, 2024

Here's the culprit:
JetBrains/intellij-community@d6528d3#diff-fbc57e5534fd96ea8d61d2eb83c0386a

@NadyaZabrodina refactored the GitGuiUtil class to use VcsNotifier.
I'll try to see if we can use that instead of GitGuiUtil. Hopefully that's backwards compatible.

from gitflow4idea.

avogler avatar avogler commented on August 22, 2024

Unfortunately VcsNotifier is not available in older versions, that was what I tried to use.We could decouple gitflow4idea from git4idea here and replicate the functionality of VcsNotifier within gitflow4idea but thats rather ugly.

from gitflow4idea.

OpherV avatar OpherV commented on August 22, 2024

Hmmm... damn
This means that in order to preserve backwards compatibility, we'll have to use reflection to poll the git4idea interface for the right signature.

Maybe instead of replicating VcsNotifier we can write a utility class for notifications that does this for us , and use that as middleware for invoking notifications.

Something along the lines of
http://stackoverflow.com/questions/7058621/how-to-check-if-a-method-exists-at-runtime-in-java

from gitflow4idea.

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.