Export to GitHub

dxcorecommunityplugins - issue #155

CR_JumpToNamedMVCView not appearing


Posted on Aug 13, 2013 by Happy Giraffe

Which edition of the DevExpress toolset are you using?

  • CodeRush (pro) - 13.1.5.0
  • DXCore - 13.1.5.0
  • VS2010 Pro SP1

What OS?

*Win7

64bit

Which community plugin(s) are you attempting to use? CR_JumpToNamedMVCView

What steps will reproduce the problem? 1. Place cursor in view name as described 2. Ctrl+Alt+N

What is the expected output?

Should see Jump To -> Named MVC View

What do you see instead? Jump to menu appears but no entry for Named MVC View.

Comment #1

Posted on Aug 13, 2013 by Helpful Bear

Did you install this manually or via the Visual Studio gallery?

Comment #2

Posted on Aug 13, 2013 by Happy Giraffe

Manually, didn't realise it was also in the gallery! I'll try that.

Comment #3

Posted on Aug 13, 2013 by Happy Giraffe

I just tried via gallery. Still no luck.

Comment #4

Posted on Aug 13, 2013 by Helpful Bear

Did you also delete the manually installed copy?

Comment #5

Posted on Aug 13, 2013 by Happy Giraffe

Yes, I did. I've not installed any other community plugins yet. I'm at a new work site and I normally install CR_Documenter and CR_BlockPainterPlus from the gallery. I'll give those a try tomorrow to see whether there's a general problem.

Comment #6

Posted on Aug 23, 2013 by Helpful Bear

I've just created a Simple default MVC application with razor views and added a single action to the HomeController


    private ActionResult Test()
    {
        return View("Test");

}

Then I added a corresponding view "Test.cshtml"

With my caret positioned on the string literal "Test", I pressed Ctrl+Alt+N which revealed the "Named MVC View" item which then led to the view in question.

Can you reproduce this at your end? Is there something different about your local project?

Perhaps you could supply a simple project in which this plugin is not working.

Comment #7

Posted on Aug 23, 2013 by Helpful Bear

FWIW current requirements are

  • Caret must be positioned on a string literal.
  • Class surrounding caret must have name ending in "Controller"
  • The function call enclosing the string literal must be named either "View" or "PartialView"

Comment #8

Posted on Aug 23, 2013 by Happy Giraffe

Hi Rory, I've had "MVC View" appear in the popup occasionally. However, it then doesn't necessarily navigate to the right view. E.g., we have a number of action methods where it conditionally returns either a named view or a partial view. However, whether placed on either it always returns the view, not the partial view - or sometimes the wrong view altogether.

These are typically cases of the form

return View("name", model).

I may have to create a simple test application and see whether I still get the same problem. our real application has lots of other stuff in it, such as CoffeeScript and Sass.

Status: New

Labels:
Type-Defect Priority-Medium