Coide complete issues?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kerry Sanders

    Coide complete issues?

    I am seeing some weird behavior in the editor and with code completion. I wrote
    the following code just a few minutes ago:

    private void menuItem1_Click (object sender, System.EventArg s e)
    {
    SaveFileDialog sf = new SaveFileDialog( );
    sf.DefaultExt = "xls";
    sf.InitialDirec tory =
    Environment.Get FolderPath(Envi ronment.Special Folder.Personal );
    }


    On the last line, when I type "Environmen t" and hit the period, I do not see
    SpecialFolder in the code complete list. This code compiles just fine. That
    surprised me. When I hover over the code on Personal in the last line, I do not
    see a balloon tip with information about it either.

    Does anybody have any ideas as to what might be up with this? By the way, under
    the C# options, I have "Hide Advanced Members" unchecked.

  • Daniel O'Connell

    #2
    Re: Coide complete issues?

    As best I can tell, its an annoying oversight in intellisense, the IDE
    intellisense doesn't seem to work very well with nested classes or enums.
    Its something I hope for in Whidbey (I just had that problem the other day
    too).

    "Kerry Sanders" <dirgon@NOSPAMy ahoo.com> wrote in message
    news:nebrqvkil3 sut6reh69qi6j3c 8a9vcsi7t@4ax.c om...[color=blue]
    > I am seeing some weird behavior in the editor and with code completion. I[/color]
    wrote[color=blue]
    > the following code just a few minutes ago:
    >
    > private void menuItem1_Click (object sender, System.EventArg s e)
    > {
    > SaveFileDialog sf = new SaveFileDialog( );
    > sf.DefaultExt = "xls";
    > sf.InitialDirec tory =
    > Environment.Get FolderPath(Envi ronment.Special Folder.Personal );
    > }
    >
    >
    > On the last line, when I type "Environmen t" and hit the period, I do not[/color]
    see[color=blue]
    > SpecialFolder in the code complete list. This code compiles just fine.[/color]
    That[color=blue]
    > surprised me. When I hover over the code on Personal in the last line, I[/color]
    do not[color=blue]
    > see a balloon tip with information about it either.
    >
    > Does anybody have any ideas as to what might be up with this? By the way,[/color]
    under[color=blue]
    > the C# options, I have "Hide Advanced Members" unchecked.
    >[/color]


    Comment

    • Jeffrey Tan[MSFT]

      #3
      RE: Coide complete issues?


      Hi Kerry,

      Thanks for your posting.
      Base on my understanding, your problem related to the intellisense.
      But in my test application, I can not reproduce your problem. As I typed
      Environment with "." then the intellisense will show up, and i choose
      SpecialFolder.
      Can you give me some steps to reproduce the problem? Thanks

      Also, normally, the intellisense will generate when you press "." after an
      object. If it does not show up, you may try to press Ctrl+J to force it to
      show up .
      You can try if this works

      Hope this helps.

      Best regards,
      Jeffrey Tan
      Microsoft Online Partner Support
      Get Secure! - www.microsoft.com/security
      This posting is provided "as is" with no warranties and confers no rights.

      --------------------
      | From: Kerry Sanders <dirgon@NOSPAMy ahoo.com>
      | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
      | Subject: Coide complete issues?
      | Reply-To: dirgon@NOSPAMya hoo.com
      | Message-ID: <nebrqvkil3sut6 reh69qi6j3c8a9v csi7t@4ax.com>
      | X-Newsreader: Forte Agent 1.93/32.576 English (American)
      | MIME-Version: 1.0
      | Content-Type: text/plain; charset=us-ascii
      | Content-Transfer-Encoding: 7bit
      | Lines: 20
      | X-Trace:
      ofjmidbaofeaohd odbdpiflmbceked mfhojhikkbagflh cboopdbncmpkana gmbggjbeemledeo n
      conkghdcopgoocd mbhomhgelcadcmi fccdnmbgjhmnnmp gicogmajhmjkkmj lgieikdnmldjhob p
      hegcgdfo
      | NNTP-Posting-Date: Sat, 08 Nov 2003 22:01:09 EST
      | Date: Sat, 08 Nov 2003 21:02:09 -0600
      | Path:
      cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
      e.de!newsfeed.i cl.net!newsfeed .fjserv.net!new s-xfer2.atl.newsh osting.com!63.
      218.45.10.MISMA TCH!newshosting .com!news-xfer1.atl.newsh osting.com!38.1 44.126
      ..75.MISMATCH!f eed1.newsreader .com!newsreader .com!rip!news.w ebusenet.com!pe er
      01.cox.net!cox. net!bigfeed.bel lsouth.net!bign umb.bellsouth.n et!news.bellsou t
      h.net!bignews6. bellsouth.net.P OSTED!not-for-mail
      | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1976 93
      | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
      |
      | I am seeing some weird behavior in the editor and with code completion.
      I wrote
      | the following code just a few minutes ago:
      |
      | private void menuItem1_Click (object sender, System.EventArg s e)
      | {
      | SaveFileDialog sf = new SaveFileDialog( );
      | sf.DefaultExt = "xls";
      | sf.InitialDirec tory =
      | Environment.Get FolderPath(Envi ronment.Special Folder.Personal );
      | }
      |
      |
      | On the last line, when I type "Environmen t" and hit the period, I do not
      see
      | SpecialFolder in the code complete list. This code compiles just fine.
      That
      | surprised me. When I hover over the code on Personal in the last line, I
      do not
      | see a balloon tip with information about it either.
      |
      | Does anybody have any ideas as to what might be up with this? By the
      way, under
      | the C# options, I have "Hide Advanced Members" unchecked.
      |
      |

      Comment

      • Kerry Sanders

        #4
        Re: Coide complete issues?

        Sorry... emailed this first try instead of posting it here for everyone.

        ======
        Yes, sorry... I should have said Intellisense instead of code complete. :)

        Anyway, there is nothing special in my code as I posted it in the first message.
        The help entry for the System.Environm ent class does not even have SpecialFolder
        in the listing in my MSDN October 2003 library. This is truly weird.

        As mentioned, I type Environment, hit the period "." and I do not see
        SpecialFolder in the Intellisense list that pops up. The code that I posted
        compiles and operate properly, however.

        This is weird. I just tried this in a new application and it works perfectly.
        I am not sure what is so special about my particular application that I am
        working on. It is just a Windows form class that I am currently working with.
        I have the code in the click event for a context menu item.


        [color=blue]
        >Thanks for your posting.
        >Base on my understanding, your problem related to the intellisense.
        >But in my test application, I can not reproduce your problem. As I typed
        >Environment with "." then the intellisense will show up, and i choose
        >SpecialFolde r.
        >Can you give me some steps to reproduce the problem? Thanks
        >
        >Also, normally, the intellisense will generate when you press "." after an
        >object. If it does not show up, you may try to press Ctrl+J to force it to
        >show up .
        >You can try if this works[/color]

        Comment

        • Daniel O'Connell

          #5
          Re: Coide complete issues?


          "Kerry Sanders" <dirgon@NOSPAMy ahoo.com> wrote in message
          news:sfeuqv0eob bnahpjql0u55v7a eclcgfkcs@4ax.c om...[color=blue]
          > Sorry... emailed this first try instead of posting it here for everyone.
          >
          > ======
          > Yes, sorry... I should have said Intellisense instead of code complete.[/color]
          :)[color=blue]
          >
          > Anyway, there is nothing special in my code as I posted it in the first[/color]
          message.[color=blue]
          > The help entry for the System.Environm ent class does not even have[/color]
          SpecialFolder[color=blue]
          > in the listing in my MSDN October 2003 library. This is truly weird.
          >
          > As mentioned, I type Environment, hit the period "." and I do not see
          > SpecialFolder in the Intellisense list that pops up. The code that I[/color]
          posted[color=blue]
          > compiles and operate properly, however.
          >
          > This is weird. I just tried this in a new application and it works[/color]
          perfectly.[color=blue]
          > I am not sure what is so special about my particular application that I am
          > working on. It is just a Windows form class that I am currently working[/color]
          with.[color=blue]
          > I have the code in the click event for a context menu item.[/color]

          I don't know what it is, but nested enum\class intellisense is rather
          flakey. A couple of times now, nested class intellisense will work in
          certain files of a project, but not work in others. I don't know what the
          problem is, but its not isolated to you it seems.
          [color=blue]
          >
          >
          >[color=green]
          > >Thanks for your posting.
          > >Base on my understanding, your problem related to the intellisense.
          > >But in my test application, I can not reproduce your problem. As I typed
          > >Environment with "." then the intellisense will show up, and i choose
          > >SpecialFolde r.
          > >Can you give me some steps to reproduce the problem? Thanks
          > >
          > >Also, normally, the intellisense will generate when you press "." after[/color][/color]
          an[color=blue][color=green]
          > >object. If it does not show up, you may try to press Ctrl+J to force it[/color][/color]
          to[color=blue][color=green]
          > >show up .
          > >You can try if this works[/color]
          >[/color]


          Comment

          • Kerry Sanders

            #6
            Re: Coide complete issues?

            Thanks for the post. I had heard the same thing from a couple of other people.
            Hopefully it will be cleared up in an upcoming update.... if there is one, of
            course.

            [color=blue]
            >I don't know what it is, but nested enum\class intellisense is rather
            >flakey. A couple of times now, nested class intellisense will work in
            >certain files of a project, but not work in others. I don't know what the
            >problem is, but its not isolated to you it seems.[/color]

            Comment

            • Jeffrey Tan[MSFT]

              #7
              Re: Coide complete issues?


              Hi Kerry,

              As you said, there are no help for Environment.Spe cialFolder Enumeration in
              your MSDN?
              I think this should be the problem of your MSDN, you can find the help for
              Environment.Spe cialFolder Enumeration at:

              frlrfsystemenvi ronmentspecialf olderclasstopic .asp
              So it should be in the MSDN.

              Best regards,
              Jeffrey Tan
              Microsoft Online Partner Support
              Get Secure! - www.microsoft.com/security
              This posting is provided "as is" with no warranties and confers no rights.

              --------------------
              | From: Kerry Sanders <dirgon@NOSPAMy ahoo.com>
              | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
              | Subject: Re: Coide complete issues?
              | Reply-To: dirgon@NOSPAMya hoo.com
              | Message-ID: <sfeuqv0eobbnah pjql0u55v7aeclc gfkcs@4ax.com>
              | References: <nebrqvkil3sut6 reh69qi6j3c8a9v csi7t@4ax.com>
              <T2UDfQzpDHA.12 44@cpmsftngxa06 .phx.gbl>
              | X-Newsreader: Forte Agent 1.93/32.576 English (American)
              | MIME-Version: 1.0
              | Content-Type: text/plain; charset=us-ascii
              | Content-Transfer-Encoding: 7bit
              | Lines: 32
              | X-Trace:
              ofjmidbaofeaohd odbdpiflmbceked mfhojhikkbagflh cboejbdapadjcjp pkcdicabflmaplm e
              clooghdcopgoocd mbhomakbmolmalj ggfkghbgjhmnnmp gicogmadfpogmgh mgbgbgjnmbeclpg g
              heoapega
              | NNTP-Posting-Date: Mon, 10 Nov 2003 02:11:43 EST
              | Date: Mon, 10 Nov 2003 01:12:42 -0600
              | Path:
              cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
              e.de!tiscali!ne wsfeed1.ip.tisc ali.net!news.te le.dk!news.tele .dk!small.news. t
              ele.dk!newsfeed .news2me.com!cy clone1.gnilink. net!peer01.cox. net!cox.net!big f
              eed.bellsouth.n et!bignumb.bell south.net!news. bellsouth.net!b ignews6.bellsou t
              h.net.POSTED!no t-for-mail
              | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1979 12
              | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
              |
              | Sorry... emailed this first try instead of posting it here for everyone.
              |
              | ======
              | Yes, sorry... I should have said Intellisense instead of code complete.
              :)
              |
              | Anyway, there is nothing special in my code as I posted it in the first
              message.
              | The help entry for the System.Environm ent class does not even have
              SpecialFolder
              | in the listing in my MSDN October 2003 library. This is truly weird.
              |
              | As mentioned, I type Environment, hit the period "." and I do not see
              | SpecialFolder in the Intellisense list that pops up. The code that I
              posted
              | compiles and operate properly, however.
              |
              | This is weird. I just tried this in a new application and it works
              perfectly.
              | I am not sure what is so special about my particular application that I am
              | working on. It is just a Windows form class that I am currently working
              with.
              | I have the code in the click event for a context menu item.
              |
              |
              |
              | >Thanks for your posting.
              | >Base on my understanding, your problem related to the intellisense.
              | >But in my test application, I can not reproduce your problem. As I typed
              | >Environment with "." then the intellisense will show up, and i choose
              | >SpecialFolde r.
              | >Can you give me some steps to reproduce the problem? Thanks
              | >
              | >Also, normally, the intellisense will generate when you press "." after
              an
              | >object. If it does not show up, you may try to press Ctrl+J to force it
              to
              | >show up .
              | >You can try if this works
              |
              |

              Comment

              • Jeffrey Tan[MSFT]

                #8
                Re: Coide complete issues?


                Hi Kerry,

                Thanks for your feedback.
                I have done the test for you, but it seems that this problem can not always
                be reproduced out.
                I think you'd better provide your feedback to our product team, then they
                will review your suggest and add improvement for you.
                The address is: http://register.microsoft.com/mswish/suggestion.asp
                also, you can email to: mswish@microsof t.com
                Thanks for your understanding

                Best regards,
                Jeffrey Tan
                Microsoft Online Partner Support
                Get Secure! - www.microsoft.com/security
                This posting is provided "as is" with no warranties and confers no rights.

                --------------------
                | From: Kerry Sanders <dirgon@NOSPAMy ahoo.com>
                | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
                | Subject: Re: Coide complete issues?
                | Reply-To: dirgon@NOSPAMya hoo.com
                | Message-ID: <jqc0rvsjoug43q ubg0gkc5p685t7f n8pne@4ax.com>
                | References: <nebrqvkil3sut6 reh69qi6j3c8a9v csi7t@4ax.com>
                <T2UDfQzpDHA.12 44@cpmsftngxa06 .phx.gbl>
                <sfeuqv0eobbnah pjql0u55v7aeclc gfkcs@4ax.com>
                <#Fc9pu3pDHA.96 4@TK2MSFTNGP10. phx.gbl>
                | X-Newsreader: Forte Agent 1.93/32.576 English (American)
                | MIME-Version: 1.0
                | Content-Type: text/plain; charset=us-ascii
                | Content-Transfer-Encoding: 7bit
                | Lines: 10
                | X-Trace:
                bhmkggakljkaane fdbdpiflmbceked mfhojhikkbagflh cboajaepckdkpkc cnlfloekbkljbbg h
                lbloghdcopgoocd mbhomakbmolmalj ggfkghbgjhmnnmp gicogmaglnifphk bgkgpojmcoceakh b
                pkdndkgj
                | NNTP-Posting-Date: Mon, 10 Nov 2003 19:53:06 EST
                | Date: Mon, 10 Nov 2003 18:54:47 -0600
                | Path:
                cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new s-out.cwix.com!ne wsfeed.cwix.co
                m!opentransit.n et!small1.nntp. aus1.giganews.c om!nntp.giganew s.com!cyclone1. g
                nilink.net!peer 01.cox.net!cox. net!bigfeed.bel lsouth.net!bign umb.bellsouth.n e
                t!news.bellsout h.net!bignews3. bellsouth.net.P OSTED!2219e5d8! not-for-mail
                | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1982 27
                | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
                |
                | Thanks for the post. I had heard the same thing from a couple of other
                people.
                | Hopefully it will be cleared up in an upcoming update.... if there is
                one, of
                | course.
                |
                |
                | >I don't know what it is, but nested enum\class intellisense is rather
                | >flakey. A couple of times now, nested class intellisense will work in
                | >certain files of a project, but not work in others. I don't know what the
                | >problem is, but its not isolated to you it seems.
                |
                |

                Comment

                • Kerry Sanders

                  #9
                  Re: Coide complete issues?

                  That's right. In the October 2003 MDSN release, which I have installed here
                  from DVD, does not show the SpecialFolder enumeration on the members page for
                  the Environment class.

                  The breakdown of the Environment.Spe cialFolder enumeration is in the
                  documentation and I can find that if I just do an index look up for
                  "SpecialFolder" .

                  You just can't get to it if you go in through the Environment class help page.




                  On Tue, 11 Nov 2003 05:16:58 GMT, v-jetan@online.mi crosoft.com ("Jeffrey
                  Tan[MSFT]") wrote:
                  [color=blue]
                  >
                  >Hi Kerry,
                  >
                  >As you said, there are no help for Environment.Spe cialFolder Enumeration in
                  >your MSDN?
                  >I think this should be the problem of your MSDN, you can find the help for
                  >Environment.Sp ecialFolder Enumeration at:
                  >http://msdn.microsoft.com/library/de...us/cpref/html/
                  >frlrfsystemenv ironmentspecial folderclasstopi c.asp
                  >So it should be in the MSDN.
                  >
                  >Best regards,
                  >Jeffrey Tan
                  >Microsoft Online Partner Support
                  >Get Secure! - www.microsoft.com/security
                  >This posting is provided "as is" with no warranties and confers no rights.[/color]

                  Comment

                  • Jeffrey Tan[MSFT]

                    #10
                    Re: Coide complete issues?


                    Hi Kerry,

                    Ok, I see what you concern.
                    The Environment.Spe cialFolder Enumeration is in the same hierarchy as the
                    Environment, while not the member of Environment class.
                    This is because the SpecialFolder Enumeration is not a member of
                    Environment, while it is consts set associated with Environment class.
                    In MSDN class hierarchy, there are many classes like this. Such as
                    UriFormatExcept ion Class and UriHostNameType Enumeration, UriPartial
                    Enumeration.

                    Hope this helps,

                    Best regards,
                    Jeffrey Tan
                    Microsoft Online Partner Support
                    Get Secure! - www.microsoft.com/security
                    This posting is provided "as is" with no warranties and confers no rights.

                    --------------------
                    | From: Kerry Sanders <dirgon@NOSPAMy ahoo.com>
                    | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
                    | Subject: Re: Coide complete issues?
                    | Reply-To: dirgon@NOSPAMya hoo.com
                    | Message-ID: <bl01rvkvcbdq9h 0g2a59qucsc89dj md3hj@4ax.com>
                    | References: <nebrqvkil3sut6 reh69qi6j3c8a9v csi7t@4ax.com>
                    <T2UDfQzpDHA.12 44@cpmsftngxa06 .phx.gbl>
                    <sfeuqv0eobbnah pjql0u55v7aeclc gfkcs@4ax.com>
                    <6jP2LMBqDHA.20 88@cpmsftngxa06 .phx.gbl>
                    | X-Newsreader: Forte Agent 1.93/32.576 English (American)
                    | MIME-Version: 1.0
                    | Content-Type: text/plain; charset=us-ascii
                    | Content-Transfer-Encoding: 7bit
                    | Lines: 33
                    | X-Trace:
                    ldjgbllpbapjglp pdbdpiflmbceked mfhojhikkbagflh cbokcpkjlfjgail knijloekbkljbbg h
                    lbloghdcopgoocd mbhompfaamkfakh galebkbgjhmnnmp gicogmaaldpmedb mhjhpcjpkadijkk n
                    aadkglbf
                    | NNTP-Posting-Date: Tue, 11 Nov 2003 01:34:56 EST
                    | Date: Tue, 11 Nov 2003 00:37:26 -0600
                    | Path:
                    cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
                    e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!sm all1.nntp.aus1. gigane
                    ws.com!nntp.gig anews.com!cyclo ne1.gnilink.net !peer01.cox.net !cox.net!bigfee d
                    ..bellsouth.net !bignumb.bellso uth.net!news.be llsouth.net!big news5.bellsouth .n
                    et.POSTED!not-for-mail
                    | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1982 63
                    | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
                    |
                    | That's right. In the October 2003 MDSN release, which I have installed
                    here
                    | from DVD, does not show the SpecialFolder enumeration on the members page
                    for
                    | the Environment class.
                    |
                    | The breakdown of the Environment.Spe cialFolder enumeration is in the
                    | documentation and I can find that if I just do an index look up for
                    | "SpecialFolder" .
                    |
                    | You just can't get to it if you go in through the Environment class help
                    page.
                    |
                    |
                    |
                    |
                    | On Tue, 11 Nov 2003 05:16:58 GMT, v-jetan@online.mi crosoft.com ("Jeffrey
                    | Tan[MSFT]") wrote:
                    |
                    | >
                    | >Hi Kerry,
                    | >
                    | >As you said, there are no help for Environment.Spe cialFolder Enumeration
                    in
                    | >your MSDN?
                    | >I think this should be the problem of your MSDN, you can find the help
                    for
                    | >Environment.Sp ecialFolder Enumeration at:
                    |[color=blue]
                    >http://msdn.microsoft.com/library/de...-us/cpref/html[/color]
                    /
                    | >frlrfsystemenv ironmentspecial folderclasstopi c.asp
                    | >So it should be in the MSDN.
                    | >
                    | >Best regards,
                    | >Jeffrey Tan
                    | >Microsoft Online Partner Support
                    | >Get Secure! - www.microsoft.com/security
                    | >This posting is provided "as is" with no warranties and confers no
                    rights.
                    |
                    |

                    Comment

                    Working...