My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
InstallSmartyPDT  

Featured
Updated Nov 25, 2009 by ganoro

#installing smartypdt.

Installation

This page describes the installation steps for smartypdt (Thanks to matei.dragu for his comments!)

Requirements

Download PDT 2.2 / Studio 7.1 all-in-one from Zend's site

Install

You requested info about how to install SmartyPDT 0.9.0 on Galileo, so i will try to explain the steps:

  1. Download latest SmartyPDT package (currently 0.9.0) from http://code.google.com/p/smartypdt/
    • Be sure that the .TPL files are not associated with any content type (file type). In Eclipse, go to Window->Preferences->General->Content Types and under the Text section check HTML and PHP Content Type If you see that the .TPL is associated with anything, just delete those entries.
  2. Go to Help-> Install New Software
    • At the Work With section click on the Add... button. Give the new "Site" a name and click on Archive... and select the downloaded .ZIP archive with smartypdt. Go back to the Install New Software window and select the newly added "site". If the "Group items by category" check-box is checked, uncheck it. Now you should be able to see 1 item in the software list named "Smarty Feature"
  3. Select the Smarty Feature, click Next> and from here afterwards it shouldn't be a problem.
    • If you are prompted that this is an unsigned package, just ignore the warning and install it anyway.
  4. After the installation completes, restart Eclipse and it should be working.
  5. Define a default PHP executable of type 'Zend Debugger' (only if you install vanilla Eclipse PDT):
    • In Eclipse go to Window->Preferences->PHP->PHP Executables Click on the Add button. Enter a name for that executable definition, for example "PHP localhost", complete the 2 fields which ask you for the PHP executable path (the PHP binary CLI executable) and php.ini path. Be sure that the PHP debugger is the Zend Debugger.
Comment by maxe...@gmail.com, Jan 30, 2008

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

Max

Comment by vza...@gmail.com, Feb 24, 2008

Thank you, it is very useful.

Comment by james.de...@gmail.com, Feb 24, 2008

You are cool.

Comment by mmazur...@gmail.com, Mar 10, 2008

brrrrr not working for me...

Comment by mmazur...@gmail.com, 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.e...@gmail.com, 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 TarunPon...@gmail.com, Mar 22, 2008

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

Comment by rolando....@gmail.com, Apr 8, 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.vo...@gmail.com, 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...@gmail.com, 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...@gmail.com, Apr 15, 2008

Can somebody please post working configuration versions set.

Comment by tend...@gmail.com, May 5, 2008

I couldnt even get it to install in:

Eclipse Version: 3.3.1.1

Comment by ben.kel...@gmail.com, May 7, 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 ifedore...@gmail.com, 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.oz...@gmail.com, 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.az...@gmail.com, Jul 6, 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 btnguye...@gmail.com, 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 dosper...@gmail.com, 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 btnguye...@gmail.com, 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 ypav...@gmail.com, 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.rog...@gmail.com, Jul 30, 2008

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

have the same problem.. :(

Comment by ilya.rog...@gmail.com, Jul 30, 2008

Comment by ben.kelada, May 07, 2008

10x, works now =)

Comment by nestorma...@gmail.com, Aug 1, 2008

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

Comment by aussebm...@gmail.com, 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 danilche...@gmail.com, 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 TarunPon...@gmail.com, 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 TarunPon...@gmail.com, 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.kr...@gmail.com, Aug 24, 2008

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

Comment by duanweid...@gmail.com, Sep 9, 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 efrontle...@gmail.com, 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 mar...@gmail.com, Sep 27, 2008

Working great! thanks for doc.

Comment by denis.do...@gmail.com, Sep 28, 2008

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

Comment by gareth.m...@gmail.com, Nov 7, 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.srik...@gmail.com, 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 evoill...@gmail.com, 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 embe...@gmail.com, Jan 2, 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 vooo...@gmail.com, Jan 4, 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 vooo...@gmail.com, Jan 4, 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 embe...@gmail.com, Jan 7, 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 vooo...@gmail.com, Jan 10, 2009

I seem it works only for html code.

Comment by Tamer.So...@gmail.com, 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.So...@gmail.com, Jan 26, 2009
Comment by Marek.Ba...@gmail.com, 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 gian...@gmail.com, 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 itla...@gmail.com, Feb 12, 2009

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

Comment by quoctien...@gmail.com, Mar 3, 2009

does project die?

Comment by jim.ekle...@gmail.com, 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 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 neobaham...@gmail.com, May 21, 2009

RIP smarty PDT i would guess

Comment by sfuch...@gmail.com, 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.k...@gmail.com, Jun 15, 2009

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

Comment by piero.lo...@gmail.com, 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 ankurja...@gmail.com, Jun 24, 2009

same error as piero.. tried with Galileo and 0.5.5

anybody got this working with eclipse 3.5?

Comment by romanski...@gmail.com, Jul 11, 2009

It doesn't work for me too :(

