ReallyLiri / no-namespace-providers-rider-plugin

JetBrains Rider plugin to automatically mark all directories in your projects as not a namespace providers
MIT License
3 stars 0 forks source link

Plugin doesnt seem to work, or unable to launch it. #1

Closed vailshnast closed 2 years ago

vailshnast commented 3 years ago

Dowloaded and installed plugin from marketplace, but it doesnt seem to work. Is there specific actions i need to make in order to make this working? Im using rider with unity, maybe this could be an issue.

https://prnt.sc/1h33a4n https://prnt.sc/1h33t7b

ReallyLiri commented 3 years ago

This wasn't tested on Windows, that might be the issue. Which Rider version are you using?

vailshnast commented 3 years ago

This wasn't tested on Windows, that might be the issue. Which Rider version are you using?

Rider 2021.1.3 https://prnt.sc/1h3cmim

ReallyLiri commented 3 years ago

currently the plugin will mark a directory as "not a namespace provider" only on demand -- that is, when its visible in the project explorer. From your screenshot I'm guessing the directory IS visible in Rider, right? Do you get any exception logs from Rider? should be appearing in a bottom right corner, or in Event Log

image

vailshnast commented 3 years ago

Unfortunatly no messages in Event log. Yeah it is Unity Project, and all folders are visible in Rider. Is there any button to make all folders "non providers", if auto feature doesnt work? https://prnt.sc/1mbgr84

ReallyLiri commented 3 years ago

Great idea, working on this feature

ReallyLiri commented 3 years ago

v1.6 is released with a new feature to apply on entire solution on demand. Please update and try :) nRXlwG5 18AAo1R V1Ed2CM

vailshnast commented 3 years ago

I`ve just updated plugin, tried on non unity project. Noticed several things:

  1. Auto feature does work on first project, however after adding at least on script to folder.
  2. Button does never detects updates, as you can see from video event log.
  3. On other projects nothing works unfortunatly.

Maybe i configured something wrong, or this doesnt realy work on windows, however you are doing amazing job, thanks in advance!

https://user-images.githubusercontent.com/23454812/129450430-9b3a1127-b4f5-4c98-b914-9627b488c4b7.mp4

ReallyLiri commented 3 years ago

Thanks, I'll try to reproduce this flow, hopefully will get to it in next few days. I'm also trying to get a Windows machine to try this on. Will update :)

ReallyLiri commented 3 years ago

I published another version 1.7, with a more "brute force" approach to apply the configuration.

Next week I know I can try to debug the plugin on a Windows machine and will update. Thanks for your time!

vailshnast commented 2 years ago

<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=assets/games/@EntryIndexedValue">True</s:Boolean>

<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=assets_005Cgames/@EntryIndexedValue">True</s:Boolean> I digged to dotsettings that rider is generating, first line is not working, which is generated by your plugin, the second one is when i do it manually. What is the reason for that?(

I could guess the problem is with / \ symbols

ReallyLiri commented 2 years ago

yes, it seems to be missing escaping. I probably only handled unix styled paths and not Windows, and that's where the gap is :)

ReallyLiri commented 2 years ago

version 1.8 of the plugin is published with the path encoding fixed, please test it ref: https://github.com/ReallyLiri/no-namespace-providers-rider-plugin/commit/aa987c0e96af8183aa06cb32c605a7ddbe903187

vailshnast commented 2 years ago

Working like a charm, thanks!