Plugin: actions not showing on VS menus

Hi.

I have been developing a plugin for a while now, against 5.1.

I am now trying to get everything working with 6.0. Apart from the HUGE amounts of breaking changes in the API, I am having a problem in that any actions I add to VS menus are not present in the relevant menus (i.e. VS#Solution, VS#Solution Folder, VS#Project, VS#Reference Item.

They all appear fine in 5.1, but not in 6.0.

Has something changed around actions.xml for 6.0? Or am I doing something stupid? Or is it a bug? :)

Thanks,
Nick

6 comments

Also, when trying to add an action to the Refactor menu, which worked in 5.1, I get the following exception:

Prev action 'ActionGroup(id = Refactor.Convert)' not found. Group='ReSharper.Refactor', action='Refactory.ChangeConstructorSignature', parentCommandBar='&Refactor'

--- EXCEPTION #1/2 [AssertionException]
Message = “Prev action 'ActionGroup(id = Refactor.Convert)' not found. Group='ReSharper.Refactor', action='Refactory.ChangeConstructorSignature', parentCommandBar='&Refactor'”
ExceptionPath = Root.InnerException
ClassName = JetBrains.Util.Assertion+AssertionException
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.Platform.ReSharper.Util
StackTraceString = “
  at JetBrains.Util.Assertion.Fail(String message) in c:\BuildAgent\work\c4b2ec378d776aaa\Platform\src\Util\src\Assertion.cs:line 39
     at JetBrains.Util.Assertion.Assert(Boolean condition, String message, Object[] args) in c:\BuildAgent\work\c4b2ec378d776aaa\Platform\src\Util\src\Assertion.cs:line 18
     at JetBrains.VsIntegration.ActionManagement.VsActionManager.GetPositionByAction(IUpdatableAction action, IActionGroup parentGroup, CommandBar parentCommandBar, Boolean& afterSeparator) in c:\BuildAgent\work\c4b2ec378d776aaa\Platform\src\VSIntegration\src\ActionManagement\VSActionManager.cs:line 638
     at JetBrains.VsIntegration.ActionManagement.VsActionManager.ProcessActionInsertion(IActionBase action, IActionGroup parentGroup, CommandBar parentCommandBar) in c:\BuildAgent\work\c4b2ec378d776aaa\Platform\src\VSIntegration\src\ActionManagement\VSActionManager.cs:line 1099
     at JetBrains.VsIntegration.ActionManagement.VsActionManager.OnGroupContentsChanged(IActionGroup group, IActionBase[] oldContents, IActionBase[] addedActions, IActionBase[] removedActions) in c:\BuildAgent\work\c4b2ec378d776aaa\Platform\src\VSIntegration\src\ActionManagement\VSActionManager.cs:line 1067
     at JetBrains.ActionManagement.ActionGroup.OnActionAdded(IActionBase[] oldActions, IActionBase action) in c:\BuildAgent\work\c4b2ec378d776aaa\Platform\src\UI\src\ActionSystem\Action\ActionGroup.cs:line 73
     at JetBrains.ActionManagement.ActionCollection.InsertAction(Int32 pos, IActionBase action) in c:\BuildAgent\work\c4b2ec378d776aaa\Platform\src\UI\src\ActionSystem\Action\ActionCollection.cs:line 103


The corresponding entry in actions.xml is:

  <insert group-id="ReSharper.Refactor" position="last">
    <action-ref id="Refactory.ChangeConstructorSignature" />
  </insert>

0

Hi there! This is a known bug that has been fixed very recently. It might be possible that the build you have doesn't have the fix yet.

0

Nick,

If you're able to reproduce the problem with recent ReSharper build and you send me your code for investigation, if would be terrific.
Thanks in advance.

0

Dmitri,

I am experiencing this issue using the latest build (2152, 23/05/2011).

Thanks,
Nick

0

Sergey,

I will see if I can put together a small sample project that reproduces the issue.

Thanks,
Nick

0

It would be great. Even if  you're unable to create a small sample, you may upload all the bunch to our ftp.
Thanks in advance.

0

Please sign in to leave a comment.