java.lang.NoClassDefFoundError: org/eclipse/php/internal/core/phpModel/PHPModelUtil
	at org.eclipse.php.smarty.ui.editor.SmartyStructuredEditor.doSetInput(SmartyStructuredEditor.java:87)

My configuration: community jre 6u14-1

Eclipse for PHP Developers Build id: 20090619-0625

Comment by yerlika...@gmail.com, Jul 21, 2009
java.lang.NoClassDefFoundError: org/eclipse/php/internal/core/phpModel/PHPModelUtil
	at org.eclipse.php.smarty.ui.editor.SmartyStructuredEditor.doSetInput(SmartyStructuredEditor.java:85)
	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:1034)
	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.EditorReference.getEditor(EditorReference.java:286)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2857)
	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.dltk.internal.ui.actions.OpenModelElementWithMenu.openEditor(OpenModelElementWithMenu.java:339)
	at org.eclipse.dltk.internal.ui.actions.OpenModelElementWithMenu.access$0(OpenModelElementWithMenu.java:331)
	at org.eclipse.dltk.internal.ui.actions.OpenModelElementWithMenu$2.handleEvent(OpenModelElementWithMenu.java:197)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
	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(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	... 51 more
Comment by misaelv...@gmail.com, Jul 21, 2009

anybody got this working with eclipse 3.5?

Comment by matei.dr...@gmail.com, Jul 21, 2009

I tried installing both smartypdt-0_5_4.zip and smartypdt.zip on Eclipse 3.5, but with no success, I got errors similar to those above.

Was anybody able to install smarty pdt on Eclipse 3.5 ?

Comment by friedman...@gmail.com, Jul 25, 2009

the smartypdt.zip which is announced as 0.6 is not, in fact you found inside 0.5.5 version jar dated on 19.05.2009 and the feature folder is missing.

Can someone knows how to get sources and try to recompile them ( a real how-to for newbies ) against galileo ?

Comment by matei.dr...@gmail.com, Jul 27, 2009

I'm with friedmann.bruno on this, a smartypdt compatible with Eclipse Galileo is necessary

Comment by maxence....@gmail.com, Aug 4, 2009

I would like too a smartypdt compatible with Galileo :)

Comment by B.Ogryc...@gmail.com, Aug 5, 2009

@Friedmann. Right, seems that the source (in the SVN) actually seems modified to work with new version of PDT.

So did anyone either compile or have instructions how to compile it?

Comment by mive...@gmail.com, Aug 5, 2009

I echo the comments above, please post instructions on how to compile this from source or better, post the updated compiled plugin on the downloads page. Thanks!

Comment by matei.dr...@gmail.com, Aug 6, 2009

The compiled plug-in would be the best choice.

Comment by sam.bos...@gmail.com, Aug 14, 2009

Was able to compile the project and install it into Eclipse 3.5 Needed to install PDE (plugin development) and the dltk library from (http://download.eclipse.org/technology/dltk/downloads/) under the R2 release. Needed to modify a few lines in the manifest to remove bundle dependencies in the core and ui packages...didn't bother getting the test package to run.

Modified in (SmartyTokenizer.java)
private AbstractPhpLexer getPhpLexer() {
	final PHPVersion phpVersion = ProjectOptions.getDefaultPhpVersion();

exported core and ui as plugin package and copied to plugin folder.

Comment by Brian.Sleeth, Aug 17, 2009

Thank you sam bossen

For some reason, I spent an entire Saturday messing with this trying to get it to work. Eventually, I gave up (for the day). I ended up uninstalling and re-installing ZendStudio? 7.0 clean. Then followed your instructions ... worked like a champ!

Part of my problem was selecting the right DLTK. I guess the only packaged needed is the DLTK Core.

I also retrieved the source by creating a New Project in eclipse as follows:

  1. File > New > Project... > SVN > Project from SVN
  2. For the SVN URL, I used: http://smartypdt.googlecode.com/svn/trunk/
  3. Replied Yes to ""Do you wish to normalize URL by cutting.."
  4. On "Select resource", changed radio selection to "Revision" back to "Head Revision" ... seems to be a bug that will not allow you to continue until a select/reselect something
  5. On "Check Out As", selected "Find Projects in the children..."

I then made the changes you described and exported the packages. After placing the jar files in the eclipse plugin directory and restarting eclipse, everything seems to be working.

Thanks again Sam, I never would have figured this out!

Comment by maxence....@gmail.com, Aug 24, 2009

Do you can share your packages with the others users please ?

Thanks !

Comment by ptacn...@gmail.com, Aug 24, 2009

Yes, it would be very helpful if you can share it..

Comment by sam.bos...@gmail.com, Aug 24, 2009

I can't post files here since I am not a member of the project, but if someone is willing to host the compiled plugin, post the access information and I will be happy to share my compiled plugin.

Comment by kisscool...@gmail.com, Aug 25, 2009

You can make a .zip file and host it on rapidshare.com or megaupload.com ?

Comment by plmarc...@gmail.com, Aug 25, 2009

Or you can upload it to http://www.getdropbox.com/

Thanks

Comment by carmelo....@gmail.com, Aug 25, 2009

It will be very appreciated :)

Thanks for your work

Comment by carmelo....@gmail.com, Aug 25, 2009

Thanks a lot, it works so good!

Comment by nedyalko...@gmail.com, Aug 26, 2009

Thanks! Great work! It works just perfect! Hello world! ;)

