Resharper-unity: Update RootNamespace in Unity settings, when RootNamespace is changed in Rider

Created on 4 Jun 2018  路  12Comments  路  Source: JetBrains/resharper-unity

In Unity side set EditorSettings.projectGenerationRootNamespace.
I think it should there must be some notice/confirmation for the user on Rider side.

up for grabs

All 12 comments

@citizenmatt what do you think?

Sounds good to me 馃憤

Any way I can help? Is the code that is supposed to do that in this repo?

Yeah, if you like.
I guess, we should:

  1. Subscribe to listening to ProjectModelChanges or documentTransactionManager.AfterTransactionCommit both can be seen in this example https://github.com/JetBrains/resharper-unity/commit/4a5d16b804be57f5b1573d586fa470e011613e62
  2. filter out RootNamespace change
  3. add new source setRootNamespace to (model/editorPlugin/EditorPluginModel.kt)
  4. Apply new RootNamespace in Unity via EditorSettings.projectGenerationRootNamespace

I will try but can't promise anything. Thanks for pointers but I can't seem to find a guide on how to run my version of the plugin in Rider so I can test out my stuff.

  1. Check out branch 182
  2. Run build.sh
    Multiple things will be downloaded, restored, etc and everything should compile without errors.
  3. Open IDEA. In IDEA open "rider" folder.
    Give it some time to run gradle scripts
  4. Find "runIDE" task, it will start a experimental instance of Rider with locally compiled plugin.
    image

Okay, thank you, will check it out! @van800

It could be useful if you include these instructions somewhere in the readme or something.

It might take some time as I'm pretty busy currently so if anyone else wants to take this, go ahead! But please tell me here.

@Nufflee I added initial version of Contributing guide. https://github.com/JetBrains/resharper-unity/blob/182/CONTRIBUTING.md

I want to contribute.

@getupandearn you are welcome to try, please follow my updated comment https://github.com/JetBrains/resharper-unity/issues/578#issuecomment-394339330

Was this page helpful?
0 / 5 - 0 ratings

Related issues

justinlueders picture justinlueders  路  3Comments

ghost picture ghost  路  3Comments

Baste-RainGames picture Baste-RainGames  路  4Comments

mihakrajnc picture mihakrajnc  路  5Comments

Theby picture Theby  路  3Comments