in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Parameter name format not correct

Last post 10/11/2007 4:58 PM by daniel blanchard. 9 replies.
Page 1 of 1 (10 items)
Sort Posts:
Previous Next
  • 8/30/2007 1:20 PM

    Parameter name format not correct

     There appears to be a bug in the latest version (2.5.1)

     If I am making a method, I first type in the type, say DataSet, and then I click ctrl-A to make the variable.  My settings have Parameters to be camelCase with no prefix, and my Fields to be PascalCase with m_ prefix.  So, I would expect the variable that is created to be dataSet, but instead it is m_DataSet.  Why is this?

    Thanks,

     

    Dan


     

    Filed under: , ,
  • 8/30/2007 4:19 PM In reply to

    Re: Parameter name format not correct

    Hi Dan,
     
    This may be an issue with the incremental parser taking some time to catch up with your changes, or it may be that the code is missing begin/end braces, or it may be that your setting change was on a page different from the one for the current language you're working in (make sure the Language combo at the bottom of the Options dialog matches the language you're setting the preference for).
     
    If you have steps to reproduce, we'd love to see them.

    Best regards,
     
    Mark Miller - Developer Express
    C# MVP
    "daniel blanchard" wrote in message news:193204@community.devexpress.com...

     There appears to be a bug in the latest version (2.5.1)

     If I am making a method, I first type in the type, say DataSet, and then I click ctrl-A to make the variable.  My settings have Parameters to be camelCase with no prefix, and my Fields to be PascalCase with m_ prefix.  So, I would expect the variable that is created to be dataSet, but instead it is m_DataSet.  Why is this?

    Thanks,

     

    Dan


     



    http://community.devexpress.com//forums/p/57226/193204.aspx#193204

  • 9/8/2007 11:33 AM In reply to

    Re: Parameter name format not correct

     Hi,

    I am able to reproduce it rather easily.  if I type the method signature myself and there are no { } then the m_ is there, ie:

     public void SomeMethod(DataTable)   --- shows m_DataTable when I press ctrl-A

    otherwise if I use the mv template or the  { } are there, it does it as expected:

     public void SomeMethod(DataTable)   --- shows dataTable when I press ctrl-A

     {

     HTH,

     

    Dan



     

     

  • 9/8/2007 1:13 PM In reply to

    Re: Parameter name format not correct

    Hi Daniel,
     
    OK, thanks for this. The issue is caused by the missing braces. We will work to improve this.
     
    Tip: if you don't have the method braces when you're typing in the method signature then there may be more to CodeRush to exploit (namely, the m* templates for declaring methods).
     
    Bring up the CodeRush Training window (DevExpress | CodeRush) to see how to use these in a class.
     
    For example, start on an empty inside a class and press these keystrokes (and watch the training window, especially when you get to the vdt part):
     
        [m]
     
        [spacebar]
     
        (type the method name)
     
        [Enter]
     
        [v]  [d]  [t]
     
        (type the variable name)

        [Enter]
     
        (add method body code)
     
     
    Best regards,
     
    Mark Miller - Developer Express
    C# MVP
  • 9/20/2007 5:56 PM In reply to

    Re: Parameter name format not correct

    Hello,

     I just installed latest version and it is still happening under the scenario already described, and it is happening in another scenario:

     
    If the method braces are AND I am adding a new parameter before an existing parameter, it also makes the paramName m_BlahBlah instead of blahBlah

     
    example:

     

     public void SomeMethod(DataTable dataTable, DataRow!! , string someString)   --- if cursor is where !! is and i press ctrl-A, it shows m_DataRow

     {

    }

     This is quite irritating and i was hoping the original problem would be fixed in this update,is there any timeline on when it will be fixed?

     
    thanks,

     

    dan



     

     

  • 9/21/2007 10:38 PM In reply to

    Re: Parameter name format not correct

    More funkiness if I type ctrl-A in the param for say DataSet1.DataTable, it does the real ctrl-A and highlights everything.

     Is DevExpress taking a look at these 3 bugs?  You don't seem your responsive selves.

     
    thanks,

     
    dan
     

  • 9/24/2007 11:02 AM In reply to

    Re: Parameter name format not correct

    Hi Daniel,
     
    We're discussing this internally right now (the thread on this topic in our team's private forum is quite dynamic -- we just don't have any official response yet).
     
    Best regards,
     
    Mark Miller - Developer Express
    C# MVP
    "daniel blanchard" wrote in message news:195497@community.devexpress.com...

    More funkiness if I type ctrl-A in the param for say DataSet1.DataTable, it does the real ctrl-A and highlights everything.

     Is DevExpress taking a look at these 3 bugs?  You don't seem your responsive selves.


    thanks,


    dan
     



    http://community.devexpress.com//forums/p/57226/195497.aspx#195497

  • 9/24/2007 11:29 AM In reply to

    Re: Parameter name format not correct

    Rephrased: We're working on it.

    Best regards,
     
    Mark Miller - Developer Express
    C# MVP
    "Mark Miller (Developer Express)" wrote in message news:195663@community.devexpress.com...
    Hi Daniel,
     
    We're discussing this internally right now (the thread on this topic in our team's private forum is quite dynamic -- we just don't have any official response yet).
     
    Best regards,
     
    Mark Miller - Developer Express
    C# MVP
    "daniel blanchard" wrote in message news:195497@community.devexpress.com...

    More funkiness if I type ctrl-A in the param for say DataSet1.DataTable, it does the real ctrl-A and highlights everything.

     Is DevExpress taking a look at these 3 bugs?  You don't seem your responsive selves.


    thanks,


    dan
     



    http://community.devexpress.com//forums/p/57226/195497.aspx#195497



    http://community.devexpress.com//forums/p/57226/195663.aspx#195663

  • 10/11/2007 12:23 PM In reply to

    Re: Parameter name format not correct

     Hello, I just installed latest version 2.5.8 and I was hoping this would be fixed but now ctrl-A doesn't work at all!  It was much better when it did it wrong.  I am a little frustrated, I first reported this June 19th and it is almost 4 months later and now it is completely broken.  Unless there is some setting I can change to make it work?

    Is this going to be fixed or should I just get on with my life?  :)  (and go back to the previous version)

    Thanks,

    Dan


     

  • 10/11/2007 4:58 PM In reply to

    Re: Parameter name format not correct

    strange it seems to be working... ??  anyway, never mind.  seems the original bug is fixed.

     

    regards,

    dan 

Page 1 of 1 (10 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED