kuporpal / smartypdt

Automatically exported from code.google.com/p/smartypdt
0 stars 0 forks source link

Error opening smarty templates #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to open any smarty template

What is the expected output? What do you see instead?
The template opens. Instead, this error is given:
An error has occurred. See error log for more details.
org/eclipse/php/internal/ui/preferences/util/WeakPropertyChangeListener

What version of the product are you using? On what operating system?
Newest release version of all-in-one PDT, Smarty PDT 0.5.3

Please provide any additional information below.

!ENTRY org.eclipse.jface 4 2 2008-02-05 19:34:18.047
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
java.lang.NoClassDefFoundError:
org/eclipse/php/internal/ui/preferences/util/WeakPropertyChangeListener
    at
org.eclipse.php.smarty.ui.editor.configuration.SmartyStructuredTextViewerConfigu
ration.setupPropertyChangeListener(SmartyStructuredTextViewerConfiguration.java:
164)
    at
org.eclipse.php.smarty.ui.editor.configuration.SmartyStructuredTextViewerConfigu
ration.getPHPContentAssistant(SmartyStructuredTextViewerConfiguration.java:187)
    at
org.eclipse.php.internal.ui.editor.PHPStructuredTextViewer.configure(Unknown
Source)
    at
org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEdito
r.java:3201)
    at
org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.ja
va:53)
    at
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(Abstract
DecoratedTextEditor.java:378)
    at
org.eclipse.wst.sse.ui.StructuredTextEditor.createPartControl(StructuredTextEdit
or.java:1724)
    at
org.eclipse.php.internal.ui.editor.PHPStructuredEditor.createPartControl(Unknown
Source)
    at
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:66
1)
    at
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
    at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.ja
va:592)
    at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:263)
    at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2
739)
    at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)
    at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)
    at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2565)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:644)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:603)
    at org.eclipse.php.internal.ui.util.EditorUtility.openInEditor(Unknown Source)
    at org.eclipse.php.internal.ui.util.EditorUtility.openInEditor(Unknown Source)
    at org.eclipse.php.internal.ui.actions.OpenActionUtil.open(Unknown Source)
    at org.eclipse.php.internal.ui.actions.OpenAction.run(Unknown Source)
    at org.eclipse.php.internal.ui.actions.OpenAction.run(Unknown Source)
    at
org.eclipse.php.internal.ui.actions.SelectionDispatchAction.dispatchRun(Unknown
Source)
    at org.eclipse.php.internal.ui.actions.SelectionDispatchAction.run(Unknown
Source)
    at
org.eclipse.php.internal.ui.explorer.ExplorerActionGroup.handleOpen(Unknown
Source)
    at org.eclipse.php.internal.ui.explorer.ExplorerPart$5.open(Unknown Source)
    at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820)
    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:199)
    at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818)
    at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079
)
    at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:11
83)
    at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263)
    at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:297)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
    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:169)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ecli
pseAppLauncher.java:106)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLau
ncher.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(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

Original issue reported on code.google.com by toni.suo...@gmail.com on 5 Feb 2008 at 5:41

GoogleCodeExporter commented 8 years ago
Same problem after upgrading to 0.5.3.
Tried to open a smarty template file and received the same error
PDT 1.0.2

log file snippet
!ENTRY org.eclipse.ui 4 0 2008-02-06 10:27:48.515
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoClassDefFoundError:
org/eclipse/php/internal/ui/preferences/util/WeakPropertyChangeListener
    at
org.eclipse.php.smarty.ui.editor.configuration.SmartyStructuredTextViewerConfigu
ration.setupPropertyChangeListener(SmartyStructuredTextViewerConfiguration.java:
164)
    at
org.eclipse.php.smarty.ui.editor.configuration.SmartyStructuredTextViewerConfigu
ration.getPHPContentAssistant(SmartyStructuredTextViewerConfiguration.java:187)
    at org.eclipse.php.internal.ui.editor.PHPStructuredTextViewer.configure(Unknown Source)
    at
org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEdito
r.java:3201)
    at
org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.ja
va:53)
    at
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(Abstract
DecoratedTextEditor.java:378)
    at
org.eclipse.wst.sse.ui.StructuredTextEditor.createPartControl(StructuredTextEdit
or.java:1724)
    at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.createPartControl(Unknown
Source)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
    at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.ja
va:592)
    at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
    at
org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart
.java:179)
    at
org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(Presenta
blePartFolder.java:268)
    at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRigh
tTabOrder.java:65)
    at
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(Ta
bbedStackPresentation.java:400)
    at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
    at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
    at org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:843)
    at org.eclipse.ui.internal.PartStack.access$1(PartStack.java:829)
    at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:139)
    at
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent
(TabbedStackPresentation.java:131)
    at
org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractT
abFolder.java:267)
    at
org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractT
abFolder.java:276)
    at
org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.acces
s$1(DefaultTabFolder.java:1)
    at
org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$2.han
dleEvent(DefaultTabFolder.java:84)
    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.Widget.sendEvent(Widget.java:962)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:706)
    at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3227)
    at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2005)
    at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:316)
    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:169)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ecli
pseAppLauncher.java:106)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLau
ncher.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:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

Original comment by joel...@gmail.com on 6 Feb 2008 at 1:38

GoogleCodeExporter commented 8 years ago
I thought this was just my workspace environment when working with latest from 
SVN,
but appears that I'm not alone now that 0.5.3 is released using the latest 
version.

Just committed a fix, changed the imported class in file
SmartyStructuredTextViewerConfiguration.java to be:

//import 
org.eclipse.php.internal.ui.preferences.util.WeakPropertyChangeListener;
import org.eclipse.php.internal.core.util.WeakPropertyChangeListener;

(old version commented out)

Please reply back if this is fixed or not with the change.

Original comment by ohhe...@gmail.com on 14 Feb 2008 at 2:53

GoogleCodeExporter commented 8 years ago
I have similar(?) error. Trying open .tpl files cause error mesage:

Error opening the editor.
tried to access field
org.eclipse.php.internal.ui.editor.PHPStructuredEditor.isExternal from class
org.eclipse.php.smarty.ui.editor.SmartyStructuredEditor

Original comment by dominik.bulaj on 11 Jun 2008 at 11:09