My favorites | Sign in
Project Logo
                
Search
for
Updated Dec 27, 2007 by ganoro
Labels: Featured
InstallSmartyPDT  

#installing smartypdt.

Installation

This page describes the installation steps for smartypdt

Requirements

Download PDT all-in-one from Zend's site:

OR, download all dependencies (by yourself):

  • Java 5 JRE version - here
  • Eclipse SDK v3.3.1.1 version - here
  • EMF SDO XSD 2.3.1 SDK version - here
  • GEF 3.3.1 SDK version - here
  • DTP 1.5.1 SDK version - here
  • WTP 2.0.1 SDK version - here
  • PDT 1.0.2 I20071209 - here

Install

(thanks to bdgeorge for his comment)

  • Unzip the smartypdt_X.zip (from http://code.google.com/p/smartypdt) file into the eclipse folder
  • Go to Help->Software Updates->Manage Configuration
  • Tick the icon to 'Show disabled Features'
  • Find the "Smarty Feature nnnnn" entry and select it
  • Click the "Enable" option from the Available tasks
  • Restart Eclipse when prompted


Comment by maxez77, Jan 30, 2008

Thank you so much for this plugin! keep up the good work!

Max

Comment by vzajda, Feb 24, 2008

Thank you, it is very useful.

Comment by james.demichele, Feb 24, 2008

You are cool.

Comment by mmazur.mm, Mar 10, 2008

the links for all-in-one are broken ;(

Comment by mmazur.mm, Mar 10, 2008

brrrrr not working for me...

Comment by mmazur.mm, Mar 11, 2008

if u want to give it a try... for all in one pack go to http://downloads.zend.com/pdt/all-in-one/ plug still not working for me... if You know how to install this plugin correcly i wound be thankfull for some info.. mmazur.mm@gmail.com

Comment by maks.ekat, Mar 13, 2008

It doesnt work for templates with .html, looks like only for .tpl. I had try to enable it for .html files, but unsuccessfully.

Comment by TarunPondicherry, Mar 22, 2008

This is excellent work, and has helped me significantly. Thank you.

Comment by rolando.aguilera, Apr 08, 2008

You have to unzip the file in the parent folder of eclipse, the ZIP file has the eclipse folder inside as include path.

ROLA. (from Chile.. so sorry my english :S)

Comment by baron.von.keir, Apr 10, 2008

Has anyone got this to work with anything more than code colouring? Has anyone got it to actually work as it's described? By which i mean, open and closed tags, code completion, without html syntax warnings for every line of smarty code in the .tpl, etc.

Comment by ienev.bg, Apr 15, 2008

Couldn't get it working, in the problems tab it keeps giving me the strangest error message - "2". Tried different combinations: PDT 1.0.1 20071209, PDT 1.0.1 20071210k, PDT 1.0.2 20080102 Smarty Feature 0.5.2 20071109, Smarty Feature 0.5.2 20080205 I suppose the code breaks due to conflicts with another Eclipse plugin from the ones which this one depends on.

However, the idea is great, I hope I will soon be able to run the PHP debugger at least ;).

Comment by ienev.bg, Apr 15, 2008

Can somebody please post working configuration versions set.

Comment by tendrid, May 05, 2008

I couldnt even get it to install in:

Eclipse Version: 3.3.1.1

Comment by ben.kelada, May 07, 2008

ensure you have jre5 not jre6, it will not work with jre6

Ensure .tpl is not registered with any other edit content type => window->preferences->general->content types->text check: "html" and "php content type" remove tpl from both of these.

Comment by ifedorenko, May 14, 2008

Thanks, the feature is very useful for me

Comment by anton.danilchenko, May 21, 2008

Eclipse PDT 1.0.2 (last stable) JRE 1.6 update 5 (last stable) SmartyPDT 1.0.4 (last)

Not work. I open .tpl file in "Smarty Editor". If I type text "{" fnd press Alt+Space that dropdown html tags (no Smarty syntax)!

On startup Eclipse IDE I see the error message, and string "Building worckspase" always show on screen.

Please - release First stable release this Plugin.

Comment by anton.danilchenko, May 21, 2008

THis message show on startup Eclipse: "Unknown(): (null): Unable to initialize module Module compiled with API=20060613, debug=0, thread-safety=1 PHP compiled with module API=10020429, debug=0, thread-safety=1 These options need to match"

If file opened on preview session, I see next message: "Severity and Description Path Resource Location Creation Time Id A JSONObject text must begin with '{' at character 1 of Status: 404 dev.cms.com/application/cms.com/www/templates/page three_columns.html.tpl line 1 1211374078076 2022"

Comment by halil.ozgur, Jun 11, 2008

Let me explain how it did work for me in Zend Studio for Eclipse 6 in Windows XP.

  • Help -> Software Updates -> Find and Install
  • Search for new features to install -> Next
  • New Local Site -> Select the "eclipse" folder in the folder you extracted SmartyPDT.
  • Finish -> Continue as a usual install process...

Comment by pavel.azovsky, Jul 06, 2008

All were installed on instructions... And - open .tpl file in "Smarty Editor" - ERROR:

java.lang.IllegalAccessError?: tried to access field org.eclipse.php.internal.ui.editor.PHPStructuredEditor.isExternal from class org.eclipse.php.smarty.ui.editor.SmartyStructuredEditor?

at org.eclipse.php.smarty.ui.editor.SmartyStructuredEditor?.doSetInput(SmartyStructuredEditor?.java:42) at org.eclipse.ui.texteditor.AbstractTextEditor?$19.run(AbstractTextEditor?.java:3003) at org.eclipse.jface.operation.ModalContext?.runInCurrentThread(ModalContext?.java:369) at org.eclipse.jface.operation.ModalContext?.run(ModalContext?.java:313) at org.eclipse.jface.window.ApplicationWindow?$1.run(ApplicationWindow?.java:758) at org.eclipse.swt.custom.BusyIndicator?.showWhile(BusyIndicator?.java:67) at org.eclipse.jface.window.ApplicationWindow?.run(ApplicationWindow?.java:755) at org.eclipse.ui.internal.WorkbenchWindow?.run(WorkbenchWindow?.java:2451) at org.eclipse.ui.texteditor.AbstractTextEditor?.internalInit(AbstractTextEditor?.java:3021) at org.eclipse.ui.texteditor.AbstractTextEditor?.init(AbstractTextEditor?.java:3048) at org.eclipse.wst.sse.ui.StructuredTextEditor?.init(StructuredTextEditor?.java:2617) at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.init(Unknown Source) at org.eclipse.ui.internal.EditorManager?.createSite(EditorManager?.java:794) at org.eclipse.ui.internal.EditorReference?.createPartHelper(EditorReference?.java:643) at org.eclipse.ui.internal.EditorReference?.createPart(EditorReference?.java:426) at org.eclipse.ui.internal.WorkbenchPartReference?.getPart(WorkbenchPartReference?.java:592) at org.eclipse.ui.internal.EditorReference?.getEditor(EditorReference?.java:263) at org.eclipse.ui.internal.WorkbenchPage?.busyOpenEditorBatched(WorkbenchPage?.java:2739) 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.actions.OpenWithMenu?.openEditor(OpenWithMenu?.java:340) at org.eclipse.ui.actions.OpenWithMenu?.access$0(OpenWithMenu?.java:328) at org.eclipse.ui.actions.OpenWithMenu?$2.handleEvent(OpenWithMenu?.java:190) 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(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:508) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447) at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

