Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » newPhp templates not working
newPhp templates not working [message #81486] Thu, 09 October 2008 11:18 Go to next message
Eclipse UserFriend
Hello,

I have PDT 2.0.0.v20080923-1839 running in Eclipse Classic SDK
3.4.1-linux-gtk-x86_64 installed as prescribed in Juan Felipe Alvarez
Saldarriaga's tutorial
( http://wiki.freaks-unidos.net/php-ide-with-eclipse )


Creating a new file with a default newPHP template works as expected.
However, if I create a new PHP file and select a newPhp template that I
made or a default one that I've edited then the new file is created
without the template inserted. I've played with the "Use code formatter"
and ""Automatically insert" settings in Window -> Preferences -> PHP ->
Editor -> Templates but no joy. Searching Google, Google Groups and the
Eclipse newsgroups haven't yielded a solution. So if you can point me
towards a way to get newPhp templates working I would really appreciate
it.

Thanks,
Don
Re: newPhp templates not working [message #81660 is a reply to message #81486] Fri, 10 October 2008 09:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: euthanasia_waltzNOSPAM.yahoo.co.jp

If you wrote some variables such as ${interpreter} or ${file} or
${language} in your template, try removing them...
Re: newPhp templates not working [message #81931 is a reply to message #81660] Tue, 14 October 2008 11:14 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the tip Toshihiro. I did have variables susch as ${date}. The
Templates worked after removing the variables. However, it would be very
convenient if we could have custom templates with variables.

Don
Re: newPhp templates not working [message #82082 is a reply to message #81931] Wed, 15 October 2008 22:14 Go to previous message
Eclipse UserFriend
Originally posted by: euthanasia_waltzMAPSON.yahoo.co.jp

I reported this issue in Bugzilla.
Bug 250508 -- Some variables in template cause creating empty file
https://bugs.eclipse.org/bugs/show_bug.cgi?id=250508

It will be resolved sooner or later...
BTW, I found only 3 variables (file, interpreter, language) which caused
this problem. If you have other cases, please add comment in bugzilla or
report your own issue.
Previous Topic:Code Completion: <?php rather than <?
Next Topic:Source Format and PHP Outline
Goto Forum:
  


Current Time: Sat Apr 26 03:02:29 EDT 2025

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

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

Back to the top