Menu

#108 Namespace ignored in code completion

None
accepted
None
2014-03-02
2014-02-03
No

Version: 5.6.0 with MinGW 4.8.1 (not TDM)

OS version: Windows 8.0 Pro

Error reported: Code completion for namespaces and file suggestion in #include <> and #include "" aren´t working.

Stack trace: No stack trace. It´s a editor issue, not code.

Steps needed to reproduce the problem: Create a C++ project, save the main.cpp default file, and:
1 - Write #include <> or #include "" and press ctrl+space inside the <> (or "").
2 - Type std:: inside main( ) and press ctrl+space.

Discussion

  • Jeff Sturmann

    Jeff Sturmann - 2014-02-03
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -6,6 +6,6 @@
    
     Stack trace: No stack trace. It´s a editor issue, not code.
    
    -Steps needed to reproduce the problem: Create a project, save the main.cpp default file, and:
    -1 - Write #include <> or #include "" and tap Ctrl+Space inside the <> (or "").
    -2 - Include the #include <iostream>, type std:: inside main( ) and tap ctrl+space.
    +Steps needed to reproduce the problem: Create a C++ project, save the main.cpp default file, and:
    +1 - Write #include <> or #include "" and press ctrl+space inside the <> (or "").
    +2 - Type std:: inside main( ) and press ctrl+space.
    
    • Milestone: -->
     
  • orwelldevcpp

    orwelldevcpp - 2014-02-03
    • status: open --> accepted
     
  • orwelldevcpp

    orwelldevcpp - 2014-02-03
    1. What is your expected behaviour of using Ctrl+Click inside an include? Currently, files can by navigated using "Ctrl+Click", just like the mouseover tooltip says.

    2. Yep, I haven't implemented that yet. Sorry. Namespaces are currently ignored.

     
  • Jeff Sturmann

    Jeff Sturmann - 2014-02-04

    The ctrl+click is working fine.
    The issue is in the ctrl+space shortcut. It doesn´t show any suggestion for file (if you write #include <iost and="" press="" ctrl+space,="" nothing="" happens)="" and="" worse,="" some="" times="" the="" current="" file="" vars="" and="" funcions="" is="" listed="" inside="" the="" <=""> or "".

    In Editor->Engine Options, the option "Scan files referenced by #include 'foo'" and "#include <bar>" are for code completion or to show the file suggestions inside the <> and "" ?

     
  • orwelldevcpp

    orwelldevcpp - 2014-02-04

    These two options are for code completion everywhere in the file. Because code completion is invalid inside an include statement, it is disabled. Anywhere else, the valid contents of the files you include are shown.

     
  • orwelldevcpp

    orwelldevcpp - 2014-02-04
    • summary: Namespace code completion and file finder aren´t working --> Namespace ignored in code completion
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.