Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368510 - PHP and HTML error, Internal error, java.lang.Error: could not match input
Summary: PHP and HTML error, Internal error, java.lang.Error: could not match input
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-13 01:44 EST by Code Blender CLA
Modified: 2020-05-14 11:52 EDT (History)
2 users (show)

See Also:


Attachments
Trace (6.08 KB, text/x-log)
2012-01-13 01:48 EST, Code Blender CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Code Blender CLA 2012-01-13 01:44:43 EST
Build Identifier: Version: 4.1.0 Build id: M20110912-1510

With a PHP file that contains two enclosed blocks of PHP code, I tried to type some HTML tags in between the two PHP blocks and a popup appears with the message:

Internal Error
Reason
java.lang.Error: Error: could not match input

Please see attached error log/trace.

This bug has been reported here:

http://www.eclipse.org/forums/index.php/mv/msg/268419/768654/

and the bug 359473 seems to be related to this bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=359473

A friend is using the same version of Eclipse on a Windows 7 machine, but without the same error.


Reproducible: Always

Steps to Reproduce:
1. Create new PHP project.

2. Create a simple PHP file as below:


<?php phpinfo(); ?>


<?php phpinfo(); ?>


3. Type "<" to start a HTML tag inside the two enclosed PHP code blocks.

Error appears every time.
Comment 1 Code Blender CLA 2012-01-13 01:48:54 EST
Created attachment 209430 [details]
Trace

Log file of error.
Comment 2 Roy Ganor CLA 2012-01-13 02:41:05 EST
I suggest you download a newer version, you use a pretty old one...
http://eclipse.org/pdt/downloads (recommend on the Eclipse PDT 3.0.x All In Ones)
Comment 3 Code Blender CLA 2012-01-13 07:10:21 EST
Hi Roy,

I downloaded and installed Eclipse Classic 3.7.1, I then installed the PDT plugin via indigo:

Indigo - http://download.eclipse.org/releases/indigo

Going through Help -> Install New Software, I have the following PDT installed:

PHP Development Tools (PDT) SDK Feature	3.0.0.v20110516-1100-77--84_23JBVgSVXO7XGJz0VLa9O

So I take it that I should be able to download PDT 3.0.2 from indigo? Or is it only available via manual download?

Thanks for your help.
Comment 4 Roy Ganor CLA 2012-01-14 08:30:08 EST
(In reply to comment #3)
> Hi Roy,
> 
> I downloaded and installed Eclipse Classic 3.7.1, I then installed the PDT
> plugin via indigo:
> 
> Indigo - http://download.eclipse.org/releases/indigo
> 
> Going through Help -> Install New Software, I have the following PDT installed:
> 
> PHP Development Tools (PDT) SDK Feature   
> 3.0.0.v20110516-1100-77--84_23JBVgSVXO7XGJz0VLa9O
> 
> So I take it that I should be able to download PDT 3.0.2 from indigo? Or is it
> only available via manual download?
> 
> Thanks for your help.

you can also download it from our hudson indigo task https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/
Comment 5 Code Blender CLA 2012-01-15 04:59:36 EST
Thanks, 

I updated the PDT plugin using the following file.

https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/lastBuild/artifact/build/N201201130312/pdt-Update-N201201130312.zip

The error now does not occur in this version, thanks.

Cheers.
Comment 6 Roy Ganor CLA 2012-01-15 16:51:42 EST
closing per last comment
Comment 7 Kalin CLA 2012-07-03 09:14:53 EDT
Re-tested.
Verified fixed.
Closing...