Bug Report T480377
Visible to All Users

Templates - CodeRush for Roslyn doesn't consider context in XML files

created 8 years ago

Hi,

I wanted to reuse my old personal templates (exported from CodeRush classic) and although I was able to import them in CodeRush for Roslyn,  they are not expanding.

I've realized that the problem is the Context defined for the imported templates. If I remove the context, the template expands fine in Roslyn but then I've lost the ability to avoid creating XML code in wrong places. How can I re-define the context in CodeRush for Roslyn?

For instance, one of the templates imported has the following entry in the Context so it should only expand if the parent tag is Params:

[InSection(Params)]

In Roslyn I've pressed the ellipsis button of the Context control but even I selected from the context provider dialog Code->Editor->XML->InSection it only results with the value [InSection] and no indication how can I define the proper context.

Comments (1)
DevExpress Support Team 8 years ago

    Hi Gelberm,

    Based on the information you provided, I created a new XML-related template with the same context dependency as you did and was able to reproduce the issue.
    Moreover, the "Check templates" button click gives me an error with the "Context not found" message.

    Unfortunately, at the moment, I cannot tell you the reason of the issue. Please give me some time to examine this behavior.

    Answers approved by DevExpress Support

    created 8 years ago (modified 8 years ago)

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.