Why does resharper inspect javascript files when renaming a c# method?

So i just renamed a method (definitely using r# via Refactor This) 

The solution i'm in has around 700 files amongst all things.

During the rename process, the progress modal displays and shows the file it's on and i've seen it literally display "jquery.js" in the progress modal.

Why would you bother inspecting js files?

16 comments
Comment actions Permalink

Hello Chris,

When you run rename refactoring, is "Search in comments and string literals" checkbox enabled in Rename dialog? Will it stop checking js files if you untick such checkbox?

Thanks!   

0
Comment actions Permalink

"Search in comments and string literals" is disabled. I should have mentioned that originally

For the most part i never use search in strings because it searches javascript. I really i'd ever want my javascript to be updated from changing a type or method name in c#.

I personally don't think i'd want resharper to ever look in a javascript for any reason ever, unless i'm using rename on a javascript object/method.

0
Comment actions Permalink

https://onedrive.live.com/redir?resid=BCC39E32FCE8CB10!5607&authkey=!AFEY5aeR05ogOnI&ithint=video%2cmp4 here's a video showing it's analyzing js and css files for no reason.

Where it goes off the deep end is "storing suspicious references" whatever that means.  I stopped recording before the process finished, it took an additional 15-45 seconds for it to actually rename one property.

0
Comment actions Permalink

Any information on what "storing suspicious references" is and if there's anything i can do to make it skip that?

0
Comment actions Permalink

Sorry for the delay in replying you. We are still investigating the problem. No news yet.

0
Comment actions Permalink

@Alexander this workstation isn't a titan but it's certainly not laughable.  Intel i7-5600, 12GB ram, hybrid SSD/7200rpm hard drive.

0
Comment actions Permalink

Chris,

I filed a new ticket to YouTrack https://youtrack.jetbrains.com/issue/RSRP-459024

Unfortunately, there is no workaround right now. 

Please accept my apologies for the inconvenience.

 

0
Comment actions Permalink

Any news on that?

How to disable only this feature (renaming) on Resharper in favor of the default VS renaming?

I use rename all the time and that makes the extension unusable :(

0
Comment actions Permalink

Please try installing R# 2016.3 EAP10 build https://confluence.jetbrains.com/display/ReSharper/ReSharper+2016.3+EAP and check the same behavior once again. 

0
Comment actions Permalink

I still have this issue on Resharper 2016.3.1 - Dec 22 build, with VS 2017 RC 15.0.26014.0.

It makes refactoring unusable to me as with several web projects loaded, it takes way too long even for a single file move.

0
Comment actions Permalink

Any word on this? I am renaming the properties in a single file and so far, it has taken about 10 mins and resharper is still scanning files like web.config. Why oh why would it need to look in web.config?

I am using the latest build of resharper, but I can't actually get the version right now as the bulk rename is still running.. and running... and running..

 

0
Comment actions Permalink

so, I came up with an admittedly crumby work around. I created a new project and pasted the file in that I needed to perform the rename on. I pasted in the file, renamed, then pasted it back into the original solution. It still took about three minutes to rename, but at least it did it...

0
Comment actions Permalink

Hello Morton

What ReSharper build do you use? 

Thanks! 

0
Comment actions Permalink

Hello David

Please try installing R# 2016.3.2 build and check the same issue there. If you still see it, are you able to create a screencast which will show us when ReSharper starts analyzing unexpected files? You may attach the file to a new support request ("Submit a request" at the top of the page)

Thanks!  

0
Comment actions Permalink

Hi, 

I am using R# 2017.1.1 and this is still an issue. When renaming whatever in a C# class (even a private field!), JS files are also analysed.

Karel

0
Comment actions Permalink

Hello Karel!

 

Thank you for the feedback.

Is there any chance you could provide demo solution introducing the issue?

Thank you.

0

Please sign in to leave a comment.