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 70101 - XML check and validate actions doesn't show their output for the first time
Summary: XML check and validate actions doesn't show their output for the first time
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 75777 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-08 16:30 UTC by _ viendu
Modified: 2006-08-09 11:27 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ viendu 2005-12-08 16:30:32 UTC
Using the latest qbuild, I edit a struts configuration file.

In the file, I have this piece of code:
   <form-beans>
    <form-bean name="TestFormA"
               type="com.someForm">
      <form-property name="fielda"  type="java.lang.String"/>
    </form-bean>

    </form-beans>

    <form-bean name="TestFormB"
               type="com.someForm">
      <form-property name="fieldb"  type="java.lang.String"/>
    </form-bean>
  </form-beans>

You can see that in the middle, I have an extra closing tags for form-beans.

So, when I save, I get a confirmation message saying the file has invalid
format, do I want to save.  This is fine. I just click save.

However, when I right click to Check or Validate xml, I don't see any thing at
all.  Is this somekind of a bug?

Next, I delete the offending line, and click save.  I got the error message
again.  Next, I put an extra empty line (just to touch the file), the click
save, the confirm/warning message does not show.  So, it shows 1 extra time
(very minor).
Comment 1 Petr Pisl 2005-12-09 10:17:04 UTC
The fix of issue #65701 solved the problem with the error message that was
displayed even when the file is not malformed.

The other think is that there is nothing displayed in the output window after 
Check or Validate action. The action is performed, but there is a problem with
output window. The workaround is to invoke the action second time.
Comment 2 Marek Fukala 2005-12-09 11:38:37 UTC
This is more general problem valid for all XML like filetypes with the Check and
Validate actions. Should be fixed somehow but no time for this now.
Comment 3 Marek Fukala 2006-08-04 16:56:32 UTC
Grrr, I spent long hours trying to figure out what can be wrong here and lateron
realized that there has already been similar issue #44187 before two yars.
Removing already remove and added and remove workaround seems to help. For
better understanding of the previous chaotic sentence read the mentioned issue
comments. 

I *hope* this wont break anything else.

Somebody from QE, please verify carefully. Thanks.

Checking in InputOutputReporter.java;
/cvs/xml/core/src/org/netbeans/modules/xml/core/actions/InputOutputReporter.java,v
 <--  InputOutputReporter.java
new revision: 1.21.52.2; previous revision: 1.21.52.1
done
Comment 4 Jindrich Sedek 2006-08-09 11:09:26 UTC
*** Issue 75777 has been marked as a duplicate of this issue. ***
Comment 5 Jindrich Sedek 2006-08-09 11:27:12 UTC
Verified NetBeans5.5Dev 200608090000