Comment by BramWill...@gmail.com, Aug 26, 2009

after some initial problems i finally got your version working sam.bossen. Thanks for the effort!

Comment by kisscool...@gmail.com, Aug 27, 2009

Thx Sam Bossen, it works perfectly !

Comment by justin.m...@gmail.com, Aug 31, 2009

After I copied the jar files to the plugins folder and start Eclipse 3.5 Smarty PDT does not get add to the list of plugins. Does it start as disabled? If so in 3.5 how do you enable it?

Comment by justin.m...@gmail.com, Aug 31, 2009

Smartypdt 0.5.5 was installed previously on Eclipse 3.3 then I added Eclipse 3.5. In order for smartypdt 0.6.x to work I need to rename the 0.6.x files to 0.5.5 then overwrite the files in the plugins folder. This go smarty to work for me on Eclipse 3.5.

I am up and running thank for the smartypdt 0.6.x code and if anyone could still answer the previous question I am sure it would help others.

Comment by nils.got...@gmail.com, Sep 9, 2009

It seems you have to move the two .jar files in the zip-archive into the folder eclipse\dropins\eclipse\plugins If you then restart Eclipse and click Help -> "About Eclipse Platform" -> "Installation Details" -> "Plug-ins" there should appear "Smarty Core Plug-in" in the list (its shows Version 0.5.5)

I associated the Smarty Editor with HTML Content Types but I don't get any syntax highlighting for smarty code. It seems it doesn't work yet.

How did others manage to get it work?

Comment by boldhedg...@gmail.com, Sep 14, 2009

Thx Sam Bossen for your work!

Comment by ben.kel...@gmail.com, Sep 23, 2009

i copied the 0.6.x files to: \galileo install\dropins\plugins\.jar

nils: you must remove all tpl associations. window->preferences->general->editors->file associations (remove .tpl) window->preferences->general->content types->text->html (remove .tpl)

Comment by balison...@gmail.com, Sep 25, 2009

like ben i copied the 0.6.x files to: \galileo install\dropins\plugins\.jar

i removed all tpl associations except in TEXT -> PHP Content Type -> Smarty Template because it's locked and that doesn't work. When i load a file.tpl eclipse said to me "Unsupported content type in editor"

Can anyone help me.

PS: excuse me for my bad english.

Comment by balison...@gmail.com, Sep 25, 2009

ERRATUM, i copied files into \galileo\plugins\.jar

Comment by phara...@gmail.com, Oct 9, 2009

I copied the files provided by sam.bossen to my %eclipse%/plugins folder. I had to rename the files to 5.5 from 6.x so that the plug-in would show up at all in the installed plugins (as "Smarty Core Plug-in"). It shows up with the locked association under the Preferences > Editors > File Associations section. When I try to open a .tpl with the smarty editor, I get the following error:

Could not open the editor: The editor class could not be instantiated. This usually indicates a missing no-arg constructor or that the editor's class name was mistyped in plugin.xml.

It would be nice to have syntax highlighting when working with smarty templates, so any suggestions would be appreciated.

Comment by amkhul...@gmail.com, Oct 14, 2009

Can some one create a complete build and upload somewhere on the net for Galileo 3.5 , Smarty pdt ver 0.6.0

Regards Amit

Comment by amkhul...@gmail.com, Oct 14, 2009

Use the build below , it works for 3.5 Galileo.

http://rapidshare.com/files/292848225/smarty.rar Amit

Comment by ChrEff...@gmail.com, Oct 14, 2009

Hi, it is still difficult to get started: I use

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR1/eclipse-php-galileo-SR1-macosx-cocoa.tar.gz

copied the 5.5 mentioned by amkhullar and restarted. When I try to open a Template(.tpl) then the following error occurs:

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:2579) 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:1034) 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.EditorAreaHelper?.setVisibleEditor(EditorAreaHelper?.java:271) at org.eclipse.ui.internal.EditorManager?.setVisibleEditor(EditorManager?.java:1417) at org.eclipse.ui.internal.EditorManager?$5.runWithException(EditorManager?.java:942) at org.eclipse.ui.internal.StartupThreading?$StartupRunnable?.run(StartupThreading?.java:31) at org.eclipse.swt.widgets.RunnableLock?.run(RunnableLock?.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3405) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3102) at org.eclipse.ui.application.WorkbenchAdvisor?.openWindows(WorkbenchAdvisor?.java:803) at org.eclipse.ui.internal.Workbench$28.runWithException(Workbench.java:1384) at org.eclipse.ui.internal.StartupThreading?$StartupRunnable?.run(StartupThreading?.java:31) at org.eclipse.swt.widgets.RunnableLock?.run(RunnableLock?.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3405) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3102) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316) 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(NativeMethodAccessorImpl?.java:39) at sun.reflect.DelegatingMethodAccessorImpl?.invoke(DelegatingMethodAccessorImpl?.java:25) at java.lang.reflect.Method.invoke(Method.java:592) 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)

