Re: r4654 - trunk/woproject/wolips/core/plugins/org.objectstyle.wolips.wodclipse.core/java/org/objectstyle/wolips/wodclipse/core/builder

From: Kieran Kelleher (kieran_list..ac.com)
Date: Tue Nov 20 2007 - 12:12:40 EST

  • Next message: Cornelius Jaeger: "Re: Velocity EOGen [SOLVED]"

    Mike .... hopefully this is of use to you. I had 3 of these woelement
    not found false errors as shown in attached pic. Then I did a clean/
    rebuld of the project and got more.




    Actually each clean/rebuild changes the errors to different
    components too it seems .... very strange.




    Also the .markers modification date remains at yesterday even though
    I just did clean/rebuild just now. Not sure if that is significant.




    The wiki workaround of deleting .markers and restarting Eclipse with -
    clean always works to clean this up for a while.

    Anyway if there is anything I can do to help track down this bug, let
    me know ..... for example if there is some workspace state or
    something to capture whenever this happens.

    Regards, Kieran

    ________________________________________________________________
    Blog: http://homepage.mac.com/kelleherk/iblog/index.html
    WebObjects Wiki: http://wiki.objectstyle.org/
    Eclipse 3.3.1 / WOLips #4652
    OS X 10.4.X Tiger / Java 1.5 / WO 5.3.X w/Wonder
    MySQL 4.1.X w/InnoDB / Connector-J 5.0.X

    On Nov 19, 2007, at 2:29 PM, Mike Schrag wrote:

    > btw -- does anyone know how to consistently setup this situation
    > where you get a hanging validation failure that is out-of-date?
    >
    > On Nov 19, 2007, at 2:01 PM, Mike Schrag wrote:
    >
    >> Still not quite fixed, actually.... But yes, this is the intent.
    >> It CLAIMS to be running the validator, but it doesn't really seem
    >> to be doing it. I'll get it fixed tonight.
    >>
    >> ms
    >>
    >> On Nov 19, 2007, at 1:58 PM, Kieran Kelleher wrote:
    >>
    >>> Oh thank you. Does this eliminate the need for this workaround
    >>> documented here:
    >>> http://wiki.objectstyle.org/confluence/display/WOL/Sticky+WOD
    >>> +error+markers+will+not+go+away
    >>>
    >>> This is a continuous stumbling block for wolips newbies that I
    >>> assist from time to time.
    >>>
    >>> On Nov 19, 2007, at 11:54 AM, mschra..bjectstyle.org wrote:
    >>>
    >>>> Author: mschrag
    >>>> Date: 2007-11-19 11:54:29 -0500 (Mon, 19 Nov 2007)
    >>>> New Revision: 4654
    >>>>
    >>>> Modified:
    >>>> trunk/woproject/wolips/core/plugins/
    >>>> org.objectstyle.wolips.wodclipse.core/java/org/objectstyle/
    >>>> wolips/wodclipse/core/builder/WodBuilder.java
    >>>> Log:
    >>>> Fix "build clean" on WO's -- I think it was not revalidating
    >>>> everything ... Force clear the validation cache.
    >>>>
    >>>> Modified: trunk/woproject/wolips/core/plugins/
    >>>> org.objectstyle.wolips.wodclipse.core/java/org/objectstyle/
    >>>> wolips/wodclipse/core/builder/WodBuilder.java
    >>>> ===================================================================
    >>>> --- trunk/woproject/wolips/core/plugins/
    >>>> org.objectstyle.wolips.wodclipse.core/java/org/objectstyle/
    >>>> wolips/wodclipse/core/builder/WodBuilder.java 2007-11-19
    >>>> 14:36:33 UTC (rev 4653)
    >>>> +++ trunk/woproject/wolips/core/plugins/
    >>>> org.objectstyle.wolips.wodclipse.core/java/org/objectstyle/
    >>>> wolips/wodclipse/core/builder/WodBuilder.java 2007-11-19
    >>>> 16:54:29 UTC (rev 4654)
    >>>>.. -152,9 +152,6 @@
    >>>> Set<IContainer> builtComponents = componentBuildCache
    >>>> (buildCache);
    >>>> IContainer woFolder = resource.getParent();
    >>>> if (!builtComponents.contains(woFolder)) {
    >>>> - if (_buildKind ==
    >>>> IncrementalProjectBuilder.FULL_BUILD) {
    >>>> - file.touch(monitor);
    >>>> - }
    >>>> validate = true;
    >>>> builtComponents.add(woFolder);
    >>>> }
    >>>>.. -163,9 +160,6 @@
    >>>> Set<IContainer> builtComponents = componentBuildCache
    >>>> (buildCache);
    >>>> IContainer woFolder = resource.getParent();
    >>>> if (!builtComponents.contains(woFolder)) {
    >>>> - if (_buildKind ==
    >>>> IncrementalProjectBuilder.FULL_BUILD) {
    >>>> - file.touch(monitor);
    >>>> - }
    >>>> validate = true;
    >>>> builtComponents.add(woFolder);
    >>>> }
    >>>>.. -211,15 +205,16 @@
    >>>> }
    >>>>
    >>>> protected void validateWodFile(IFile file, IProgressMonitor
    >>>> progressMonitor) throws CoreException, LocateException {
    >>>> - String _resourceName = file.getName();
    >>>> + String resourceName = file.getName();
    >>>> if (progressMonitor != null) {
    >>>> - progressMonitor.subTask("Locating components for " +
    >>>> _resourceName + " ...");
    >>>> + progressMonitor.subTask("Locating components for " +
    >>>> resourceName + " ...");
    >>>> }
    >>>> WodParserCache cache = WodParserCache.parser(file);
    >>>> if (progressMonitor != null) {
    >>>> progressMonitor.subTask("Building WO " + cache.getWodFile
    >>>> ().getName() + " ...");
    >>>> }
    >>>> try {
    >>>> + cache.clearValidationCache();
    >>>> cache.parseHtmlAndWodIfNecessary();
    >>>> cache.validate();
    >>>> }
    >>>>
    >>>
    >>
    >>
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue Nov 20 2007 - 12:24:18 EST