Netix Resharper Plugin

Greetings everybody,

I've crafted a plugin which adds several pretty simple highlights and quickfixes.
It doesn't do advanced things, like conflict resolving.

Features:

  • warns on fields that does not conform to code style (field prefix and suffix).

Provides quick fix to rename

  • adds quickfixes to create empty class from unresolved type reference. Two

options are given - create in same file and create as new file.

  • adds warning for parameters of overriden method, which name doesn't match

parameter name from base class. Provides quick fix to rename

http://users.netix.ru/orangy/resharper/Netix.Resharper.Plugin.zip
Zip file contains dll and source code, size is 28kb.

To install,
1. close all instances of VS
2. create "Plugins" folder under "C:\Program Files\JetBrains\ReSharper\VS2003\"
(or VS2005), create subfolder "Netix Resharper Plugin" and put DLL in there.

3. start VS
4. verify plugin listed using menu Resharper/Plugins...

NO GUARATEES IT WILL WORK. Not even tested under VS2005. Use at your own
risk in real work and as a base for your own plugin developments. Note, that
I'm neither JetBrains employee nor otherwise affiliated with JetBrains, other
then I love Resharper :)

Comments are welcome. More to come later.

Sincerely,
Ilya Ryzhenkov


16 comments
Comment actions Permalink

Comments on your plugin:
When registering your stage, please provide right info to order it (the main
goal is to make owr own stages run before your's)

internal class NetixDaemonStage : IDaemonStage
{
public Key[] StagesBefore
{
get { return new Key[] {LanguageSpecificDaemonStage.KEY}; }
}
}


--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Ilya Ryzhenkov" <orangy@netix.ru> wrote in message
news:5992f43be1e0c8c7da0af396b2a7@news.jetbrains.com...

Greetings everybody,

>

I've crafted a plugin which adds several pretty simple highlights and
quickfixes. It doesn't do advanced things, like conflict resolving.
Features:

  • warns on fields that does not conform to code style (field prefix and

suffix). Provides quick fix to rename * adds quickfixes to create empty
class from unresolved type reference. Two options are given - create in
same file and create as new file.

  • adds warning for parameters of overriden method, which name doesn't

match parameter name from base class. Provides quick fix to rename

>

http://users.netix.ru/orangy/resharper/Netix.Resharper.Plugin.zip Zip file
contains dll and source code, size is 28kb.

>

To install, 1. close all instances of VS
2. create "Plugins" folder under "C:\Program
Files\JetBrains\ReSharper\VS2003\" (or VS2005), create subfolder "Netix
Resharper Plugin" and put DLL in there.
3. start VS
4. verify plugin listed using menu Resharper/Plugins...

>

NO GUARATEES IT WILL WORK. Not even tested under VS2005. Use at your own
risk in real work and as a base for your own plugin developments. Note,
that I'm neither JetBrains employee nor otherwise affiliated with
JetBrains, other then I love Resharper :)

>

Comments are welcome. More to come later.

>

Sincerely,
Ilya Ryzhenkov

>



0
Comment actions Permalink

Hello Ilya,

unfortunately most likely it won't work under VS 2005. The problem is that
ReSharper interfaces have different interfaces for .NET
framework 1.1 and 2.0 due to usage of generics. So it seems that plugins
also need to be compiled against 1.1 and 2.0 framework just
like ReSharper's assemblies. If you have no VS 2005 to make a version of
your plugin for it, we could do it here.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

NO GUARATEES IT WILL WORK. Not even tested under VS2005.



0
Comment actions Permalink

Errata: 'have different signatures'.

ReSharper interfaces have different interfaces for .NET
framework 1.1 and 2.0 due to usage of generics.



0
Comment actions Permalink

Hello Eugene,

Fixed for next version. I looked at your code via reflector, but didn't spot
such uses.

EP> Comments on your plugin:
EP> When registering your stage, please provide right info to order it
EP> (the main
EP> goal is to make owr own stages run before your's)
EP> internal class NetixDaemonStage : IDaemonStage
EP> {
EP> public Key[] StagesBefore
EP> {
EP> get { return new Key[] {LanguageSpecificDaemonStage.KEY}; }
EP> }
EP> }
Sincerely,
Ilya Ryzhenkov


0
Comment actions Permalink

Hello Dmitry,

I don't have VS2005 here and won't have at least until June.
So if anybody is interested in maintaining plugin version for VS2005 your
are welcome.

Also, it would be nice to setup Confluence subtree for plugin developers,
so that announcements of new plugins, versions, etc could be made.

Sincerely,
Ilya Ryzhenkov


DS> Hello Ilya,
DS>
DS> unfortunately most likely it won't work under VS 2005. The problem
DS> is that
DS> ReSharper interfaces have different interfaces for .NET
DS> framework 1.1 and 2.0 due to usage of generics. So it seems that
DS> plugins
DS> also need to be compiled against 1.1 and 2.0 framework just
DS> like ReSharper's assemblies. If you have no VS 2005 to make a
DS> version of
DS> your plugin for it, we could do it here.
DS> Regards,
DS> Dmitry Shaporenkov
DS> JetBrains, Inc
DS> http://www.jetbrains.com
DS> "Develop with pleasure!"
>> NO GUARATEES IT WILL WORK. Not even tested under VS2005.
>>


0
Comment actions Permalink

Hello Ilya,

Also, it would be nice to setup Confluence subtree for plugin
developers, so that announcements of new plugins, versions, etc could
be made.

+1

Additionally, setting up SVN repo for plugin developers would also be nice.
Actually, I can install such one at any time on my university server but
it seems reasonable to host it somewhere at Jetbrains. Doing so we can ensure
that it wil exist at least as long as Resharper is still under development
=).