Has anybody a working constellation on macos 10.5? Thanks, Stoff

Comment by adrien.p...@gmail.com, Oct 14, 2009

It works well for me with http://rapidshare.com/files/292848225/smarty.rar (thanks amkhullar)

Eclipse Build id: 20090920-1017

Comment by Mikhail....@gmail.com, Oct 15, 2009

Great thanks, amkhullar! Note that you should restart Eclipse with "-clean" option (as voooova says before) after you put files from archive into "plugins" directory.

Comment by sailboatvn, Oct 27, 2009

Great.. I'm trying to update the Eclipse to latest build .. out of interest, could you please let us know how to restart Eclipse with "-clean" option ??

Cheers

Comment by justin.m...@gmail.com, Oct 31, 2009

SmartyPDT works for Eclipse PDT 2.1-SR1 (Galileo) using the steps below. These steps are a full clean installation so you can jump to the section you need.

  1. Download PDT 2.1-SR1 from http://www.eclipse.org/pdt/
  2. Make the eclipse directory "mkdir /opt/eclipse"
  3. Un-tar the package "tar -xf eclipse.tar.gz /opt/eclipse" (Note: tar file name my vary)
  4. Download SmartyPDT https://dl.getdropbox.com/u/477489/SmartyPDT%200.6x%20plugin.zip
  5. Un-tar the package "tar -xf SmartyPDT 0.6x plugin.zip"
  6. Copy to eclipse "cp -r plugins/* /opt/eclipse/plugins"
  7. Start eclipse with the clean option "/opt/eclipse/eclipse -clean"

(Note: The link http://rapidshare.com/files/292848225/smarty.rar produced a file that did not work for me after trying twice. It also creates 2 smarty editors options when right clicking on a file in eclipse and choosing open with. The link listed higher up in the postings does so I have pasted it here.)

Comment by tiotm...@gmail.com, Nov 1, 2009

Thanks a lot Justin. It works for me now :)

Comment by heydenbu...@gmail.com, Nov 7, 2009

I'm a complete newbie. I downloaded and installed eclipse-php-galileo-SR1-macosx-cocoa.tar.gz now I am trying to get this smarty plugin going, but am completely lost. can someone spell it out from the beginning? I don't know which version to use - don't know how to install it - don't know how to configure it. help!

Comment by itla...@gmail.com, Nov 7, 2009

Is the only thing this plugin provides is the coloring of syntax?

Comment by Zbigniew...@gmail.com, Nov 22, 2009

Zend Studio 7.0 error message: Could not open the editor: The editor class could not be instantiated. This usually indicates a missing no-arg constructor or that the editor's class name was mistyped in plugin.xml.

Comment by lshel...@gmail.com, Nov 24, 2009

Hey hey, how to install 0.9 on Galileo?

Comment by matei.dr...@gmail.com, Nov 25, 2009

Ishelper, is there a 0.9 version of smartypdt? if so, where could it be downloaded ? Thanks!

Comment by matei.dr...@gmail.com, Nov 25, 2009

I saw it now, I didn't look at the downloads section, my mistake. Just as a suggestion: shouldn't this new version be put at the Featured Downloads section on the project homepage? I mean... I suppose that more people will think, as I did, that nothing new happened new version? regarding this project.

Comment by matei.dr...@gmail.com, Nov 25, 2009

You requested info about how to install SmartyPDT 0.9.0 on Galileo, so i will try to explain the steps:

1. Download smartypdt 0.9.0 from http://smartypdt.googlecode.com/files/smartypdt-0_9_0.zip 2. Be shure that the .TPL files are not associated with any content type (file type).

In Eclipse, go to Window->Preferences->General->Content Types and under the Text section check HTML and PHP Content Type If you see that the .TPL is associated with anything, just delete those entries.
3. Go to Help-> Install New Software
At the Work With section click on the Add... button. Give the new "Site" a name and click on Archive... and select the downloaded .ZIP archive with smartypdt. Go back to the Install New Software window and select the newly added "site". If the "Group items by category" checkbox is checked, uncheck it. Now you should be able to see 1 item in the software list named "Smarty Feature"
4. Select the Smarty Feature, click Next> and from here afterwards it shouldn't be a problem.
If you are prompted that this is an unsigned package, just ignore the warning and install it anyway.
5. After the installation completes, restart Eclipse and it should be working.

I hope this helped.

Comment by n.kondra...@gmail.com, Nov 25, 2009

Hi,

I install SmartyPDT from the matei.dragu 's method.

It's good, but in tpl files, eclipse say : "Didn't find the default PHP executable, please define a default PHP executable of type 'Zend Debugger'"

Can you help me ?

Thanks.

Comment by h.vorrag...@gmail.com, Nov 25, 2009

Great instructions. And do you know if it is possible to change the delimiter?

Comment by matei.dr...@gmail.com, Nov 25, 2009

Oh, i totally forgot to explain how to get rid of the notice about "Didn't find the default PHP executable, please define a default PHP executable of type 'Zend Debugger'", my bad.

So, as far as I know, in order to get rid of that notice you should have PHP installed on your local computer.

In Eclipse go to Window->Preferences->PHP->PHP Executables Click on the Add button. Enter a name for that executable definition, for example "PHP localhost", complete the 2 fields which ask you for the PHP executable path (the PHP binary CLI executable) and php.ini path. Be sure that the PHP debugger is the Zend Debugger.

If this will be the first definition (the first record in the list), it will be set as the default one.

After you add this, close the Preferences window and everything should be OK and the notice gone.

Did it help ?

Comment by s.kra...@bergmeister-kunstschmiede.de, Nov 27, 2009

Thank for the new plugin - it works propertly well

but like "h.vorragend" I will ask after about posibility to change the delimiter How can we do that?

Comment by matei.dr...@gmail.com, Nov 30, 2009

I looked into the Eclipse preferences/settings after installing PDT and didn't find anything regarding the delimiters. Maybe one of the developers could tell us if the option is there or not, and if it isn't, if there are plans to include such a feature in a future release of smartypdt. By the way, is there a roadmap regarding this project ?

Anyway, great job with this plugin!

Comment by project member zhaozhon...@gmail.com, Nov 30, 2009

hi,h.vorragend, s.krause, matei.dragu

i am the developer of this project,but i know little about smarty. do you want to define a delimiters instead of the inner "{}"? and what is the scope of the user defined delimiters. all php project? some php project? or a special tpl file?

and thanks for your attentions for smartypdt!

Comment by xapei...@gmail.com, Dec 1, 2009

The plugin looks great,

but I cannot figure out, how to enable the plugin for another filetypes, then .tpl or .template (for example .phtml).

If I try to add new Content Type to Smarty Template and File association for .phtml, icons in File View shows Smarty filetype. But syntax highlighting or code completion doesn't work. The file is opened as ordinary HTML file.

Oh, and thanks for developing this plugin. I was really missing this feature in PDT.

Comment by project member zhaozhon...@gmail.com, Dec 1, 2009

hi, xapeiron

thanks for your comment i will fix this then:)

Comment by matei.dr...@gmail.com, Dec 3, 2009

Hello zhaozhongwei1984!

The basic ideea is that Smarty allows you to change the start and end delimiters of it's template tags.

