History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-25595
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Dmitry Lomov
Reporter: Theo Harper
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

Code wrapped with conditional compilation (#IF) not parsed.

Created: 06 Aug 06 17:49   Updated: 09 Sep 06 13:33
Component/s: None
Fix Version/s: 2.0.1
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive BG1.zip (590 kb)

Issue Links:
Duplicate
 
This issue is duplicated by:
RSRP-25596 Resharper not obeying conditional com... Closed

Build: 248
Fixed in build: 251
Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=25595


 Description  « Hide
Code wrapped using conditional compilation statements (#if DEBUG) are not parsed, even when DEBUG is in the compilation environment. In fact the code highloghts as completely green. The code is not greyed out like it usally is when DEBUG is not in the environment.

This only happens on one of our larger solutions, but I will attach a small example when I can re-create it, but wanted to raise this now should it be easy to fix.

Theo



 All   Comments   Work Log   Change History      Sort Order:
Theo Harper - 09 Aug 06 15:05
Re: #25595- Code wrapped with conditional compilation (#IF) not parsed.
The problem seems to be that Resharper does not take into account the compilation symbols specified using the 'Conditional Compilation Symbols' textbox in VS2005.

Using the define DEBUG and TRACE checkboxes work okay but only for DEBUG and TRACE.

(Interestingly unchecking these boxes and entering TRACE, DEBUG into the texbox also does not work.)

See attached.

(Please close Tracker Request # 25596 as I got an error raising this tracker and assumed it has not submitted, Sorry.)


Theo Harper - 09 Aug 06 15:05
Re: #25595- Code wrapped with conditional compilation (#IF) not parsed.
Attached.

Dmitry Lomov - 09 Aug 06 15:05
Re: #25595- Code wrapped with conditional compilation (#IF) not parsed.
Theo,
the workaround is to use ';' instead of ',' to separate conditional symbols in the list.

Friendly,
Dmitry


Dmitry Lomov - 09 Aug 06 15:05
Re: #25595- Code wrapped with conditional compilation (#IF) not parsed.
Theo,
the workaround is to use ';' instead of ',' to separate conditional symbols in the list.

Friendly,
Dmitry