This topic is locked

Visual Editor Line Numbers

2/13/2010 12:20:39 PM
Suggestions
K
KeithS author

It would be nice in the event editor where line numbers are shown - if instead of numbers 1 through n, but rather show the physical line numbers in the final generated php include file. Yeah I know this is sort of putting the cart before the horse in respect to how things work but when you get a php error at runtime and it is a line number in the physical file, you do not know where in the event script the error really is! So you still end up digging around to find it and or you first edit the generated file to find it (the reported physical line number) and then go back to the visual editor. Somehow to provide this would help make it more seamless. Perhaps a button that says find runtime error line number...
The recent addition of the Syntax check button is definitely helpful!!!
The recent addition where the event passed variables is listed in the event editor is nice for reference - but is sometimes too big - perhaps make it collapsible.
Thank You

Sergey Kornilov admin 2/14/2010

Different events belong to different files. Having physical line numbers will be quite confusing.
Event descriptions are collapsible in fact. Use minus-plus sign next to 'Description'.

K
KeithS author 2/15/2010



Different events belong to different files. Having physical line numbers will be quite confusing.
Event descriptions are collapsible in fact. Use minus-plus sign next to 'Description'.


Yeah - understood on the complexity and confusion. I guess the real point is that as I recall doing a project with another person, we commented to each other that when we would get an error at runtime and would get a line number, that chasing down that line number was seemingly a hassle that if could be addressed in phpr, that would be really cool. He also said that he wished for a find function in the editor.
Anyhow - I just went back into a project. Was going to put that Joomla Integration article to the test and looked at the description text and wished I could collapse it out of the way and then my poor weak eyes noticed this little minus sign... Then I gulped and said - silly me ;-) Sometimes the eyes look and do not see...

Sergey Kornilov admin 2/17/2010

I agree 100% percent that better editor is a must. We'll address this in the next major update.