For example { -> ((* } -> ;;^]`

So

{assign var='value'}

would become

((*assign var='value';;^]

That is just a silly example, but it demonstrates my idea. And the scope would basically be all the php projects and a certain php project, but I think it would be best if there would be an option to change the default start/end delimiters even for individual files... who knows, maybe someone just has to open once a template file to edit a few lines, or some other related scenario. So, to state this more clearly, the more flexible the scope, the better.

Comment by h.vorrag...@gmail.com, Dec 3, 2009

Thank you very much for developing this plugin.

I am a developer of the Zikula Application Framework. And we are using the following delimiter:

<!--[if]-->

It would be absolutely great, if the template designer now could use with your plugin Eclipse. So far, it failed in the delimiters and the highlighting.

Comment by project member zhaozhon...@gmail.com, Dec 3, 2009

thanks to matei.dragu and h.vorragend. i think the delimiters must be configured somewhere to let smarty to know you have change the default delimiters,if so where is it?this is a question about smarty:) so mabye i could use that configuration instead users reconfigure the delimiters once more.

Comment by matei.dr...@gmail.com, Dec 4, 2009

ok, I will try to explain this the best I can:

the Smarty Template Engine (at least the 2.6.x branch) is designed as a big PHP Class, and as all the PHP classes it has members(variables) and methods(functions).

The left and right delimiters are configured using 2 public members of the Smarty base class (in this example I am using the default values):

$smartyInstanceObject = new Smarty();
$smartyInstanceObject->left_delimiter = '{';
$smartyInstanceObject->right_delimiter = '}';

Now, there are 2 potential issues: 1. The smarty class can be extended in order to create a personalized configuration for that class, and this is explained in this page from the Smarty official documentation: http://www.smarty.net/manual/en/installing.smarty.extended.php

2. The Smarty initialization could be made anywhere, so the smartypdt should be able to find that initialization/configuration....

If you could make this automated configuration for smartypdt it would be great, BUT I still think that manual setup should be available, as I said in an earlier comment: who knows, maybe someone just has to open once a template file to edit a few lines, or some other related scenario.

Comment by vbar...@gmail.com, Dec 5, 2009

If anybody else has the problem with php editor hijacking smarty templates (.tpl files), here is how I solved it: Reason:

The php editor has locked .tpl files and in Window->Preferences->General->Content Types->Text->PHP Content Type .tpl was listed among the locked type files. As a result the editor does not recognize smarty code.

  1. Unistall Smarty feature
  2. Go to eclipse/plugins folder and find a file named plugin.xml, containing string tpl. In my mixed Eclipse/Zend Studio instalation on Ubuntu 64-bit the file is: /usr/lib/eclipse/plugins/org.eclipse.php.core_2.2.0.v20091124-1600/plugin.xml There should be a string: file-extensions="php,php3,php4,php5,phtml,inc,phps,tpl"
  3. So, remove tpl (and phtml, if you wish so), and the string should become: file-extensions="php,php3,php4,php5,phtml,inc,phps"
  4. Start Eclipse with -clean option
  5. Istall Smarty feature

zhaozhongwei1984, thank you for this plugin. Perhaps you could introduce the above into your instalation procedure?

Comment by project member zhaozhon...@gmail.com, Dec 6, 2009

hi,vbaroff you do not need to reinstall the smartypdt:) just right click on the php project,select the menu 'configure' -> 'Add Smarty Nature'.the problem is gone.

this step is in another wiki.

Comment by deepbluegene, Dec 7, 2009

i have just updated to aptana studio 2 and added pdt as plugin and then installed smartypdt. i noticed that smartypdt plugin does not keep syntax colors in <a> anchor link.

have a look at screenshots.

aptana smarty plugin http://yfrog.com/0xaptanasmartyj smartypdt plugin http://yfrog.com/0xsmartypdtj

Comment by sailboatvn, Dec 12, 2009

I finally managed to make the smarty plugin work for

Eclipse for PHP Developers Build id: 20090920-1017

Clearly if you had already copy all the files to eclipse folder by mistake as I did then you need to delete those files and follow the instruction.

Comment by gearhe...@gmail.com, Mar 16, 2010

I'm using Zend Studio 7.1.1 and I followed vbaroff's steps 1-4 and I still see .tpl listed among the locked file types here: Window->Preferences->General->Content Types->Text->PHP At this point I did not install SmartyPDT, figuring it would not work. Has anyone got this working with Zend Studio 7.1.1?

Comment by norminno...@gmail.com, Mar 23, 2010

I just got it to work with a clean install of Zend Studio 7.1.2 (ubuntu 64bit). I just installed from the zip file like stated above, restarted, right clicked on a project and selected "Configure -> Add Smarty Support". I previously got it to work with 7.1.0 too, so I'd think it should work the same with 7.1.1.

Comment by deltasys...@gmail.com, Apr 28, 2010

works very well. thanks!

Comment by aspen...@gmail.com, May 5, 2010

seems you just have to add .tpl to File Associations in settings after installing via instructions above

Comment by nils.got...@gmail.com, Jun 24, 2010

Did someone manage to install SmartyPDT in PDT 2.2? I can't remove ".tpl" from PHP Content Type because its locked. :(

Comment by Tomasz.M...@gmail.com, Jun 30, 2010

I got strange problems with using Smarty PDT:

- syntax validation does not work (while syntax highlighting works)

- every saving of altered file - even with 2 lines of code - consumes about 15 secs

I tried to reinstall SmartryPDT on clean Galileo / Helios, but symptomps are the same. Maybe sb. could publish clean integrated Eclipse + Smarty PDT that works?

Do you have similar problems?

regards Beniamin

Comment by creage...@gmail.com, Jul 7, 2010

I got installed fine with Helios. It gives me syntax highlighting which I can not live without.

It produces HTML syntax errors on all smarty template tags (i.e. {foreach..., etc.)

Is there a way to make it recognize the smarty tags and not show syntax errors?

Thanks.

Comment by maxence....@gmail.com, Jul 16, 2010

I have the same problem that Tomasz.Mazan & creageous.

I don't understand, it seems that Eclipse open my .tpl files with the PHP Editor instead of Smarty Editor .. I have tried to change the associated editor for the .tpl file but no effect on this :/

Comment by maxence....@gmail.com, Jul 16, 2010

After a new intall of Eclipse, i can't delete the .tpl association file with PHP Editor like nils.got for example ...

And i can't edit the php core plugin because it's a .jar file ... Anyone have a solution ?

Thanks !

Comment by maxence....@gmail.com, Jul 19, 2010

So, .jar is same as .zip.

I could follow the tutorial given by Irvan and it's working !

Have fun !

Comment by oliver....@gmail.com, Jul 27, 2010

Having problems installing smartypdt on Mandriva 64bit. Eclipse keeps looking for some 32bit things and doesn't finish the install.

Comment by b...@gmx.net, Jul 28, 2010

I've the same problem:

Did someone manage to install SmartyPDT in PDT 2.2? I can't remove ".tpl" from PHP Content Type because its locked. :(

Comment by sam.bos...@gmail.com, Aug 12, 2010

Has anyone gotten this to work acceptably with Eclipse Helios? Both .tpl are locked in the PHP editor section and the Smarty PDT editor section. After installing and restarting per instructions (except for not being able to remove php .tpl association) on a clean Helios install, similar symptoms to Mazan. I'm finding it unusable as I'm getting a system hang when saving all.

Comment by maheshwa...@gmail.com, Aug 24, 2010

To remove the sytax errors, simply color the line white. Window -> Preferences -> General -> Editors -> Text editors -> Annotations -> Select Warning -> Set color to white.

Comment by rimgauda...@gmail.com, Sep 8, 2010

Comment by vbaroff, Dec 05, 2009 helped me to setup SmartyPDT on Helios. I already had installed SmartyPDT, just removed tpl extension from plugins.xml and restarted eclipse with -clean.

Comment by profi.di...@gmail.com, Oct 17, 2010

at the end, to enable highlighting:

(From instruction)

2. Right click on the PHP project, select the menu 'Configure' -> 'Add Smarty Support'

Comment by liude...@gmail.com, Oct 20, 2010

Re: Comment by sam.bossen, Aug 12, 2010 Has anyone gotten this to work acceptably with Eclipse Helios? Both .tpl are locked in the PHP editor section and the Smarty PDT editor section. After installing and restarting per instructions (except for not being able to remove php .tpl association) on a clean Helios install, similar symptoms to Mazan. I'm finding it unusable as I'm getting a system hang when saving all.

if you open your eclipse,now close it. 打开Eclipse installation directory, and in the plugins directory, 找到 the .jar file org.eclipse.php.debug.core.source_2.2.0.v20100822-0100.jar,用WinRAR or 7Zip Extract the plugin.xml file and open it in your favourite text editor,去掉.tpl,save it in org.eclipse.php.debug.core.source_2.2.0.v20100822-0100.jar. restart your eclipse.the smarty Syntax highlighting is ok.

Comment by suilong_...@hotmail.com, Oct 24, 2010

Re: Comment by liudeing, Oct 20, 2010 the file is wrong ,'org.eclipse.php.debug.core.source_2.2.0.v20100822-0100.jar' should be 'org.eclipse.php.core_2.2.1.v20100822-1200.jar '. but this method didnt work.at least i try many times at lasteat Helios pdt 2.2.1...i think smartypdt in all Helios cannt work.but in Galileo it can work.in Helios,even if you remove '.tpl' in plugin.xml which is included in 'org.eclipse.php.core_2.2.1.v20100822-1200.jar '(use winrar open),at this time if you didnt install smartypdt you will see the '.tpl(locked)'still in prefermance ->Content Types->php...but if you just install smartypdt...it will gone..the'.tpl(locked)' just display in prefermance ->Content Types->php...>smarty...but it also doesnt work..althought i set the .tpl default editor is smarty editor and right click my project configure->add smarty support..it just doesnt work normally,it cannt auto activivation...

Comment by liude...@gmail.com, Oct 25, 2010

I'm sorry,that is org.eclipse.php.core_2.2.1.v20100822-1200.jar

You should Install according to the top samrtypdt installation, just modify forced plugin.xml is different,But you should keep it org.eclipse.php.core_2.2.1.v20100822-1200.jar

Comment by suilong_...@hotmail.com, Oct 25, 2010

you remind me of something.i know how to install smartypdt,but everytime when i install it i will skip the step5.because i use xdebug in eclipse.maybe my english is not well,what is real meaning in step5? the debugger must be zend debug? but why i can use smartypdt in Galileo with xdebug?it's just not work in Helios...

Comment by suilong_...@hotmail.com, Oct 25, 2010

i just try one more time...but it also doesnt work even if i follow the step5(install zend debug instead of xdebug in Helios)...

Comment by sandeepn...@gmail.com, Nov 23, 2010

Worked Great for me... Thank you so much, Namastay

Comment by sam.bos...@gmail.com, Nov 24, 2010

Current Solution: At this point for Helios I've been able to use the plugin mentioned on http://www.bar54.de/smarty-eclipse.html (Installed by placing it in the plugins directory)

To unlock the PHP file association, I had to modify the plugin.xml in the eclipse\plugins\org.eclipse.php.core_2.2.1.v20100822-1200.jar per suilong from file-extensions="php,php3,php4,php5,phtml,inc,phps,tpl" to file-extensions="php,php3,php4,php5,phtml,inc,phps"

Finally, start with "eclipse -clean" to get eclipse to reread the plugin.xml which updates the configuration folder and activates the file extension change.

Comment by sizem...@gmail.com, Dec 6, 2010

Hello! I'm try to use plugin with Helios. Files opened and syntax highlighting. But when I try to save edited document helios hangs. That's all, I need to restart Helios and uninstall plugin. :(

Comment by sam.bos...@gmail.com, Feb 28, 2011

I've been experiencing a lot of problems with Eclipse both in Helios and Galileo such as frequent slowdowns and crashes. I've since switched to NetBeans? which has built in support for Smarty Templates. So far It's been working very well and has been a good solution.

Comment by pkoeni...@gmail.com, Mar 4, 2011

Many thanks ! Works great with PDT 2.1.1

Comment by robin.sz...@gmail.com, Mar 13, 2011

doesn't work too well with PDT 2.2.0 and Smarty 0.9 as someone at Zend has associated .tpl files with the PHP editor and it appears as "(locked)" in the associations list :(

editing plugin.xml in org.eclipse.php.core_2.2.0.v20100616-1900.jar should have solved it, but it hasn't as Eclipse has cached the association somwhere and its still locked :(

Comment by cor...@gmail.com, Apr 5, 2011

Thanks!

Comment by pawelw...@gmail.com, Jun 18, 2011

To manage the "locked" issue : Open org.eclipse.php.core_2.2.0.vXXXXX.jar archive in eclipse/plugins dir Edit plugin.xml file by deleting "tpl" in line: "file-extensions =" php, php3, php4, php5, phtml, inc, phps, tpl" Run eclipse with -clean option.

Comment by exe...@gmail.com, Jun 28, 2011

What about support for Eclipse Indigo? Anybody find the way to install it?

Comment by PointedEars2@gmail.com, Jul 13, 2011

Install is easy -- as in the old times before Update Sites: Extract features/ and plugins/ to your Eclipse directory, and start Eclipse with the -clean option. An archive fix for Indigo would be nice, though (after selecting the archive the list is currently empty). An Update Site would be nicer.

Then, since .tpl was properly assigned to Smarty(PDT) under "Content Types"/PHP here, you might want to add .tpl to "File Associations" to add some alternative editors.

Defining a PHP executable with Zend Debugger fixes the error message in the first line of each template. (Which is weird, though, as I have configured Xdebug already. What do I need Zend Debugger for?)

Editing and (Smarty) SHL works. But unfortunately I am not getting any of the registered Smarty template proposals with Ctrl+Space. Eclipse 3.7 (Indigo) for JavaScript? Web Developers, PDT 3.0 (from Indigo Update Site), Aptana Studio 3 Plugin, SmartyPDT 0.9.0.

Comment by eng.a7ma...@gmail.com, Sep 18, 2011

to make it work for Zend Studio 8.0.0

1-follow these steps carefully: http://www.web2works.co.uk/blog2works/install-smartypdt-plugin-into-zend-studio/

2-VERY IMPORTANT:you MUST run "path2zend\ZendStudio?.exe" -clean at least once to update the new settings

3-enjoy :)

Comment by tpenep...@gmail.com, Feb 20, 2012

I was able to install smartypdt onto Zend Studio 9 and the code highlighting works to some extent. My real problem is I keep getting 2 php warnings whenever I edit a .tpl file. The warnings are: Module 'pdo_sqlite' already loaded and Module 'openssl' already loaded which are displayed consecutively in dialog boxes (the title saying 'Warning' and an 'Ok' button. This is really annoying as it happens every time I make any change to the .tpl files be it adding or deleting a single character. Any clues on what might be causing this?

Comment by schoeneb...@gmail.com, Feb 20, 2012

i use Zend Studio 9 and all works fine.

Comment by BTy-Adm...@trebly.net, Feb 28, 2012

Hi,

I use Eclipse 3.7 with Aptana and PDT, too SmartyPDT 0.9.0

I meet colors definitions major problems.

When I tell open file with smarty editor, I get colors from "nowhere".

Is saying various color coming from "Aptana" theme for ECLIPSE (a choice of compatibility), but as there are no "smarty-text-types" defined neither into colorizing Aptana theme, neither in Eclipse "general"...

it seems that there is no way to avoid : # {} delimiter as red for errors # $var as black on black background : hidden # Constant strings as black blue : not found # Syntax foreground color = background selected line (used dark purple - custom) # OK html delimiters foreground = white

Is it a way to define (add) color to Eclipse and/or Aptana theme which should be associated with named smarty-text-types

Best regards

Trebly

Comment by rafalpie...@gmail.com, Mar 10, 2012

Hey I cleaned project and disabled "build automatically" option i Project menu, but all .tpl files still have error in first line of file: "Multiple annotations found at this line: Cannot run program C:\xampp\php: CreateProcess? error=5, Access denide, 198 changed lines PHP executable path is correct, I use Zend_Debugger?.

What I can fix this problem, I work on Win 7 HP 64-bit Java 1.7, Eclipse Indigo Service Release 1, SmartyPDT 0.9.0, PHP 5.3.8, XAMPP 1.7.7

Thanks a lot!

Comment by filipe.a...@gmail.com, May 11, 2012

To install with Eclipse Indigo you need to unzip the contents to the eclipse instalation folder first, run eclipse with -clean argument and then proceed with the Archive install. Make sure you uncheck the "Group by categories" option until you see the "Smarty feature" item.

Cheers


Sign in to add a comment
Powered by Google Project Hosting