You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "red (JIRA)" <ji...@apache.org> on 2018/07/16 07:32:00 UTC

[jira] [Updated] (NETBEANS-1039) Netbeans, C++, Remote - Code Assistant doesn't pick up include files

     [ https://issues.apache.org/jira/browse/NETBEANS-1039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

red updated NETBEANS-1039:
--------------------------
    Environment: Dev laptop running Win10 x64, Java 1.8.0_161 with clean install of Netbeans 8.2 C++ bundle; Raspberry PI with Alpine Linux 3.8 and GCC, G++, GDBServer, Make apks loaded. All /usr/include files present on PI. Netbeans connectivity via SSH private key, Samba installed on PI.   (was: Win10 x64, Java 1.8.0_161 with clean install of Netbeans 8.2 C++ bundle; Raspberry PI with Alpine Linux 3.8 and GCC, G++, GDBServer, Make apks loaded. All /usr/include files present on PI. Netbeans connectivity via SSH private key only, no samba on PI. )
    Description: 
A minimal C++ source code file remote compiles \ runs \ debugs correctly, but Code Assistant redlines any #include files\functions, e.g. <stdio.h> and printf().

Tools...Options...Code Assistance shows all the correct include paths for C & C++ that it should be using to locate the header files in the PI. "Reset settings" has no effect on the issue.

Menu option "project"... "code assistant"... "Clean C/C++cache and restart IDE", causes source code re-displayed on restart with no redlines. Clicking in the source code window then causes the code to get redlined again.

Menu option code assistant ... "Failed #include/#error Directives" doesn't do anything.

Have tried all suggestions found on the internet to try and fix issue with no success.

  was:
Minimal C++ source code file remote compiles \ runs \ debugs correctly, but Code Assistant redlines any #include files\functions, e.g. <stdio.h> and printf().

Tools...Options...Code Assistance shows all the correct include paths for C & C++ that it should be using to locate the header files in the PI. "Reset settings" has no effect on the issue.

Menu option "project"... "code assistant"... "Clean C/C++cache and restart IDE", causes source code re-displayed on restart with no redlines. Clicking in the source code window then causes the code to get redlined again.

Menu option code assistant ... "Failed #include/#error Directives" doesn't do anything.

Have tried all suggestions found on the internet to try and fix issue with no success.


A workaround for this problem is as follows -

step 1 - Using Samba, make a copy of the remotes include files\folders onto you local hard drive. Put the files at the root of your drive, e.g. D:\usr\include..... You only need to copy over the folders that are listed in the Code Assistance include directory lists.

step 2 - In your Project properties, under Build ... C and C++ Compiler, set the "Include Directories" list to be identical to that of the Code Assistance include directories... just prefix each line with D:\. If cut & pasting, the path separators don't need to be changed from Unix style - it still works.

Code Assistant will then work correctly. You only need to update the local include files should they ever change.

 

 

> Netbeans, C++, Remote - Code Assistant doesn't pick up include files
> --------------------------------------------------------------------
>
>                 Key: NETBEANS-1039
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1039
>             Project: NetBeans
>          Issue Type: Bug
>          Components: editor - Completion &amp; Templates
>    Affects Versions: 8.2
>         Environment: Dev laptop running Win10 x64, Java 1.8.0_161 with clean install of Netbeans 8.2 C++ bundle; Raspberry PI with Alpine Linux 3.8 and GCC, G++, GDBServer, Make apks loaded. All /usr/include files present on PI. Netbeans connectivity via SSH private key, Samba installed on PI. 
>            Reporter: red
>            Priority: Major
>
> A minimal C++ source code file remote compiles \ runs \ debugs correctly, but Code Assistant redlines any #include files\functions, e.g. <stdio.h> and printf().
> Tools...Options...Code Assistance shows all the correct include paths for C & C++ that it should be using to locate the header files in the PI. "Reset settings" has no effect on the issue.
> Menu option "project"... "code assistant"... "Clean C/C++cache and restart IDE", causes source code re-displayed on restart with no redlines. Clicking in the source code window then causes the code to get redlined again.
> Menu option code assistant ... "Failed #include/#error Directives" doesn't do anything.
> Have tried all suggestions found on the internet to try and fix issue with no success.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists