This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 186699 - Embedded HTML Error Checking
Summary: Embedded HTML Error Checking
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 02:15 UTC by alanluayon
Modified: 2010-06-25 03:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
HTML Error Checking Bug. (149.08 KB, image/jpeg)
2010-05-26 02:15 UTC, alanluayon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alanluayon 2010-05-26 02:15:52 UTC
Created attachment 99468 [details]
HTML Error Checking Bug.

Procedure
1. Create project maven.
2. Select Archetype Tapestry 5.1.0.5
3. After the project is generated.

Kindly see attachment.
Comment 1 David Konecny 2010-06-22 02:08:29 UTC
HTML editor issue.
Comment 2 Marek Fukala 2010-06-22 08:21:32 UTC
Any idea who is the tapestry module owner? This needs to be solved mainly on their side,it's not html editor itself problem. I may also disable to html error checks if the html editor is embedded and the error checks are not explicitly enabled (jsp, php etc.)
Comment 3 alanluayon 2010-06-22 09:04:47 UTC
The Tapestry Module Owner is on maven archetype.

But in Netbeans 6.7 i think the html editor feature is not yet installed.

How can i auto disable html editor?  

Is it possible to auto disable the html editor if the page is not a html?

Thanks :)
Comment 4 Marek Fukala 2010-06-22 10:38:15 UTC
I reckon I need to resolve these kind of issues the way I mentioned since many templating languages embeds html code and then complains :-)

Each of the errors has a hintfix which you can use to disable the error checks for the current file. No generic option so far though :-(
Comment 5 alanluayon 2010-06-22 22:47:31 UTC
Yes there is a hint in every page :).
But much better if there is an option to disable the
html editor if it is not a html page.

Do i need to issue another Bug? Issue Type: ENHANCEMENT?

Thanks :)
Comment 6 Marek Fukala 2010-06-23 10:01:25 UTC
Would "disable html error checks on this kind of files" hint work for you?
Comment 7 alanluayon 2010-06-23 22:45:36 UTC
Yes, disabling the hint will work.
But the problem i have many template page not just one.

I need to disable them one by one?

:)
Comment 8 Marek Fukala 2010-06-24 07:20:16 UTC
Currently the only way you can disable the checks is to disable the pages one by one.

The new proposed hint would allow you to disable the error checks in *all files* of the mimetype. So if you invoke the hintfix once on any of your tapestry files, all other files with the same mimetype will have the checks disabled.
Comment 9 alanluayon 2010-06-24 07:55:07 UTC
Ok... I will closed this BUG186699.

Thanks for the clarification.
Comment 10 Marek Fukala 2010-06-24 08:15:23 UTC
Nooo :-) I've just fixed it for you. I mean I impelemented the new hint allowing to disable/enable the html checking for all files of a kind.
Comment 11 alanluayon 2010-06-24 08:19:33 UTC
Opppsss sorry my mistake. 
I thought the fixed will be for the next release of netbeans.

Yup that is more better. But i think the best thing is 
there is a option to enable/disable this feature.

What do you think? :)
Comment 12 Marek Fukala 2010-06-24 08:21:06 UTC
fixed in web-main#3232d03a2a9f by providing a new hint fix for html errors - "Disable HTML error checking for all files of the XYZ mimetype". If the checks are disabled, there's a warning + hintfix at the first line of each file of the type allowing to reenable the checks.
Comment 13 alanluayon 2010-06-24 08:24:32 UTC
How can i apply your fixed?
Comment 14 Marek Fukala 2010-06-24 08:25:10 UTC
The fix is for 6.9.next, not for either 6.9 or 6.9.1.

I am not a fan of disabling the checks completely for all files which embed html. There still might be usefull in some cases I belive. But I can create some html options UI for it later.

I reckon you would like to have some command line option for 6.9, right? ;-)
Comment 15 Marek Fukala 2010-06-24 08:28:10 UTC
(In reply to comment #13)
> How can i apply your fixed?

If you are building netbeans by your own, just wait until the changeset propagets to your repository (the fix is in web-main repo only right now).

If you are using dev builds, wait for some time until the fix propagates to the main-golden and hence appear in the build available on bits.netbeans.org.

If you are using release69 then we can put the fix into 691 if it is considered as critical issue, or I can make a patched module jar file just for you.
Comment 16 alanluayon 2010-06-24 08:30:24 UTC
Yes in some cases it is useful.
Thanks but for now i will wait for its new release.
I think it will be added in netbeans updates right?
Comment 17 Marek Fukala 2010-06-24 08:37:42 UTC
it will appear on the dev autoupdate if I increase the module version
Comment 18 Quality Engineering 2010-06-25 03:15:32 UTC
Integrated into 'main-golden', will be available in build *201006250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3232d03a2a9f
User: Marek Fukala <mfukala@netbeans.org>
Log: #186699 - Embedded HTML Error Checking