Qt4-preview-feedback Archive, July 2007
Eclipse integration Qt rc1 error
Message 1 in thread
I compiling new snapshot Qt
(qt-win-opensource-src-4.3.1-snapshot-20070711), and want change QTDIR
inside Eclipse environment key, but after change i have message box with
error and now i see this always when i press OK in preferences (after
restart etc), i see log and found this:
!ENTRY org.eclipse.jface 4 0 2007-07-12 16:15:20.179
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at
com.trolltech.qtcppproject.preferences.QtPreferencePage.performOk(QtPreferencePage.java:401)
at
org.eclipse.jface.preference.PreferenceDialog$12.run(PreferenceDialog.java:926)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193)
at
org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:906)
at
org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:374)
at
org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.okPressed(WorkbenchPreferenceDialog.java:164)
at
org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at
org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)


Message 2 in thread
Hi,
this bug occurs if you have no Qt version set in the Qt preferences
page.
To make the Qt integration work, please open the preferences dialog
add your Qt version in the 'Qt' section there.
Thanks, Eike
On Jul 12, 2007, at 2:25 PM, SABROG wrote:
> I compiling new snapshot Qt (qt-win-opensource-src-4.3.1-
> snapshot-20070711), and want change QTDIR inside Eclipse
> environment key, but after change i have message box with error and
> now i see this always when i press OK in preferences (after restart
> etc), i see log and found this:
>
> !ENTRY org.eclipse.jface 4 0 2007-07-12 16:15:20.179
> !MESSAGE java.lang.NullPointerException
> !STACK 0
> java.lang.NullPointerException
> at
> com.trolltech.qtcppproject.preferences.QtPreferencePage.performOk
> (QtPreferencePage.java:401)
> at org.eclipse.jface.preference.PreferenceDialog$12.run
> (PreferenceDialog.java:926)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:857)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193)
> at org.eclipse.jface.preference.PreferenceDialog.okPressed
> (PreferenceDialog.java:906)
> at
> org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed
> (FilteredPreferenceDialog.java:374)
> at
> org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.okPressed
> (WorkbenchPreferenceDialog.java:164)
> at org.eclipse.jface.preference.PreferenceDialog.buttonPressed
> (PreferenceDialog.java:233)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
> at org.eclipse.swt.widgets.TypedListener.handleEvent
> (TypedListener.java:227)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
> 3682)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
> at org.eclipse.jface.window.Window.open(Window.java:796)
> at org.eclipse.ui.internal.OpenPreferencesAction.run
> (OpenPreferencesAction.java:65)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(
> ActionContributionItem.java:545)
> at org.eclipse.jface.action.ActionContributionItem.access$2
> (ActionContributionItem.java:490)
> at org.eclipse.jface.action.ActionContributionItem$5.handleEvent
> (ActionContributionItem.java:402)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
> 3682)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
> 2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault
> (Realm.java:289)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
> (Workbench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
> 149)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start
> (IDEApplication.java:106)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run
> (EclipseAppHandle.java:153)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplic
> ation(EclipseAppLauncher.java:106)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
> (EclipseAppLauncher.java:76)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run
> (EclipseStarter.java:363)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run
> (EclipseStarter.java:176)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
>
> <EclipseEnvironment.jpg>
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx
Message 3 in thread
> this bug occurs if you have no Qt version set in the Qt preferences page.
> To make the Qt integration work, please open the preferences dialog add
> your Qt version in the 'Qt' section there.
> Thanks, Eike
>
I configure qt integration and all be ok. But i compile new Qt version
and just want change dir to new Qt sources. But when i change PATH
envireonment and Qt section in preference i get this error, also now i
get this error:
"Error launching builder (mingw32-make release )
(Exec error:Launching failed)"
I go to properties of project "C/C++ Make Project->Environment" and
change variable PATH:
"C:\SABROG\qt-win-opensource-src-4.3.1-snapshot-20070711\bin;${env_var:PATH}"
to
"c:\mingw\bin;C:\SABROG\qt-win-opensource-src-4.3.1-snapshot-20070711\bin;${env_var:PATH}"
And project normal compiling. But i dont understand why eclipse dont
fine MinGW path in "${env_var:PATH}" becouse
"Window->Preference->C/C++->Environment" have variable PATH:
"C:\Program Files\Java\jre1.6.0_01\bin\client;C:\Program
Files\Java\jre1.6.0_01\bin;C:\Program
Files\Java\jre1.6.0_01\bin\client;C:\Program
Files\Java\jre1.6.0_01\bin;C:\SABROG\qt-win-opensource-src-4.3.1-snapshot-20070711\bin;C:\MinGW\bin;C:\WINNT\System32"
And this PATH have MinGW.
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx
Message 4 in thread
Hmm, strange. I remove all environment variables and readd they, now all
normal.
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx
Message 5 in thread
Yes, that seems strange, but maybe one variable was just set incorrect, before.
However, for basic Qt Eclipse development no environment variables need to be set at all if the global "Windows -> Preferences -> Qt" list has a valid Qt path set before creating projects or while creating the first project.
That Qt directory is automatically inserted into the project specific "Project -> Properties -> C/C++ Make Project" where also the PATH is set to something like "C:\Qt\4.3.0_OpenSource\bin;${env_var:PATH}".
And in order to make sure that mingw\bin is in the PATH variable, the installer of the integration generates a shortcut "Start Eclipse with MinGW" in the start menu. But apparently you don't need that since you seem to have Mingw\bin aready set system-wide, so you can start eclipse how you want.
The Environment variables list in "Window -> Preferences -> C/C++ -> Environment" is always empty on my machine, since I don't need those for building Qt applications in Eclipse, and these entries could easily create trouble.
Alessandro
SABROG schrieb:
> Hmm, strange. I remove all environment variables and readd they, now all
> normal.
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx
Message 6 in thread
Yes, that seems strange, but maybe one variable was just set incorrect, before.
However, for basic Qt Eclipse development no environment variables need to be set at all if the global "Windows -> Preferences -> Qt" list has a valid Qt path set before creating projects or while creating the first project.
That Qt directory is automatically inserted into the project specific "Project -> Properties -> C/C++ Make Project" where also the PATH is set to something like "C:\Qt\4.3.0_OpenSource\bin;${env_var:PATH}".
And in order to make sure that mingw\bin is in the PATH variable, the installer of the integration generates a shortcut "Start Eclipse with MinGW" in the start menu. But apparently you don't need that since you seem to have Mingw\bin aready set system-wide, so you can start eclipse how you want.
The Environment variables list in "Window -> Preferences -> C/C++ -> Environment" is always empty on my machine, since I don't need those for building Qt applications in Eclipse, and these entries could easily create trouble.
Alessandro
SABROG schrieb:
> Hmm, strange. I remove all environment variables and readd they, now all
> normal.
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx