Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Feature Request Plastic plugin for Rider IDE

Discussion in 'Unity Version Control' started by Brogan89, Nov 8, 2021.

  1. Brogan89

    Brogan89

    Joined:
    Jul 10, 2014
    Posts:
    243
    I've been looking into annotation and other version control support for Plastic in Rider but it's not working and looks very cumbersome to set up anyway. I was hoping it would a simple install from the Riders plugin registry but it's not sadly.

    I tried to follow this blog but Rider rejects it saying that it's not a valid plugin format or something along those lines. There is also a request for it on Plastic forums

    Is there a plan to add Rider support for Plastic soon? It's the only thing missing to make the full conversion from Git.
     
  2. ollieblanks

    ollieblanks

    Unity Technologies

    Joined:
    Aug 21, 2017
    Posts:
    429
    Hi @Brogan89,

    Intellij IDEA integration can be installed as part of the Plastic SCM client installation...
    upload_2021-11-9_15-45-35.png

    ...which can then be enabled/disabled in Rider.
    upload_2021-11-9_15-53-10.png

    Is this what you were looking for? Hope this helps.
     
  3. Xarbrough

    Xarbrough

    Joined:
    Dec 11, 2014
    Posts:
    1,184
    Works pretty well for me:

    upload_2021-11-9_17-25-56.png

    Maybe you can try upgrading Rider and reinstalling PlasticSCM? I'm using Rider 2021.2.2 and Plastic SCM 10.0.16.6241, however I kind of doubt that there's a real issue. Did you pick the correct path for the plugin? I used:
    C:\Program Files\JetBrains\JetBrains Rider 2021.1


    Other than that, maybe post the error message when trying to load the plugin.
     
  4. Brogan89

    Brogan89

    Joined:
    Jul 10, 2014
    Posts:
    243
    Thanks @Xarbrough, I was trying to install it into the plugins directory within the Rider install and it was telling me it wasn't a valid Intellij install path, but didn't state what is a valid path so I could work it out. Turns out I just went too deep into the path lol

    @ollieblanks I wonder if this could be installed via the Version Control or JetBrains Rider Editor packages in UPM? Which is how Plastic was installed for me. It might trip others too, or hopefully they come across this thread.

    Thanks guys. I appreciate the help.
     
  5. Brogan89

    Brogan89

    Joined:
    Jul 10, 2014
    Posts:
    243
    Ah damn, actually. It's still not quite working for me. The install went well but the plugin won't work.
    I'm using Rider 2021.2.2 and Plastic 10.0.16.6241

    When I open Rider now I get this error
    EDIT: After disabling and reenabling the plugin I no longer get this error. However, the connection issues still remain

    And when I try to enable the version control, checking "Plastic SCM plugin is enabled" box within the VC settings it says that it cannot connect to the server.

    error.png
    I've attached some more screenshots to show that the plugin is installed and enabled and the test connection is working.

    test-connection.png plugin.png


    Furthermore, it's running perfectly well in Unity Editor and in the Plastic GUI so the plastic server must be working surely.
    I feel like I'm missing something simple though. It looks 99% there.
     
    Last edited: Nov 9, 2021
  6. Xarbrough

    Xarbrough

    Joined:
    Dec 11, 2014
    Posts:
    1,184
    Sorry to hear that it's not working for you. There's nothing special I had to do, I actually tried it from a clean slate yesterday, simply installed the plugin with the path I mentioned and all of your screenshots look like the settings in my Rider. I can select Test connection and it works. I can also click Configure Client to log into plastic, but I assume that you did this step. I also assume that youre project is already part of a working Plastic repository?

    If you're still having issues, you can contact PlasticSCM support directly: https://www.plasticscm.com/support

    It says, if you're evaluating, email them at support@plasticscm.com. They usually respond within a few hours and might ask for logs etc, that's something you might want to prepare. Could get a little cumbersome, but that's just the nature of complex computer stuff.

    In the end, when everything is set up properly, Plastic will do a much better job than Git. My team switched a few years ago and never looked back. And it's not as if configuration problems are common with Plastic, it might just be something very specific to your computer or indeed some oversight like not being logged into your account. :)
     
  7. Brogan89

    Brogan89

    Joined:
    Jul 10, 2014
    Posts:
    243
    I am suspecting something to do with my system or at least my Rider install as I've had a couple of other small issues with Rider but no one else on my team is having them. However, I have a new PC build on the way so hopefully, once I'm set up on that all my problems will be resolved. And if not I'll email support. I'll report back on that.

    Regardless I'm really liking Plastic so far and will most definitely adopt it moving forward.

    Thanks for your help
     
    Xarbrough likes this.
  8. Brogan89

    Brogan89

    Joined:
    Jul 10, 2014
    Posts:
    243
    Back again. After building my new PC and installing Windows 11, Unity and Rider I have new errors lol.
    I've created a ticket with the Plastic SCM support team so hopefully, I can get a quick turnaround. It's quite demoralising having experiences like this as I'm starting to be quite turned off and want to move back to git. But I'll give it one more chance after support gets back to me.

    For context the errors I'm getting now are
    1. In Rider, the Plugin is installed properly as per the image, however, you can see I have an error

    Error:Plastic SCM detected the following error: Unable to load annotations for file 'C:/Users/Brogan/Unity/Out of Sight/Assets/Scripts/Levels/Start Menu/StartMenuController.cs': The server spec is not correct: invalid.
    CommandResult 1

    plastic-error-rider.png

    2. In the Plastic SCM client, I'm getting an error "Cannot retrieve license information"
    I have tried restarting the server via their help section but it doesn't help.

    Oh well, hopefully I can resolve this shortly.

    EDIT: Weird, after a while it seemed to kick into gear and Rider now has version control integration ‍♂️. Still have the server error message though but it's not the end of the world that everything still works and I can still checkout files.
     
  9. Eldamir88

    Eldamir88

    Joined:
    Jul 2, 2019
    Posts:
    12
    I'm just enjoying arbitrary IDE errors. I either have to disable the plugin or accept that it marks everything as "added" rather than changed or unchanged... Also didn't respect the ignoreconf.

    Seems rather unstable. Wouldn't rely on it :(
     
  10. better_walk_away

    better_walk_away

    Joined:
    Jul 12, 2016
    Posts:
    291
    What about macOS? There is no option on the macOS version of Plastic SCM installer. And I couldn't find Plastic SCM in the Rider Plugins section.
     
  11. Brogan89

    Brogan89

    Joined:
    Jul 10, 2014
    Posts:
    243
    Oh wow, I didn't notice that the Plastic client is Windows only. Rough.
    I would stick to git if I were you then, having that IDE integration is pretty important IMO so I wouldn't use a version control that doesn't give me that.

    But up to you. I'm sure there will be a request somewhere to get Plastic client on mac. I'm really surprised they don't already.
     
  12. ollieblanks

    ollieblanks

    Unity Technologies

    Joined:
    Aug 21, 2017
    Posts:
    429
    @better_walk_away, Although the plugin is only included in the Windows and Linux installers, it should also work if you download it from here and manually install it in macOS.

    ===================================================================
    Instructions to install Plastic SCM IntelliJ IDEA plugin using the ".jar" files in this folder:
    ===================================================================

    (Extracted from https://www.jetbrains.com/help/idea/2016.1/installing-plugin-from-disk.html)

    1- Run IntelliJ IDEA (or the JetBrains IDE of your choice)

    2- On the right pane of the dialog, click the Install plugin from disk button.

    3- In the dialog that opens, select the desired plugin. You can quickly locate and select the necessary file if you drag-and-drop the corresponding item from your file browser (Explorer, Finder, etc.) into the area where the tree is shown. The plugin file is attached. Click OK to proceed.

    5- Click Apply button of the Settings/Preferences dialog.

    6- Following the system prompt that appears, restart the IDE to activate the Plastic SCM plugin, or postpone it, at your choice.

    Hope this helps!