TFS Checkin Policies not fullfillable

Answered

Hi,

 

After i struggled alot with TFS Integration (described here: https://rider-support.jetbrains.com/hc/en-us/community/posts/115000466450-Not-able-to-connect-to-TFS-?input_string=TFS%20Checkin%20Policies%20not%20fullfillable) I finally reached the point where i can check in something, even though there are some problems, that are not solved by any meanings. But in our company we have two policies: "no checkin without task" and "no checkin without comment". Rider allready recognizes those warnings in the checkin dialog, but I do not know how to fix them. 

First: It says, the policies are not installed. Does anybody know why i have to install something and how? 

https://www.jetbrains.com/help/idea/tfs-check-in-policies.html did not help, as there is nothing to add or to select...

 

Furthermore i can not select a Task or enter a comment to satisfy my company tfs. If i select a task and press ok, the selected task gets unselected afterwards and i can not enter a comment in the checkin notes section. Also I can not see my custom queries in TFS wich is also very annoying, as i have to scroll through everything to find the right task:

 

 

So far Rider and TFS is a very unpleasing experience, combined with the not existing support it is becoming more and more a dealbreaker to us...

0
7 comments

Hi!

Check-in policies can be implemented via custom plugins. You can read more about this here:
https://youtrack.jetbrains.com/issue/IDEA-167784#u=1456493850894

Tell us please if that works for you.
Thanks,

Kir.

0

Ok thanks, for the answer. Unfortunatelly I did not get it to work as i get weird build errors. I loaded the sample plugin and took some time to get the needed jar together but now it says that i have to override load/saveState, wich the sample plugin does, but intellij does not recognize it. @override did not help aswell. Also I am having trouble building with the right sdk. I thought i could use my sdk that i used to code a rider plugin, but that would not help. Alot of other build/sdk combinations did not work aswell.

 

Is it really that hard or am I just being stupid? Did nobody else allready had the same issue and could provide a neat .jar that could be installed as plugin? I really appreciate the help, because i really want rider to replace my slow VS, but I do not get why this is so much work. I mean TFS and Visual Studio is not a very uncommon DEV setup and i do not think that my company has such exotic needs that prevents rider of being an out of the box solution.

0

Ok, i got the plugin to build and i was able to deploy it into my rider as .jar and in debug mode. But I still do not get the policies to show up in the settings. But the plugin is also greyed out and seems to be disabled. I just do not know how to debug it, see where the plugin loading fails and maybe get the answer why it does that.

It looks like this:

0

OK, now i finally got it =)

 

You still have to add

<depends>com.intellij.modules.lang</depends>

to the plugin.xml, then everything works fine and I was able to install my plugins/policies.

0

Is there any plan to make this simpler?

0

I uploaded the plugin to jetbrains https://plugins.jetbrains.com/plugin/9985-check-in-policies-for-tfs-team-foundation-server-

But it is quite old, maybe it does not work with the latest version anymore. It worked two years ago, though ;)

0

Hi there,

TFS Integration plugin is no longer supported and not compatible with the latest Rider2020.1.

Instead, there is another bundled plugin for TFS in Rider: Azure DevOps. We actively fix bugs and add new features that are needed first.

Here is a corresponding ticket for Check-in policy support: https://youtrack.jetbrains.com/issue/RIDER-42907. Please feel free to vote for it.

 

Kind regards,

Sofia.

0

Please sign in to leave a comment.