Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » How to get Smarty working in MARS
How to get Smarty working in MARS [message #1699946] Mon, 29 June 2015 12:50 Go to next message
Torge Kummerow is currently offline Torge KummerowFriend
Messages: 26
Registered: July 2009
Junior Member
Hi,

last roadblock to swtich from my zend 9 to this new PDT release is that I can't get smarty to run.

I downloaded the latest 0.9.1 from google code (https://code.google.com/p/smartypdt/downloads/list), but it won't install.

Cannot complete the install because one or more required items could not be found.
  Software being installed: Smarty Feature 0.91.0 (org.eclipse.php.smarty_feature.feature.group 0.91.0)
  Missing requirement: Smarty Feature 0.91.0 (org.eclipse.php.smarty_feature.feature.group 0.91.0) requires 'org.eclipse.php 0.0.0' but it could not be found


I also found a repository that claims to have a fix in it. But it seams to be just a Maven project: https://github.com/pulse00/smartypdt/pull/2
I am not used to Maven. So is there any compiled version/solution around? Or is there a neat trick to install a plugin from just this, that I am not aware of?

Any hint appreciated,
Torge.
Re: How to get Smarty working in MARS [message #1699947 is a reply to message #1699946] Mon, 29 June 2015 12:51 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 291
Registered: March 2013
Senior Member
Fixed version is available in PEX repository: http://p2-dev.pdt-extensions.org/

Re: How to get Smarty working in MARS [message #1699992 is a reply to message #1699947] Mon, 29 June 2015 14:39 Go to previous messageGo to next message
Torge Kummerow is currently offline Torge KummerowFriend
Messages: 26
Registered: July 2009
Junior Member
Hi,

I already visited this page which in the end directed me to google code:

http://p2-dev.pdt-extensions.org/editors.html#smarty

Am I missing something?

Greetings,
Torge.
Re: How to get Smarty working in MARS [message #1699996 is a reply to message #1699992] Mon, 29 June 2015 14:41 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 291
Registered: March 2013
Senior Member
http://p2-dev.pdt-extensions.org it's also eclipse update site.

Use help -> install new software.
Add, name for ex. pex, url http://p2-dev.pdt-extensions.org

Smarty is under Text Editors / Productivity Tools


[Updated on: Mon, 29 June 2015 14:42]

Report message to a moderator

Re: How to get Smarty working in MARS [message #1699997 is a reply to message #1699996] Mon, 29 June 2015 14:58 Go to previous messageGo to next message
Torge Kummerow is currently offline Torge KummerowFriend
Messages: 26
Registered: July 2009
Junior Member
Ah thank you very much. That was the missing piece of information.

I wounder why this is not part of the PHP Eclipse distribution standard repositories.
Re: How to get Smarty working in MARS [message #1699999 is a reply to message #1699997] Mon, 29 June 2015 15:01 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 291
Registered: March 2013
Senior Member
This is IP limitation. Official packages can contain only Eclipse Foundation plugins / update sites.

But we plan to introduce built-in PDT discovery wizard to promote external solutions, see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=433676


Re: How to get Smarty working in MARS [message #1700015 is a reply to message #1699999] Mon, 29 June 2015 16:25 Go to previous messageGo to next message
Torge Kummerow is currently offline Torge KummerowFriend
Messages: 26
Registered: July 2009
Junior Member
Makes sense. Thx for the info.

Anyhow I am just really glad that PHP got resurrected as official eclipse project again. Best IDE there is IMHO. And its so much faster than Zend 9 now.
Re: How to get Smarty working in MARS [message #1703237 is a reply to message #1699946] Wed, 29 July 2015 15:49 Go to previous messageGo to next message
Erik Jung is currently offline Erik JungFriend
Messages: 9
Registered: July 2009
Junior Member
Hi,

I have installed Smarty Feature on a new Eclipse PDT (Mars) as described and the Content Type .tpl is now assigned to Smarty Editor. Syntax highlighting seems to work, but autocompletion and the configured templates doesn't work with Strg + Space. Popup displays "no proposals".

Is there a trick to enable autocompletion and how can I use the templates of the Eclipse Preferences?

Thanks for any advice
Erik
Re: How to get Smarty working in MARS [message #1703239 is a reply to message #1703237] Wed, 29 July 2015 16:12 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 291
Registered: March 2013
Senior Member
As I see smarty isn't fully compatible with PDT 3.5 due internal parser changes.

Re: How to get Smarty working in MARS [message #1703269 is a reply to message #1703239] Thu, 30 July 2015 06:44 Go to previous messageGo to next message
Erik Jung is currently offline Erik JungFriend
Messages: 9
Registered: July 2009
Junior Member
I was afraid that. Thanks anyway.
Re: How to get Smarty working in MARS [message #1703284 is a reply to message #1703269] Thu, 30 July 2015 10:05 Go to previous messageGo to next message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 291
Registered: March 2013
Senior Member
Hi, I fixed 2 direct incompatibilities with PDT 3.5 and published to pdt-eg mirrors. Hope this fix your issue.

Re: How to get Smarty working in MARS [message #1703402 is a reply to message #1703284] Fri, 31 July 2015 10:10 Go to previous messageGo to next message
Erik Jung is currently offline Erik JungFriend
Messages: 9
Registered: July 2009
Junior Member
Thanks for your help. Unfortunately still no proposals. Syntax highlighting would actually be enough for me but I noticed, that code indentation with Alt-Key doesn't work with Smarty Editor if two or more lines are selected. I would expect that this is a strong feature across all Eclipse editors.?
Re: How to get Smarty working in MARS [message #1705332 is a reply to message #1703402] Thu, 13 August 2015 19:49 Go to previous message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 291
Registered: March 2013
Senior Member
Sorry for delay.

As I saw in code smartypdt is in general hacked php editor (subclass). I'm not sure what should work and what shouldn't. I'm only trying to keep it in sync with PDT changes.

Personally I prefer Twig Razz


Previous Topic:Unable to create run configuration
Next Topic:Can't get ANY javascript code completion
Goto Forum:
  


Current Time: Fri Apr 19 04:27:42 GMT 2024

Powered by FUDForum. Page generated in 0.02702 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top