<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Highlighting Custom Patterns with ReSharper</title>
	<atom:link href="http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/</link>
	<description>ReSharper for productivity, dotTrace for performance, dotCover for test coverage</description>
	<pubDate>Wed, 16 May 2012 20:49:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Eddie</title>
		<link>http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-320684</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Wed, 08 Dec 2010 06:28:47 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-320684</guid>
		<description>@Hadi Hariri,

I submitted the repro. I have raised issue RSRP-199662 and have emailed you.

Regards,
Eddie</description>
		<content:encoded><![CDATA[<p>@Hadi Hariri,</p>
<p>I submitted the repro. I have raised issue RSRP-199662 and have emailed you.</p>
<p>Regards,<br />
Eddie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-320617</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Tue, 07 Dec 2010 08:32:05 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-320617</guid>
		<description>@Hadi Hariri

Thanks. I have a repro and I will submit it via the link you provided above. I'll email you once I have done that!

Regards,

Eddie</description>
		<content:encoded><![CDATA[<p>@Hadi Hariri</p>
<p>Thanks. I have a repro and I will submit it via the link you provided above. I&#8217;ll email you once I have done that!</p>
<p>Regards,</p>
<p>Eddie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hadi Hariri</title>
		<link>http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-320238</link>
		<dc:creator>Hadi Hariri</dc:creator>
		<pubDate>Thu, 02 Dec 2010 10:57:21 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-320238</guid>
		<description>@Eddie,

I fully agree. We need to get this bug fixed and drastically improve error reporting on the pattern, which is already being done.

Could I please ask you to send us the patterns you are using and a small project to reproduce? If you could log it in http://youtrack.jetbrains.net and send me the ID, I'll make sure it will be looked at. My email is hadi at jetbrains.

Thanks.</description>
		<content:encoded><![CDATA[<p>@Eddie,</p>
<p>I fully agree. We need to get this bug fixed and drastically improve error reporting on the pattern, which is already being done.</p>
<p>Could I please ask you to send us the patterns you are using and a small project to reproduce? If you could log it in <a href="http://youtrack.jetbrains.net" rel="nofollow">http://youtrack.jetbrains.net</a> and send me the ID, I&#8217;ll make sure it will be looked at. My email is hadi at jetbrains.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-320215</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Thu, 02 Dec 2010 01:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-320215</guid>
		<description>Hi

Well I am at my wit's end trying to get the 'search' feature to work on the Pattern Catalog window.  I have added patterns that I know 100% work because they work on the Structural Search / Replace dialog - but once I save it to the pattern catalog and try to search off there I keep getting the infamous "Cannot parse pattern" error message. This has happened on more one computer - it's not just my environment. The funny thing is, you can tell the patterns do work because ReSharper highlights code issues matched by the patterns! Clearly this is a bug that needs fixing guys. It's been occurring since the feature was introduced as far as I recall.

This is most frustrating! I have a large solution with 57 projects and this feature would be an incredible asset but the problem I am experiencing renders it useless. I even tried removing all projects except for the core library, unloaded ReSharper (you know ReSharper_ToggleSuspended), reloaded, and still it does not work.

JetBrains ReSharper 5.1 Full Edition
Build 5.1.1753.4 on 2010-10-15T15:51:30


PS: Don't get me wrong; I love the structural search and replace. One suggestion though: when a pattern is indeed wrong and cannot be parsed, it would be awesome if the UI informed the user as to *why* it cannot be parsed.</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Well I am at my wit&#8217;s end trying to get the &#8217;search&#8217; feature to work on the Pattern Catalog window.  I have added patterns that I know 100% work because they work on the Structural Search / Replace dialog - but once I save it to the pattern catalog and try to search off there I keep getting the infamous &#8220;Cannot parse pattern&#8221; error message. This has happened on more one computer - it&#8217;s not just my environment. The funny thing is, you can tell the patterns do work because ReSharper highlights code issues matched by the patterns! Clearly this is a bug that needs fixing guys. It&#8217;s been occurring since the feature was introduced as far as I recall.</p>
<p>This is most frustrating! I have a large solution with 57 projects and this feature would be an incredible asset but the problem I am experiencing renders it useless. I even tried removing all projects except for the core library, unloaded ReSharper (you know ReSharper_ToggleSuspended), reloaded, and still it does not work.</p>
<p>JetBrains ReSharper 5.1 Full Edition<br />
Build 5.1.1753.4 on 2010-10-15T15:51:30</p>
<p>PS: Don&#8217;t get me wrong; I love the structural search and replace. One suggestion though: when a pattern is indeed wrong and cannot be parsed, it would be awesome if the UI informed the user as to *why* it cannot be parsed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GreenMoose</title>
		<link>http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-316699</link>
		<dc:creator>GreenMoose</dc:creator>
		<pubDate>Tue, 14 Sep 2010 05:28:58 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-316699</guid>
		<description>Re: "ReSharper suggests you use var (and with good reason)"

Consider this code
IService { IFoo GetIt(); }
//...
var foo = service.GetIt();
if (foo != null )
    service.StoreIt();

//Now we should refactor IFoo to be an int instead (for some weird reason), so we start with finding all references for IFoo. The above is not found since var is used. So we continue refactor GetIt() to return int instead of IFoo and return 0 where it previously returned null. Compile - no errors, but hopefully our unit tests aren't 100% coverage any longer and/or failing, so we can discover that something now is wrong.

//If we instead use:
IFoo foo = service.GetIt();
if (foo != null )
    service.StoreIt();


//We a) find the reference for IFoo before we continue refactoring b) We get compile error for refactoring since IFoo cannot be implicitly converted to an int.
//In both a and b we are helped to spot the foo != null and can change it to foo != 0.

Thus, usage of var keywoard IMHO should not be encouraged if it can be avoided :-).</description>
		<content:encoded><![CDATA[<p>Re: &#8220;ReSharper suggests you use var (and with good reason)&#8221;</p>
<p>Consider this code<br />
IService { IFoo GetIt(); }<br />
//&#8230;<br />
var foo = service.GetIt();<br />
if (foo != null )<br />
    service.StoreIt();</p>
<p>//Now we should refactor IFoo to be an int instead (for some weird reason), so we start with finding all references for IFoo. The above is not found since var is used. So we continue refactor GetIt() to return int instead of IFoo and return 0 where it previously returned null. Compile - no errors, but hopefully our unit tests aren&#8217;t 100% coverage any longer and/or failing, so we can discover that something now is wrong.</p>
<p>//If we instead use:<br />
IFoo foo = service.GetIt();<br />
if (foo != null )<br />
    service.StoreIt();</p>
<p>//We a) find the reference for IFoo before we continue refactoring b) We get compile error for refactoring since IFoo cannot be implicitly converted to an int.<br />
//In both a and b we are helped to spot the foo != null and can change it to foo != 0.</p>
<p>Thus, usage of var keywoard IMHO should not be encouraged if it can be avoided :-).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hadi Hariri</title>
		<link>http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-316345</link>
		<dc:creator>Hadi Hariri</dc:creator>
		<pubDate>Tue, 31 Aug 2010 05:40:21 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-316345</guid>
		<description>@Trupik

It underlines entire line.</description>
		<content:encoded><![CDATA[<p>@Trupik</p>
<p>It underlines entire line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hadi Hariri</title>
		<link>http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-316335</link>
		<dc:creator>Hadi Hariri</dc:creator>
		<pubDate>Mon, 30 Aug 2010 15:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-316335</guid>
		<description>@Rory

Your issue was solved with latest build right?</description>
		<content:encoded><![CDATA[<p>@Rory</p>
<p>Your issue was solved with latest build right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trupik</title>
		<link>http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-316334</link>
		<dc:creator>Trupik</dc:creator>
		<pubDate>Mon, 30 Aug 2010 15:02:30 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-316334</guid>
		<description>I want to match something like 
public $TYPE$ $PROPERTY_NAME$
but I want the suggetion to appear while standing on PROPERTY_NAME isntead while standing on the word public. Can this be achieved?</description>
		<content:encoded><![CDATA[<p>I want to match something like<br />
public $TYPE$ $PROPERTY_NAME$<br />
but I want the suggetion to appear while standing on PROPERTY_NAME isntead while standing on the word public. Can this be achieved?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor Kropp</title>
		<link>http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-316328</link>
		<dc:creator>Victor Kropp</dc:creator>
		<pubDate>Mon, 30 Aug 2010 14:17:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-316328</guid>
		<description>@Phil, I can explain this weirdness: string is a keyword, that can not mean anything other than System.String, while String in your pattern my refer to some custom class String in your own namespace. Assumption that String is always System.String will give false-positive matches.</description>
		<content:encoded><![CDATA[<p>@Phil, I can explain this weirdness: string is a keyword, that can not mean anything other than System.String, while String in your pattern my refer to some custom class String in your own namespace. Assumption that String is always System.String will give false-positive matches.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rory Primrose</title>
		<link>http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-316235</link>
		<dc:creator>Rory Primrose</dc:creator>
		<pubDate>Thu, 26 Aug 2010 01:09:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/dotnet/2010/08/highlighting-custom-patterns-with-resharper/#comment-316235</guid>
		<description>Unfortunately pattern search/replace has never worked for me. I always get a message saying "Can not parse pattern".</description>
		<content:encoded><![CDATA[<p>Unfortunately pattern search/replace has never worked for me. I always get a message saying &#8220;Can not parse pattern&#8221;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

