Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349127 - Adding an HTML element before any <?php tag kills the editor, creates invalid HTML
Summary: Adding an HTML element before any <?php tag kills the editor, creates invalid...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-11 15:20 EDT by Adrian CLA
Modified: 2020-05-14 11:18 EDT (History)
5 users (show)

See Also:


Attachments
Stack of the PHP Editor crash on load (5.80 KB, text/plain)
2011-06-11 15:28 EDT, Adrian CLA
no flags Details
Export of my current preferences (86.45 KB, application/octet-stream)
2011-07-12 18:04 EDT, Adrian CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian CLA 2011-06-11 15:20:35 EDT
Build Identifier: I20110526-1708

Typing a less than character before a <?php open tag, to insert a new HTML element, causes the editor to die (various parts go blank) and typing anything is garbled. If you save and reload eclipse, it will have created invalid HTML which generally crashes the PHP editor due to the incorrect HTML syntax (it appears that this full editor crash only sometimes happens with small files like this example, but happens every single time with larger and more complex templates, the top of the backtrace always has methods referring to schema validation). 

Reproducible: Always

Steps to Reproduce:
1. Create a PHP file
2. Paste or type this into the file:

<html>

<?php echo 'hello'; ?>
</html>

4. In the empty line before the PHP tag, start typing <head>.
5. The line should be garbled (mostly blank). Anything you type now will appear garbled.
6. Save
7. Open the file with the Text Editor. You should see something like this:

<html>
eadh<
<?php echo 'hello'; ?>
</html>

8. Open the file in the PHP Editor, it will likely crash.
Comment 1 Adrian CLA 2011-06-11 15:22:26 EDT
This also happened in the M6 release, which was the first and only other Indigo release I tried before the RC3 build.
Comment 2 Adrian CLA 2011-06-11 15:28:06 EDT
Created attachment 197842 [details]
Stack of the PHP Editor crash on load

This is the stack that appears when the PHP Editor fails to load the file created in the earlier steps.
Comment 3 Zhongwei Zhao CLA 2011-06-21 03:20:26 EDT
can you reinstall your pdt?I could not reproduce your issue,please reopen it if you can reproduce it,thanks!
Comment 4 sergies CLA 2011-07-12 17:51:48 EDT
This bug is still present on eclipse indigo, Adrian steps are correctly

Eclipse details:

Version: 3.7.0
Build id: I20110613-1736

Eclipse Web Developer Tools

Version: 3.3.0.v201102200555-7O7IFhJEMiB5vNMYta56_GonLeahqrwnYjv2mBz-
Build id: 20100921193530
Comment 5 Adrian CLA 2011-07-12 18:03:05 EDT
I reinstalled the release version as you suggested and it still happens but didn't reopen this assuming it was just something about my install, but with the additional comment, it appears to be reproducible by others. 

Before I had restored my preferences from a saved .efp preference export from a Helios, so this time I manually changed the preferences to my company's standards and it still happens. I'll attach my current preferences export next in case that is a factor. 

Version: Indigo Release
Build id: 20110615-0604
Comment 6 Adrian CLA 2011-07-12 18:04:46 EDT
Created attachment 199534 [details]
Export of my current preferences
Comment 7 Zhongwei Zhao CLA 2011-07-12 21:37:28 EDT
hi,
I am sorry you still can reproduce it,can you install this version of pdt,because it is the latest one,we have not released for a long time!
https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/164/artifact/build/N201107120314/pdt-Update-N201107120314.zip
Comment 8 sergies CLA 2011-07-13 08:47:26 EDT
with last package from zhaozhongwei, bug seems disappear. But not complety tested.
Comment 9 Zhongwei Zhao CLA 2011-08-08 00:48:21 EDT
please try the latest build,thanks
Comment 10 Grégory Gallon CLA 2011-08-18 15:55:07 EDT
Hello,

I have the same issue with the official latest realeases :

  Eclipse Platform	3.7.0.I20110613-1736
  PHP Development Tools (PDT) SDK Feature 3.0.0.v20110516-1100-77--84_23JBVgSVXO7XGJz0VLa9O

Please is there a later pdt build that fix this bug ? (the link given in this thread is dead).

Thank you.


Gregory
Comment 11 Grégory Gallon CLA 2011-08-18 16:00:58 EDT
Some additional informations :

My OS  : Mac OS X 10.7 Lion
My JRE : Apple Java SE 1.6.0_26

Need some help !


Thank you :)
Comment 12 Zhongwei Zhao CLA 2011-08-19 00:14:30 EDT
hi,

you need download latest build from https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo
Comment 13 Grégory Gallon CLA 2011-08-23 11:33:54 EDT
Thanks, it's now ok for me :)
Comment 14 Sylvia Tancheva CLA 2011-10-18 09:17:40 EDT
Verified on Mac Lion 10.7

Ilina Stefanova