that to do?

Comment by btnguyen2k, Jul 16, 2008

I have the same problem. I have Smarty Feature 0.5.4 installed and enabled in Eclipse 3.3.2, but when I tried to open a .tpl file, an error message shown up; "Error opening the editor. Reason: tried to access field org.eclipse.php.internal.ui.editor.PHPStructuredEditor.isExternal from class org.eclipse.php.smarty.ui.editor.SmartyStructuredEditor?"

Comment by dosperios, Jul 16, 2008

If you have the problem that azov and btnguyen2k have (the two posts just above this one), simply associate .tpl with the PHP editor instead of the Smarty template editor. For some reason this works.

Credit for this one goes to a friend of mine, Dirk.

Comment by btnguyen2k, Jul 16, 2008

Thanks dosperios for the tip. It seems to work. However, I uninstall SmartyPDT and associate .tpl files with PHP editor and it still works the same. It looks like we are in fact using PHP editor not SmartyPDT (which is still not really working for me).

Comment by in...@o2.pl, Jul 17, 2008

Here's newer version which works with jre 1.6

http://code.google.com/p/smartypdt/issues/detail?colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&q=31&can=1&id=31#c11

(It's not in download section, dunno why)

then i got this "Error: A JSONObject text must begin with '{' at character 1 of Status: 404 "

solution posted here:

http://groups.google.com/group/smarty-pdt/browse_thread/thread/aa38531c2ecefd3e

finally i got it to "work" by which i mean opening tpl files in smarty editor and syntax highlight, thou every phrase is marked as warning and got no code completition

I'll be happy to see it working, but assuming from lack of activity in this project i think creators just got tired from constant complaints and let go ;]

Comment by ypavlov, Jul 17, 2008

Do not highlight such code <option value="box" {if 'box' == $des->event_module}selected{/if}>Box Border</option>

just get an error

Comment by ilya.rogojin, Jul 30, 2008

Comment by azov...@ukr.net, Jul 06, 2008

have the same problem.. :(

Comment by ilya.rogojin, Jul 30, 2008

Comment by ben.kelada, May 07, 2008

10x, works now =)

Comment by nestormateo, Aug 01, 2008

No possibility to change the delimiters and the file extensions to use .htm and .html?

Comment by s.m...@gmx.net, Aug 17, 2008

My problem is the following:

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?

Even when opening the tpl with the PHP Editor I can't get the template within the Smarty editor, it just shows up the template within the PHP Editor.

Any solutions for this issue? I also tried the 0.5.5 version but still no change in that.

Thanks for your help!

Comment by danilchenko.idegroup, Aug 19, 2008

Please renew this plugin to Eclipse Genymede 3.4 and PDT 2.0 and JRE 1.6u7. I have use this plugin! Thanks!

Comment by TarunPondicherry, Aug 20, 2008

How can we install this in Eclipse Ganymede 3.4? Worked great for me in Europa and would like to use it again!

Comment by TarunPondicherry, Aug 20, 2008

Was able to get it to work in 3.4 with some help from #eclipse. Just paste the unzipped "eclipse" folder into $ECLIPSEPATH/dropins/ Restart Eclipse

Comment by pawel.krefta, Aug 24, 2008

Great stuff man :) Keep up good work :) Thx for this :)

Comment by duanweidong, Sep 09, 2008

Not working: java.lang.IllegalAccessError?: tried to access field org.eclipse.php.internal.ui.editor.PHPStructuredEditor.isExternal from class org.eclipse.php.smarty.ui.editor.SmartyStructuredEditor?

I'm using zend studio for eclipse 6.0.1. The plugin status in "configured properly" but not working.

Comment by efrontlearning, Sep 10, 2008

Thanks, works great, all i had to do was remove ".tpl" from window->preferences->general->content types->text->PHP (Thus leaving it only to smarty Template, were it's "locked")

Comment by martuc, Sep 27, 2008

Working great! thanks for doc.

Comment by denis.doronin, Sep 28, 2008

Who have success with .htm and .html association with this editor ?

Comment by gareth.morris, Nov 07, 2008

There are instructions on how to get this working with .html files (or any other) under PDT 1.0.3 in this post:

Getting SmartyPDT working with PDT 1.0.3 and .html file extensions

Comment by cse.srikarthikeyan, Nov 13, 2008

When installing the smarty file using Unzip the smartypdt_X.zip (from http://code.google.com/p/smartypdt) file into the eclipse folder Go to Help->Software Updates->Manage Configuration Tick the icon to 'Show disabled Features' Find the "Smarty Feature nnnnn" entry and select it Click the "Enable" option from the Available tasks Restart Eclipse when prompted


Using this way I am facing one error. Selected location does not contain a product extension.An extension should consist of a directory named eclipse which contain a marker file called .eclipseextension and the features and plugin folders. Please select another another.
Please help me to integrate smarty with eclipse

Comment by evoilliot, Nov 28, 2008

Hello, thanks for this great plugIn ! It would be nice to put the 0.5.5 version on the project home page :) Because the 0.5.4 doesnt' work with eclipse pdt 1.0.3. I found this version in an issue answer. Thanks

Comment by ember.v, Jan 02, 2009

And what about eclipse 3.4.1 and PDT 2.0? I have download it in all-in-one package, and i don't have Manage Configuration in Help->Software Updates, so I don't know how to instal that plugin.

Comment by voooova, Jan 04, 2009

>eclipse 3.4.1 and PDT 2.0

I unpack archive (0.5.5 version) and run eclipse with option -clean:

vova@sam:~> /opt/eclipse/eclipse -clean

it works :)

Comment by voooova, Jan 04, 2009

I have: Window->Preferens->General->Content Types Text->

PHP Content Type->
Smarty Template

File association

.tpl(locked) .template(locked)

Is tpl associated with SmartyPDT? I use eclipse 3.4.1 and PDT 2.0. For .tpl Code completion works only for html, runtime Smarty errors and debug capabilities don't work... Or how I can use it?

voooova@gmail.com

Comment by ember.v, Jan 07, 2009

"I unpack archive (0.5.5 version) and run eclipse with option -clean: " Ok, thanks now it works. But I have problem. When I'm opening a tpl file, code colorizng does not work, I need to click right on the file name in navigator and select Open In->Smarty Editor. What should I do to make it work right?

Comment by voooova, Jan 10, 2009

I seem it works only for html code.

Comment by Tamer.Solieman, Jan 26, 2009

it doesn't work for me it gives me

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? what i can do tamer.solieman@gmail.com

Comment by Tamer.Solieman, Jan 26, 2009
Comment by Marek.Babak, Jan 27, 2009

When I try 0.5.5 and Eclipse 3.4 I don't have highlighted smarty code, just HTML, any solution on this? 0.5.4 with 3.3 works fine... (smarty highlighted)

