Author
|
Message
|
Felix Woldt
|
Thursday 15 March 2007 3:08:43 am
This forum thread is for ideas and discussions for the eclipse plugin development. At the moment their are two contributions available:
1. http://ez.no/community/contribs/3rd_party/smile_ez_publish_eclipse_plugin 2. http://ez.no/community/contribs/3rd_party/eclipse_plugin_jac_ez_template_editor
From Now (23 March 2007) the 2. contribution (JAC eZ Template Editor) is included in the 1. (Smile Plugin)
Have fun with Eclipse :-)
Best regards Felix Woldt
http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com
CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter
|
Paul Forsyth
|
Thursday 15 March 2007 4:13:44 am
Good stuff :) I have a mindmap with development plans for Eclipse Dev with eZ. I'll dig it out and try to post the details here. Paul
|
Björn [email protected]
|
Thursday 15 March 2007 5:16:18 am
It would be since to know of debugger issues are solved in PHPIDE... I think the last time i tried it dind't perform the same way as Zend
Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/
|
Paul Forsyth
|
Thursday 15 March 2007 5:27:40 am
It was bad the last time i tried. Zend are part of eclipse now: http://www.eclipse.org/pdt so there should be better support for debugging soon if it doesnt already work. Paul
|
Felix Woldt
|
Thursday 15 March 2007 5:38:51 am
Today i got the debugger working :-)
Linux (fedora core 6 with sun java 6):
- eclipse pdt all in one package linux - xdebug extension or zend_debugger works (xdebug works faster on linux for me)
Windows 2k and XP:
- eclipse pdt all in one package windows - only xdebug works for me some links:
1. official developmentpage from eclipse: http://www.eclipse.org/pdt
2. zend website where you can download the all in one package and the zend webserver debugger
http://www.zend.com/pdt http://downloads.zend.com/pdt/all-in-one
3. Xdebug eclipse plugin https://bugs.eclipse.org/bugs/show_bug.cgi?id=169408
http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com
CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter
|
Sylvain Bannier
|
Tuesday 20 March 2007 3:24:41 am
Hi I'm working on syntax validation with Nicolas. Currently, we rely on eZTemplate::validateTemplateFile() to check template syntax. It works fine for basic errors like parenthesis or bracket match, but it doesn't check control structures consistency. For instance, a template without a complete "if" statement like this doesn't reveal any error or warning :
{if true()}
Though, these kind of errors appear in debug. Does anybody know where I can find methods to perform advanced syntax validation ? Thanks.
http://www.smile.fr
|
Paul Forsyth
|
Tuesday 20 March 2007 3:34:53 am
hi sylvain, have you tried looking in this file:
lib/eztemplate/classes/eztemplatemultipassparser.php
doesnt seem to a single function solution though :( paul
|
Felix Woldt
|
Wednesday 21 March 2007 9:17:03 am
Hi Eclipse Tester,
i commited a new version of my templateeditor 0.0.7 http://ez.no/community/contribs/3rd_party/eclipse_plugin_jac_ez_template_editor
I changed the colors of the Highlighting. Please give me a feedback if the colors are ok. Thank's
Best Regards Felix Woldt
http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com
CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter
|
Kristian Hole
|
Wednesday 21 March 2007 9:43:53 am
Hi, The script ./bin/php/eztc.php compiles templates and gives you warnings if you have template errors. This might be useful to check template syntax.
Kristian
http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute
|
Kristian Hole
|
Wednesday 21 March 2007 9:54:09 am
Also the ./bin/php/eztemplatecheck.php :-)
Kristian
http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute
|
Sylvain Bannier
|
Wednesday 21 March 2007 10:38:01 am
Hello Kristian, "./bin/php/eztemplatecheck.php" does actually rely on eZTemplate::validateTemplateFile() to perform syntax validation. The problem is that this function doesn't peform very advanced verfications. "eztemplatemultipassparser.php" seems to use the same function to.
http://www.smile.fr
|
Paul Forsyth
|
Wednesday 21 March 2007 11:10:28 am
Hmm, looking further validateTemplate... does indeed invoke parse. Then perhaps its a settings issue as the multipassparser does seem to perform deeper checks. p
|
Paul Forsyth
|
Wednesday 21 March 2007 11:29:50 am
Ok, got it. The validator does work but it stores the errors in the templates error log. So, $tpl->errorLog() shows you the details. Paul
|
Paul Forsyth
|
Wednesday 21 March 2007 11:31:04 am
Kristian, Would it be an idea to add the output of the error log when validation isnt successful as part of the templatecheck script? Edit: Added as a suggestion: http://issues.ez.no/10485 Paul
|
Sylvain Bannier
|
Thursday 22 March 2007 3:52:54 am
Paul, that's actually what I do in my script. The ouput contains the content of $tpl->errorLog and the content of $tpl->warningLog.
$tpl->validateTemplateFile( $templateUrl );
//[...]
foreach($tpl->errorLog() as $error) {
//[...]
}
foreach($tpl->warningLog() as $error) {
//[...]
}
I didn't say that the validator doesn't work. I only wish it could dig a little deeper in template structure. So I'm looking for some way to perform more accuarate syntax validation than eZTemplate::validateTemplateFile() . The other problem is that the errorLog often fails to found the correct error line.
http://www.smile.fr
|
Paul Forsyth
|
Thursday 22 March 2007 4:21:25 am
I thought this issue was because eZ reports advanced template errors that you dont access to? It sounds like this isnt the case and you simply need better error reporting? Is this right? Paul
|
Sylvain Bannier
|
Thursday 22 March 2007 8:05:54 am
Exactly,
I just need better error reporting concerning :
- control structures consistency - error line
http://www.smile.fr
|
Paul Forsyth
|
Thursday 22 March 2007 8:23:20 am
Yip. I guess the next step is to file a 'enhancement' on the issues list and perhaps kindly ask Kristian to take a look :) Though, surely the fact that lines numbers are wrong is a simple bug to fix... Im not sure how easy it will be to add to the eZ code base. As a side-note: I wonder how good eZ components is at this? Better / worse? Since the eZC template engine will be used in eZ 4 later this year any enhancements may be more likely to reach this version than the 3.X release... Paul
|
Felix Woldt
|
Friday 23 March 2007 1:17:32 pm
From now the JAC eZ Template Edior ( http://ez.no/community/contribs/3rd_party/eclipse_plugin_jac_ez_tempalte_editor ) is included in the Smile Plugin ( http://ez.no/community/contribs/3rd_party/smile_ez_publish_eclipse_plugin )
So you only need do look on one place for changes and you can use the eclipseupdatesite http://smile-ez-plugin.sourceforge.net/update/
The current version includes both template editors
- JAC eZ Template Editor - Smile TPL Editor
Have fun Felix
http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com
CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter
|
Guillaume Kulakowski
|
Sunday 22 April 2007 11:46:04 am
Hello, I use your template editor (in smile plugin). I have a very good syntaxe hightlight but i have not auto-completion. Where activate this auto-completion ? I haven't desactivate it in the editor settings.
My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"
|