[ phpeclipse-Bugs-1682029 ] "argument not valid" at html comment start

"SourceForge.net" <[email protected]> Fri, 11 May 2007 00:32:43 -0700
Newsgroups gmane.comp.ide.eclipse.phpeclipse.devel
Message-ID <[email protected]>
Bugs item #1682029, was opened at 2007-03-16 12:36
Message generated for change (Comment added) made by jpieper
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1682029&group_id=57621

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PHP Editor
Group: 1.1.8
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: jpieper (jpieper)
Assigned to: Edward Mann (emann)
Summary: "argument not valid" at html comment start

Initial Comment:
If I want to write a html comment in my code i´ll get an error with reason "Argument not valid".

I can reproduce this error by typing in this:

1) <
2) !
3) -
4) - (now the cursor is between 3 and 4)
5) Whitespace
6) Backspace
7) ENTF

But you have to be sure, the editor knows that you are writing HTML. Test it in already existent html files, because it was difficult to reproduce this error in completely new files.

----------------------------------------------------------------------

>Comment By: jpieper (jpieper)
Date: 2007-05-11 09:32

Message:
Logged In: YES 
user_id=1668432
Originator: YES

It is a PHP file and there is HTML in it. It is very difficult to
reproduce but the bug is still existent. I´ll try find a code that failes
on adding a comment.

<?php [90-lines] ?>
[10-lines-HTML]
<?php if (...) { ?>
[4-lines-HTML]
<?php } else { ?>
[7-lines-HTML]
<?php if (...) { ?>
[20-lines-HTML]
<?php if (...) { ?>
[13-lines-HTML]
<?php } else { foreach (...) { ?>
[10-lines-HTML]
<?php $var = $var2; ?>
[7-lines-HTML]
<?php } } ?>
[4-lines-HTML]
<?php } else { ?>
[7-lines-HTML]
<?php if (...) { ?>
[13-lines-HTML]
<?php } else { foreach (...) { ?>
[10-lines-HTML]
<?php $var = $var2; ?>
[8-lines-HTML]
<?php } } ?>
[5-lines-HTML]
<?php } ?>
[6-lines-HTML]
<?php } ?>
[2-lines-HTML]

----------------------------------------------------------------------

Comment By: Edward Mann (emann)
Date: 2007-05-11 00:03

Message:
Logged In: YES 
user_id=430467
Originator: NO

jpieper,

Can you post some more detail code? Are  you trying to add the following
to an html file or a php file. Something like

<?php
include_once ('modules/Employee/Employee.phpc');

$emp = new Employee('my_emp_id');
<!-- This is the Employee Name -->
print ($emp->getEmpName()."\n");

?>

or in html?
<html>
<head>
</head>
<body>
<!-- my comment -->
</body>
</html>

If it's in php like above, that will not work. you would need to do
something like

print ("<!-- This is the Employee Name -->");

or you can use echo.

Let me know.

Thanks.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1682029&group_id=57621

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Phpeclipse-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpeclipse-devel