robv8r / resharper-annotations

Community ReSharper External Annotations
Apache License 2.0
26 stars 10 forks source link

PathTooLongException updating to 1.2.3.0 #14

Closed RichardD2 closed 7 years ago

RichardD2 commented 8 years ago

Trying to install the update to 1.2.3.0 in VS2015 Community with R# 2016.2 fails with a PathTooLongException.

Log file attached: Monisyg.txt

robv8r commented 8 years ago

Thanks for letting me know. I'll look into it and hopefully have a patch out tonight.

robv8r commented 8 years ago

For the moment, I've unlisted the 1.2.3.0 version from the ReSharper Gallery. Thanks again for alerting me to this.

robv8r commented 8 years ago

The issue is exactly what you reported. When the NuGet package is exploded, several of the new attribute files may exceed the hard coded 260 character limit. Because ReSharper stores the contents of the NuGet package in your %appdata% directory, the longer your user name, the longer the file path.

Having said that, this error can occur with what I would consider "normal" length user names.

To fix the issue, I'll be renaming the longer xml files to the format version.Attributes.xml. This is closer to the format that the ExternalAnnotations guys use. Also, it will help me in the future as I merge more of my work into theirs.

robv8r commented 8 years ago

I've released a beta hotfix for this issue. Please give it a try and let me know if you find any further issues:

https://resharper-plugins.jetbrains.com/packages/Community.External.Annotations.R90/1.2.4-beta1

RichardD2 commented 8 years ago

That works, thanks. :+1:

robv8r commented 8 years ago

Thanks. I'll release 1.2.4.0 tonight.

StevenBonePgh commented 7 years ago

R# 2016.3 appears to only offer 1.2.2.0 in the extension manager. Would it be possible for you to publish the 1.2.4.0 version for R# 2016.3, please? Thanks for a great (and useful) package.

robv8r commented 7 years ago

I'll look into that tonight.

robv8r commented 7 years ago

I un-listed and re-listed the package and it's now showing up for me.

Let me know if it works for you too.

robv8r commented 7 years ago

closing this due to inactivity