How could I resolve a non-working Eclipse indexer? - c

My Eclipse C indexer does not work, in the .metadata/.log file it writes an entry:
!ENTRY org.eclipse.cdt.core 1 0 2022-10-24 16:46:02.674
!MESSAGE Indexed 'eio_valto' (0 sources, 0 headers) in 0,008 sec: 0 declarations; 0 references; 0 unresolved inclusions; 0 syntax errors; 0 unresolved names (0%)
In the indexer settings "Index source and header files opened in editor" is ticked, so it should find at least one file, which is opened in my editor.
How could I resolve this?
This is a C project, which I created with File --> New --> C/C++ Project, and I use and external Makefile to build. It is the same as in all my other project, but the others work fine, only this does not.
Thanks in advance!
The entire log:
!SESSION 2022-10-24 16:16:41.372 -----------------------------------------------
eclipse.buildId=4.7.3.M20180330-0640
java.version=1.8.0_172
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=hu_HU
Framework arguments: -product org.eclipse.epp.package.cpp.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.cpp.product
!ENTRY org.eclipse.jface 2 0 2022-10-24 16:16:51.319
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2022-10-24 16:16:51.319
!MESSAGE A conflict occurred for ALT+CTRL+T:
Binding(ALT+CTRL+T,
ParameterizedCommand(Command(org.eclipse.search.ui.performTextSearchWorkspace,Find Text in Workspace,
Searches the files in the workspace for specific text.,
Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler#407b41e6,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,hu,,system)
Binding(ALT+CTRL+T,
ParameterizedCommand(Command(org.eclipse.tm.terminal.connector.local.command.launch,Open Local Terminal on Selection,
,
Category(org.eclipse.tm.terminal.view.ui.commands.category,Terminal Commands,null,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler#3291d9c2,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
!ENTRY org.eclipse.egit.ui 2 0 2022-10-24 16:17:03.170
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\mester.adam'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!ENTRY org.eclipse.epp.logging.aeri.ide 2 17 2022-10-24 16:17:07.658
!MESSAGE Server ‘org.eclipse.epp.logging.aeri.ide.server’ failed with exception: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $. ; version: 2.0.7.v20170906-1327
!STACK 0
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:224)
at com.google.gson.Gson.fromJson(Gson.java:887)
at com.google.gson.Gson.fromJson(Gson.java:852)
at com.google.gson.Gson.fromJson(Gson.java:801)
at org.eclipse.epp.internal.logging.aeri.ide.server.json.Json.deserialize(Json.java:91)
at org.eclipse.epp.internal.logging.aeri.ide.server.mars.IO.refreshConfiguration(IO.java:66)
at org.eclipse.epp.internal.logging.aeri.ide.server.mars.ServerConnection.startUp(ServerConnection.java:124)
at com.google.common.util.concurrent.AbstractIdleService$DelegateService$1.run(AbstractIdleService.java:62)
at com.google.common.util.concurrent.Callables$4.run(Callables.java:122)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:213)
... 9 more
!ENTRY org.eclipse.launchbar.core 2 0 2022-10-24 16:17:08.381
!MESSAGE Enablement expression is missing for descriptor type org.eclipse.cdt.debug.core.coreBuildDescriptorType
!ENTRY org.eclipse.launchbar.core 2 0 2022-10-24 16:17:08.399
!MESSAGE Enablement expression is missing for config provider for org.eclipse.cdt.debug.core.coreBuildDescriptorType
!ENTRY org.eclipse.launchbar.core 2 0 2022-10-24 16:17:08.413
!MESSAGE Enablement expression is missing for config provider for org.eclipse.cdt.debug.core.coreBuildDescriptorType
!ENTRY org.eclipse.cdt.core 1 0 2022-10-24 16:19:33.058
!MESSAGE Indexed 'eio_valto' (0 sources, 0 headers) in 0,145 sec: 0 declarations; 0 references; 0 unresolved inclusions; 0 syntax errors; 0 unresolved names (0%)
!ENTRY org.eclipse.cdt.core 1 0 2022-10-24 16:37:01.920
!MESSAGE Indexed 'eio_valto' (0 sources, 0 headers) in 0,127 sec: 0 declarations; 0 references; 0 unresolved inclusions; 0 syntax errors; 0 unresolved names (0%)
!ENTRY org.eclipse.cdt.core 1 0 2022-10-24 16:37:53.391
!MESSAGE Indexed 'eio_valto' (0 sources, 0 headers) in 0,103 sec: 0 declarations; 0 references; 0 unresolved inclusions; 0 syntax errors; 0 unresolved names (0%)

I have tried the followings:
rebuild index
close and reopen project, and then rebuild index
refresh project, and then rebuild index
delete the project and reimport it into the workspace
None of them helped.
Finally: I have deleted the project and created a new project with my files, but I had to create and re-configure all my build configurations. Now it works fine, the indexer too, but it is strange, because the workspace settings are the same, and I have set the project settings to the same too. So I don't accept my method as a solution, it is just a workaround. But now, I can't reproduce the issue, so I really don't know, how to find the proper solution for this problem.

Related

ORA-00600: internal error code, arguments: [pesld103_MMap: errno 1 errmsg Opetation not permitted],

Encountering the below error:
ORA-00600: internal error code, arguments: [pesld103_MMap: errno 1 errmsg Opetation not permitted],[],[],[]...
Have changed the fstab entry to:
tmpfs /dev/shm tmpfs defaults 0 0
But then too getting the same error when trying to import. Could anyone help me out in this?
Restart the database after changing fstab. Oracle support document ORA-600 [pesldl03_MMap: Errno 1 Errmsg Operation Not Permitted] (Doc ID 1625010.1) describes the steps to change the file, but does not mention restarting the database.

Katalon Studio fails to launch on Ubuntu 18.04.1 LTS, not sure why

I can't launch Katalon Studio from ubuntu and it gives me an error. I cant see any logs in the path mentioned. I've navigated to it through the terminal and by the file manager and it is empty. Any ideas as to what is going on here?
Any thoughts/resources to figure out what error or what kind of errors it could be?
I downloaded the latest version of java from oracle here. I had open JDK. Thought that could maybe be the problem, but that wasn't it. Let me know what you guys think.
error from trying to launch studio:
error from log file:
!SESSION 2018-12-26 13:21:47.986 -----------------------------------------------
eclipse.buildId=unknown
java.version=10.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64 -data config
!ENTRY com.kms.katalon 4 0 2018-12-26 13:21:49.019
!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml
!ENTRY com.kms.katalon 4 0 2018-12-26 13:21:49.019
!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml
!ENTRY com.kms.katalon 4 0 2018-12-26 13:21:49.380
!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml
!ENTRY com.kms.katalon 4 0 2018-12-26 13:21:49.380
!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml
katalon.versionNumber=5.10.0
katalon.buildNumber=1
Wed Dec 26 13:21:51 CST 2018
!ENTRY org.eclipse.osgi 4 0 2018-12-26 13:21:51.463
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: java/sql/SQLException
at com.kms.katalon.logging.LogUtil$1.call(LogUtil.java:46)
at com.kms.katalon.logging.LogUtil.logSync(LogUtil.java:88)
at com.kms.katalon.logging.LogUtil.writeError(LogUtil.java:34)
at com.kms.katalon.logging.LogUtil.logError(LogUtil.java:65)
at com.kms.katalon.logging.LogUtil.logError(LogUtil.java:28)
at com.kms.katalon.core.application.Application.internalRunGUI(Application.java:122)
at com.kms.katalon.core.application.Application.runGUI(Application.java:105)
at com.kms.katalon.core.application.Application.start(Application.java:63)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
Caused by: java.lang.ClassNotFoundException: java.sql.SQLException
at java.base/java.lang.ClassLoader.findClass(ClassLoader.java:711)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:371)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:364)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
... 21 more
!ENTRY org.eclipse.e4.ui.workbench 4 0 2018-12-26 13:21:51.469
!MESSAGE FrameworkEvent ERROR
!STACK 0
java.lang.NoClassDefFoundError: javax/annotation/PreDestroy
at org.eclipse.e4.core.internal.di.InjectorImpl.disposed(InjectorImpl.java:426)
at org.eclipse.e4.core.internal.di.Requestor.disposed(Requestor.java:154)
at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:78)
at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:111)
at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.handleInvalid(TrackableComputationExt.java:74)
at org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:176)
at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.dispose(EclipseContextOSGi.java:106)
at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.bundleChanged(EclipseContextOSGi.java:139)
at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:903)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:156)
at org.eclipse.osgi.container.Module.publishEvent(Module.java:476)
at org.eclipse.osgi.container.Module.doStop(Module.java:634)
at org.eclipse.osgi.container.Module.stop(Module.java:498)
at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy cannot be found by org.eclipse.e4.core.di_1.6.1.v20160712-0927
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:410)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:372)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:364)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
... 21 more
I figured out what the problem was. It seems that Katalon Studio wants a specific version of openjdk. Not the newest version. Their documentation on the subject seems pretty buried when compared to MacOS/Windows installation instructions. The linux version is in beta. After uninstalling all jres/jdks, I referred to the following:
https://docs.katalon.com/katalon-studio/docs/katalon-studio-gui-beta-for-linux.html
openJDK 11 didn't work but openJDK 8 worked just fine. Hopefully they make it work with other versions eventually. Appreciate all the help I got from all of you!
The log file might be hidden, could you try to get it?
http://www.lostsaloon.com/technology/how-to-show-hidden-files-in-linux/