Comment by gianiaz, Feb 11, 2009

I've installed pdt-all-in-one-linux-gtk-2.0.0GA.tar.gz on an Ubuntu 8.10, I've tried all the suggestion on this page, but I can't make the plugin work. It's the project alive?

Comment by itlan33, Feb 12, 2009

To view if the plugin is even active, click on Help, About, Plugins.

Comment by quoctiennguyen, Mar 03, 2009

does project die?

Comment by jim.ekleberry, Mar 10, 2009

Is this project still active?

I am already using Zend PDT v2 all-in-one without issue. I have downloaded and tried 0.5.2, 0.5.4, and 0.5.5 and when I attempt to edit a .tpl file I receive the following error message:

java.lang.NullPointerException
	at org.eclipse.wst.sse.ui.StructuredTextEditor.installSemanticHighlighting(StructuredTextEditor.java:3259)
	at org.eclipse.wst.sse.ui.StructuredTextEditor.createPartControl(StructuredTextEditor.java:1325)
	at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.createPartControl(PHPStructuredEditor.java:1939)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:678)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:444)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
	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.showPart(PartStack.java:1608)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
	at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
	at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
	at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
	at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:782)
	at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:681)
	at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:642)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2848)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2760)
	at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2752)
	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2704)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2699)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2683)
	at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:344)
	at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:192)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1571)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1595)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1580)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1369)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3480)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3066)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2388)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2352)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2204)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:333)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:492)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:556)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1270)
Comment by dalma.marti, Apr 25, 2009

I managed to install the plugin into eclipse 3.4.1 but it doesn't seem to do anything with my tpl files. :( I hope this project will continue...

Comment by kis...@ytv.home.ne.jp, Apr 28, 2009

Anybody can use eclipse 3.4.x + PDT 2.0 + SmartyPDT 0.55 without any warning message on Smarty tags? Let me know how to setup please.

Comment by neobahamut20, May 21, 2009

RIP smarty PDT i would guess

Comment by sfuchsbe, Jun 12, 2009

Eclipse 3.4.2, PDT 2.0, SmartyPDT 0.5.5 I've just copied the extracted files into my plugins folder and started Eclipse. Now I can open my .tpl files in the Smarty Editor without making any changes on the configuration. Syntax highlighting also works fine. I don't know if anything else is missing. I'm satisfied with this solution. Hope I could help somebody...

Comment by martin.krcho, Jun 15, 2009

Thanks guys, I just downloaded the latest release and it works in Ganymede!

Comment by piero.longhetto, Jun 21, 2009

I have tried with Galileo RC2 and Smarty 0.5.5 but it doesn't work here the error when i try to open a tpl file:

java.lang.NoClassDefFoundError: org/eclipse/php/internal/core/phpModel/PHPModelUtil
	at org.eclipse.php.smarty.ui.editor.SmartyStructuredEditor.doSetInput(SmartyStructuredEditor.java:87)
	at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3115)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
	at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
	at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2578)
	at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3133)
	at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3160)
	at org.eclipse.wst.sse.ui.StructuredTextEditor.init(StructuredTextEditor.java:2321)
	at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.init(PHPStructuredEditor.java:1032)
	at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:644)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:462)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
	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.showPart(PartStack.java:1608)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
	at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
	at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
	at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
	at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:778)
	at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:677)
	at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:638)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2854)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2762)
	at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2754)
	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2705)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2701)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2685)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2676)
	at org.eclipse.dltk.internal.ui.editor.EditorUtility.openInEditor(EditorUtility.java:408)
	at org.eclipse.dltk.internal.ui.editor.EditorUtility.openInEditor(EditorUtility.java:166)
	at org.eclipse.dltk.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:45)
	at org.eclipse.dltk.ui.actions.OpenAction.run(OpenAction.java:256)
	at org.eclipse.dltk.ui.actions.OpenAction.run(OpenAction.java:237)
	at org.eclipse.dltk.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:259)
	at org.eclipse.dltk.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:235)
	at org.eclipse.dltk.internal.ui.scriptview.ScriptExplorerActionGroup.handleOpen(ScriptExplorerActionGroup.java:304)
	at org.eclipse.dltk.internal.ui.scriptview.ScriptExplorerPart$5.open(ScriptExplorerPart.java:665)
	at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:842)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.runtime.Platform.run(Platform.java:888)
	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
	at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:840)
	at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1101)
	at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1205)
	at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:264)
	at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:258)
	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:298)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	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:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: java.lang.ClassNotFoundException: org.eclipse.php.internal.core.phpModel.PHPModelUtil
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	... 86 more

Comment by ankurjadav, Jun 24, 2009

same error as piero.. tried with Galileo and 0.5.5

anybody got this working with eclipse 3.5?


Sign in to add a comment
Hosted by Google Code