JetBrains / resharper-unity

Unity support for both ReSharper and Rider
Apache License 2.0
1.21k stars 131 forks source link

Can't find plugin JetBrains.Unity using inspectcode 2024.1 #2438

Closed metakirby5 closed 2 months ago

metakirby5 commented 2 months ago

When specifying the plugin via the -x flag in inspectcode, the output Warning: Can't find plugin JetBrains.Unity is observed, and Unity inspections are not applied. This did not occur in 2023.3.3. Additionally, it does not occur for other plugins (e.g. PowerToys.CyclomaticComplexity) in 2024.1, so I suspect the issue lies with the JetBrains.Unity plugin.

Example:

$ ~/Downloads/JetBrains.ReSharper.CommandLineTools.2024.1/inspectcode.sh \
  --no-build --severity=ERROR \
  --eXtensions="JetBrains.Unity;PowerToys.CyclomaticComplexity" \
  --format='Xml;Html' --output=inspectcode Project.sln
Warning: Can't find plugin JetBrains.Unity
JetBrains Inspect Code 2024.1
PowerToys CyclomaticComplexity 2024.1.0-eap01
Running on ARM64 OS in ARM64 architecture, .NET 7.0.2 under Darwin 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000
Using toolset version 17.0 from /usr/local/share/dotnet/sdk/7.0.102
Configuration: Debug, Platform: Any CPU
sr4dev commented 2 months ago

ReSharper 2024.1.1

I have a similar issue. I don't see all my extensions in the Extension Manager in ReSharper. I think it's probably a server issue.

image

If you add old url to Extension Manager option, you can find Unity Extension. (But it's not work in 2024.1)

image

innat3 commented 2 months ago

For now, you can download it and add it manually from https://plugins.jetbrains.com/plugin/11629-unity-support/versions/stable

citizenmatt commented 2 months ago

Hi folks. The Unity plugin for ReSharper was updated yesterday, could you try again, please? And the blank Extension Manager in 2024.1.1 is indeed a server issue, and should hopefully be fixed now.

sr4dev commented 2 months ago

I have confirmed that the server issue has been resolved in Extension Manager. Thank you!

image

metakirby5 commented 2 months ago

Thanks, @citizenmatt - I tried the same command again today, but no luck 😥

I noticed the following logs with --verbosity=VERBOSE:

No environment variables for additional packages are set.
  CACHE https://resharper-plugins.jetbrains.com/api/v2/curated-feeds/RSU-2024.1.0.65536/FindPackagesById()?id='JetBrains.Unity'&semVerLevel=2.0.0
Warning: Can't find plugin JetBrains.Unity
  CACHE https://resharper-plugins.jetbrains.com/api/v2/curated-feeds/RSU-2024.1.0.65536/FindPackagesById()?id='PowerToys.CyclomaticComplexity'&semVerLevel=2.0.0
Found plugin package/PowerToys.CyclomaticComplexity 2024.1.0-eap01 for PowerToys.CyclomaticComplexity (>= 0.0.0) in .NET Products Gallery [https://resha

Looking at https://resharper-plugins.jetbrains.com/api/v2/curated-feeds/RSU-2024.1.0.65536/FindPackagesById()?id='JetBrains.Unity'&semVerLevel=2.0.0 I see there are no entries, but for https://resharper-plugins.jetbrains.com/api/v2/curated-feeds/RSU-2024.1.0.65536/FindPackagesById()?id='PowerToys.CyclomaticComplexity'&semVerLevel=2.0.0 there are.

citizenmatt commented 2 months ago

Apologies. The plugin was automatically verified against 2024.1.1, but not 2024.1.0. So it was in the 2024.1.1 feed, but not the 2024.1.0 feed. It should be available in both now.

metakirby5 commented 2 months ago

It's working perfectly now, thank you!