Indexer Problem with Arduino files [message #1826291] |
Wed, 22 April 2020 22:18 |
Sven Behnsen Messages: 3 Registered: April 2020 |
Junior Member |
|
|
Hi,
I am having some trouble with the indexer in C/C++ files in arduino projects. On newly created projects in the beginning everything is fine and the indexer finds all include files and symbols etc. But then after a little while it stops working and all header files, except for the local ones in the project, can not be resolved anymore. This means that also all content assist is not working anymore since almost nothing is resolved by the indexer anymore.
Projects will still build fine.
I have found a few posts about this kind of problem, but no real solution. Rebuilding the index or re-resolving the includes etc. does not solve this problem. Deleting the index cache files (the .pdom files) also does not fix the problem. Creating a new project and copying the source files to it does fix it for a little while until the indexer stops working again...
I have tried with a fresh eclipse install with the following versions, but the problem still remains:
Eclipse 2020-03 (4.15.0)
CDT/Arduino 9.11
I have tried with two different board support packages, and I see the same issue with both of them:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
https://arduino.esp8266.com/stable/package_esp8266com_index.json
When the indexer stopped working the log file Looks like this:
Project: be_weather
File: file:/D:/Dropbox/source/workspace/be_weather/be_log.cpp
Language: GNU C++
Index Version: 215.0
Build Configuration: Configuration
Context: none
Versions in Index: 0
Macro definitions (from language + headers in index):
__builtin_offsetof(T,m)=(reinterpret_cast <size_t>(&reinterpret_cast <const volatile char &>(static_cast<T*> (0)->m)))
__builtin_types_compatible_p(x,y)=__builtin_types_compatible_p(sizeof(x),sizeof(y))
__builtin_va_arg(ap,type)=*(typeof(type) *)ap
__CDT_PARSER__=91100
__complex__=_Complex
__COUNTER__=0
__cplusplus=201103L
__DATE__="Apr. 23 2020"
__extension__=
__FILE__="file"
__imag__=(int)
__LINE__=1
__null=0
__offsetof__(x)=(x)
__real__=(int)
__stdcall=
__STDC__=1
__thread=
__TIME__="01:16:28"
Unresolved includes (from headers in index):
file:/D:/Dropbox/source/workspace/be_weather/be_log.h is not indexed
Scanner problems:
Unresolved inclusion: <sys/time.h> in file: D:\Dropbox\source\workspace\be_weather\be_log.cpp:12
Unresolved inclusion: <cstring> in file: D:\Dropbox\source\workspace\be_weather\be_log.cpp:13
Unresolved inclusion: <stdio.h> in file: D:\Dropbox\source\workspace\be_weather\be_log.cpp:14
Unresolved inclusion: <string.h> in file: D:\Dropbox\source\workspace\be_weather\be_log.cpp:15
Unresolved inclusion: <stdlib.h> in file: D:\Dropbox\source\workspace\be_weather\be_log.cpp:16
Unresolved inclusion: <ctime> in file: D:\Dropbox\source\workspace\be_weather\be_log.cpp:17
Unresolved inclusion: <HardwareSerial.h> in file: D:\Dropbox\source\workspace\be_weather\be_log.cpp:18
Unresolved names:
Attempt to use symbol failed: va_list in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:40
Attempt to use symbol failed: time_t in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:42
Attempt to use symbol failed: va_start in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:45
Attempt to use symbol failed: memset in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:46
Attempt to use symbol failed: gettimeofday in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:47
Attempt to use symbol failed: NULL in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:47
Attempt to use symbol failed: tv_sec in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:48
Attempt to use symbol failed: strftime in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:49
Attempt to use symbol failed: localtime in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:49
Attempt to use symbol failed: strcat in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:50
Attempt to use symbol failed: strcat in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:51
Attempt to use symbol failed: strcat in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:52
Attempt to use symbol failed: strcat in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:53
Attempt to use symbol failed: vsprintf in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:54
Attempt to use symbol failed: strlen in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:54
Attempt to use symbol failed: va_end in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:55
Attempt to use symbol failed: Serial in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:57
Attempt to use symbol failed: println in file D:\Dropbox\source\workspace\be_weather\be_log.cpp:57
Written on Thu Apr 23 01:16:28 EEST 2020
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 1.05096 seconds