File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
io.sloeber.core/src/io/sloeber/core Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 2828import org .eclipse .ui .plugin .AbstractUIPlugin ;
2929import org .osgi .framework .BundleContext ;
3030import org .osgi .service .prefs .BackingStoreException ;
31+ import org .osgi .service .prefs .Preferences ;
3132
3233import cc .arduino .packages .discoverers .SloeberNetworkDiscovery ;
3334import io .sloeber .core .common .Common ;
@@ -133,9 +134,19 @@ private static void testKnownIssues() {
133134 errorString += addString + "The Workspacepath can not contain spaces " + workSpacePath ;
134135 addString = "\n and\n " ;
135136 }
136-
137+ Preferences myScope = InstanceScope .INSTANCE .getNode ("org.eclipse.cdt.core" ).node ("indexer" );
138+ String indexAllFiles = myScope .get ("indexAllFiles" , new String ());
139+ String indexUnusedHeaders = myScope .get ("indexUnusedHeadersWithDefaultLang" , new String ());
140+ if (!"false" .equalsIgnoreCase (indexAllFiles )) {
141+ errorString += addString + "The indexer option \" index source files not included in the build\" must be off in windows->preferences->C/C++->indexer " ;
142+ addString = "\n and\n " ;
143+ }
144+ if (!"false" .equalsIgnoreCase (indexUnusedHeaders )) {
145+ errorString += addString + "The indexer option \" index unused headers\" must be off in windows->preferences->C/C++->indexer " ;
146+ addString = "\n and\n " ;
147+ }
137148 if (!errorString .isEmpty ()) {
138- errorString += "\n Sloeber might still function but if you get strange results you know where to look.\n " ;
149+ errorString += "\n \ n Sloeber might still function but if you get strange results you know where to look.\n " ;
139150 errorString += "Do not create an issue if you see this!!!" ;
140151 Common .log (new Status (IStatus .ERROR , PLUGIN_ID , errorString ));
141152 }
You can’t perform that action at this time.
0 commit comments