Best regards,
Maxim



0
Comment actions Permalink

Dunno, did exactly as told - put the dll in a directory in the plugins
directory but I can't see it in the plugin list - using 213.


"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:c8a894d9d5c568c7d9f50374e24a@news.intellij.net...

Errata: 'have different signatures'.

>
>> ReSharper interfaces have different interfaces for .NET
>> framework 1.1 and 2.0 due to usage of generics.
>



0
Comment actions Permalink

I've updated this plugin to Visual Studio 2005, fixed a couple of minor compiler errors related to the update, and updated the project file to make it easier to debug. Get the file from:
http://www.wademan.com/ResharperPlugins/NetixPlugin_2005_2006-01-08.zip

Unzip the file and read Readme.doc. Testing has been extremely minimal.

Thanks to Ilya for this plugin. It's a way better starting place for plugins than those that come in the build.

Wade Hatler

0
Comment actions Permalink

Hello Wade,

Check http://users.netix.ru/orangy/nerpa/ for new versions.
I will check you changes and see if I can incorporate them. Hopefuly, you
marked them with some comments ;)

Sincerely,
Ilya Ryzhenkov


0
Comment actions Permalink

Hello Wade,

Also, please do cleanup before publishing zip file - it's quite strange to
have 1.6Mb download and then see Resharper caches and temp files inside...

WH> I've updated this plugin to Visual Studio 2005, fixed a couple of
WH> minor compiler errors related to the update, and updated the
WH> project file to make it easier to debug. Get the file from:
WH>
WH> http://www.wademan.com/ResharperPlugins/NetixPlugin_2005_2006-01-08.
WH> zip
WH>
WH> Unzip the file and read Readme.doc. Testing has been
WH> extremely minimal.
WH>
WH> Thanks to Ilya for this plugin. It's a way better starting place
WH> for plugins than those that come in the build.
WH>
WH> Wade Hatler
WH>
Sincerely,
Ilya Ryzhenkov


0
Comment actions Permalink

Yow, what was I thinking? I normally clean things up before posting.

I'll grab the latest version and build it with 2005 later today, and add comments to the 2 lines I changed. Don't bother with the version that's out there.

If you'll send me your email address, I can send you the update directly. Don't post it here unless you want to be spammed to death. Just go to my home page at http://www.wademan.com and click the mail link there.

What do you think about setting up a public depository for this thing and making it an open-source project? We could probably set one up on SourceForge or something.

Wade

0
Comment actions Permalink

There A LOT OF changes to the plugin :)

I already visited your page and was going to drop you a personal note, but thought I'd better announce the link to the public.

Concerning public repository, I'm waiting for JetBrains to setup centralized confluence page/subtree and cvs/svn repo. They said they are going to do this soon after returning from new year holidays ;)

0
Comment actions Permalink

There A LOT OF changes to the plugin :)


Yes :)

I took a very quick look at it this morning, and I'm very impressed and excited. Too bad I'm working like a galley slave on my actual job today, or I'd dive into it immediately. I think you have the nucleus for a serious shared plugin solution :(

W

0
Comment actions Permalink

In fact, we created a special tool called "degenerator" which processed source
code and replaced usages of generic collections (as well as some other C#
2.0 constructs) with C# 1.1-compliant code. We run it on ReSharper sources
to get version for VS2003. We plan to include it into ReSharper installation
for plugin authors to be able to provide plugins for both versions of Visual
Studio.

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello Ilya,

unfortunately most likely it won't work under VS 2005. The problem is
that
ReSharper interfaces have different interfaces for .NET
framework 1.1 and 2.0 due to usage of generics. So it seems that
plugins
also need to be compiled against 1.1 and 2.0 framework just
like ReSharper's assemblies. If you have no VS 2005 to make a version
of
your plugin for it, we could do it here.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> NO GUARATEES IT WILL WORK. Not even tested under VS2005.
>>


0
Comment actions Permalink

>> Also, it would be nice to setup Confluence subtree for plugin
>> developers, so that announcements of new plugins, versions, etc could
>> be made.
>>

+1

Additionally, setting up SVN repo for plugin developers would also be
nice. Actually, I can install such one at any time on my university
server but it seems reasonable to host it somewhere at Jetbrains.
Doing so we can ensure that it wil exist at least as long as Resharper
is still under development =).


We are working on this. Probably the above services will be available in
February.

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello Ilya,

>> Also, it would be nice to setup Confluence subtree for plugin
>> developers, so that announcements of new plugins, versions, etc could
>> be made.
>>

+1

Additionally, setting up SVN repo for plugin developers would also be
nice. Actually, I can install such one at any time on my university
server but it seems reasonable to host it somewhere at Jetbrains.
Doing so we can ensure that it wil exist at least as long as Resharper
is still under development =).

Best regards,
Maxim



0

Please sign in to leave a comment.