Compiler error linking objects for remote compiling in visual studio

Currently I run a freenas jail so I can compile my c code, that uses some POSIX functions. The jail is fresh, all I did was enable SSH and 'pkg install gcc'. However I get the following error:
1>Starting remote build
1>Compiling sources:
1>main.c
1>cc1 : warning : command line option '-fthreadsafe-statics' is valid for C++/ObjC++ but not for C
1>cc1 : warning : command line option '-frtti' is valid for C++/ObjC++ but not for C
1>Linking objects
1>/usr/local/lib/gcc6/gcc/x86_64-portbld-freebsd11.1/6.4.0/../../../libstdc++.so : error : undefined reference to `__cxa_thread_atexit_impl#FBSD_1.5'
1>collect2 : error : ld returned 1 exit status
1>Done building project "testingdesktop.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I don't have a clue what's going on, something is missing but I am not sure why.

Getting error while compiling in keil?

I am working with MK60N512MD100 (TWR-K60N512 tower kit) I am trying to extract Freescale_USB_Stack_v4.1.1 and creating my own project, But I am getting following error even after I copied all related files.
***********************error LOG ************************
> main_kinetis.c: 5 warnings, 0 errors linking... .\USB_DEV.axf:
> Warning: L6304W: Duplicate input file .\startup_mk60n512md100.o
> ignored. .\USB_DEV.axf: Error: L6320W: Ignoring --entry command.
> Cannot find argument 'Reset_Handler'. .\USB_DEV.axf: Warning: L6320W:
> Ignoring --first command. Cannot find argument '__Vectors'. Not enough
> information to list image symbols. Not enough information to list the
> image map. Finished: 2 information, 2 warning and 1 error messages.
> ".\USB_DEV.axf" - 1 Error(s), 7 Warning(s). Target not created
Please help me in resolving this issue.

Cocos2d-x cannot run build-win32.bat on Windows 7 64 bit

I'm new in cocos2d-x. I started setting up environment for developing.
I download the cocos2d-x-2.1.5 zip file and extracted. Then I double click on build-win32.bat, these line apppeared :
Build started 8/28/2013 9:08:01 AM.
0>D:\Dev_cocos2dx\cocos2d-x-2.1.5\cocos2d-win32.vc2012.sln : Solution file error MSB5009: Erro
r parsing the nested project section in solution file.
Build FAILED.
D:\Dev_cocos2dx\cocos2d-x-2.1.5\cocos2d-win32.vc2012.sln : Solution file error MSB5009: Er
ror parsing the nested project section in solution file.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.01
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.18052]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 8/28/2013 9:08:01 AM.
0>D:\Dev_cocos2dx\cocos2d-x-2.1.5\cocos2d-win32.vc2012.sln : Solution file error MSB5009: Erro
r parsing the nested project section in solution file.
Build FAILED.
D:\Dev_cocos2dx\cocos2d-x-2.1.5\cocos2d-win32.vc2012.sln : Solution file error MSB5009: Er
ror parsing the nested project section in solution file.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.01
/*
* Check the cocos2d-win32 application "TestCpp.exe" ...
*/
The system cannot find the path specified.
/*
* Run cocos2d-win32 tests.exe and view Cocos2d-x Application Wizard for Visual Studio User Guide.
*/
File not found - Resources
0 File(s) copied
File not found - Resources
0 File(s) copied
File not found - Resources
0 File(s) copied
File not found - Resources
0 File(s) copied
File not found - Resources
0 File(s) copied
File not found - js
0 File(s) copied
File not found - tests
0 File(s) copied
File not found - MoonWarriors
0 File(s) copied
File not found - WatermelonWithMe
0 File(s) copied
File not found - Published files iOS
0 File(s) copied
Can't find the binary "TestCpp.exe", is there build error?
Press any key to continue . . .
I'm using windows 7 64bit .
Thanks!
I found a solution:
1.Open the "cocos2d-win32.vc2010.sln".
2.Create a new project.
3.Delete the project of step 2.
4.Close .sln file, click save.
After these steps, my batch file works well. Hope it is useful for you.

Resources