Reporter | Damian Brady (Damian.Brady) |
---|---|
Created | Mar 1, 2012 4:47:20 AM |
Updated | Mar 1, 2012 4:47:20 AM |
Priority | Normal |
Type | Bug |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | Language - ASP.NET |
Affected versions | 6.1 |
Fixed in build | No Fixed in build |
Visual Studio consistently crashes when editing any .cshtml file in an ASP.NET MVC 4 (beta) project with the Resharper Razor Editor helpers turned on.
It appears to be related to the html/razor formatting that R# applies when I press the Enter key in between an opening and closing tag. E.g. pressing Enter while the cursor is in the middle of a "<div></div>" piece of markup.
The editor automatically inserts a new line and indents my cursor and then promptly crashes.
Note that after turning all these options off and verifying that it worked, I turned them back on to test. The crash no longer happened. i.e. It worked when I turned it off and on again... o_O
--
To reproduce:
1. Open Visual Studio
2. File | New | Project...
3. Navigate to and Choose "ASP.NET MVC 4 Web Application", click OK
4. Choose the Empty template, click OK
5. In the Solution Explorer, right-click on Controllers, then choose Add | Controller...
6. Input "HomeController" into the Controller name field, click Add
7. In the editor for HomeController.cs, right-click inside the Index() method and choose Add View...
8. Leave all values in the dialog as set and click Add
9. In the editor for Index.cshtml, navigate to the end of the file.
10. Type "<ul>" (no quotes), the editor should fill in the closing tag.
11. With the cursor in between the open and closing tags, press Enter.
At this point, I consistently get a Visual Studio crash.
It appears to be related to the html/razor formatting that R# applies when I press the Enter key in between an opening and closing tag. E.g. pressing Enter while the cursor is in the middle of a "<div></div>" piece of markup.
The editor automatically inserts a new line and indents my cursor and then promptly crashes.
Note that after turning all these options off and verifying that it worked, I turned them back on to test. The crash no longer happened. i.e. It worked when I turned it off and on again... o_O
--
To reproduce:
1. Open Visual Studio
2. File | New | Project...
3. Navigate to and Choose "ASP.NET MVC 4 Web Application", click OK
4. Choose the Empty template, click OK
5. In the Solution Explorer, right-click on Controllers, then choose Add | Controller...
6. Input "HomeController" into the Controller name field, click Add
7. In the editor for HomeController.cs, right-click inside the Index() method and choose Add View...
8. Leave all values in the dialog as set and click Add
9. In the editor for Index.cshtml, navigate to the end of the file.
10. Type "<ul>" (no quotes), the editor should fill in the closing tag.
11. With the cursor in between the open and closing tags, press Enter.
At this point, I consistently get a Visual Studio crash.