eZ Community » Forums » Developer » eZ Publish Eclipse Plugin Development
expandshrink

eZ Publish Eclipse Plugin Development

eZ Publish Eclipse Plugin Development

Thursday 15 March 2007 11:08:43 am - 44 replies

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/3...arty/smile_ez_publish_eclipse_plugin
2. http://ez.no/community/contribs/3...clipse_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 happy.gif Emoticon
Best regards
Felix Woldt

Modified on Friday 23 March 2007 9:10:24 pm by Felix Woldt

Thursday 15 March 2007 12:13:44 pm

Good stuff happy.gif Emoticon

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

Thursday 15 March 2007 1:16:18 pm

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

Thursday 15 March 2007 1:27:40 pm

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

Thursday 15 March 2007 1:38:51 pm

Today i got the debugger working happy.gif Emoticon

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

Tuesday 20 March 2007 11: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.

Tuesday 20 March 2007 11: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 sad.gif Emoticon

paul

Modified on Tuesday 20 March 2007 11:35:24 am by Paul Forsyth

Wednesday 21 March 2007 5:17:03 pm

Hi Eclipse Tester,

i commited a new version of my templateeditor 0.0.7
http://ez.no/community/contribs/3...clipse_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

Wednesday 21 March 2007 5:43:53 pm

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.

Wednesday 21 March 2007 5:54:09 pm

Also the ./bin/php/eztemplatecheck.php happy.gif Emoticon

Wednesday 21 March 2007 6:38:01 pm

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.

Wednesday 21 March 2007 7:10:28 pm

Hmm, looking further validateTemplate... does indeed invoke parse.

Then perhaps its a settings issue as the multipassparser does seem to perform deeper checks.

p

Wednesday 21 March 2007 7:29:50 pm

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

Wednesday 21 March 2007 7:31:04 pm

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

Modified on Thursday 22 March 2007 11:34:28 am by Paul Forsyth

Thursday 22 March 2007 11: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.

Thursday 22 March 2007 12:21:25 pm

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

Modified on Thursday 22 March 2007 12:29:11 pm by Paul Forsyth

Thursday 22 March 2007 4:05:54 pm

Exactly,

I just need better error reporting concerning :
- control structures consistency
- error line

Thursday 22 March 2007 4:23:20 pm

Yip. I guess the next step is to file a 'enhancement' on the issues list and perhaps kindly ask Kristian to take a look happy.gif Emoticon

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

Friday 23 March 2007 9:17:32 pm

From now the JAC eZ Template Edior ( http://ez.no/community/contribs/3...clipse_plugin_jac_ez_tempalte_editor )

is included in the Smile Plugin ( http://ez.no/community/contribs/3...arty/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

Modified on Saturday 24 March 2007 7:45:42 pm by Felix Woldt

Sunday 22 April 2007 8:46:04 pm

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.

Monday 23 April 2007 10:38:06 am

Hi,

Code completion is available in both editors, but you need to press Control + Space to activate it.

The editors are supposed to open the code competion when '{' is entered, but this doesn't work for now and I still don't know why....

--
Nicolas Richeton
http://www.smile.fr

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu