FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Build error

 
Post new topic   Reply to topic     Forum Index -> Descent
View previous topic :: View next topic  
Author Message
dreamkxd



Joined: 08 May 2007
Posts: 22

PostPosted: Fri Jul 04, 2008 12:51 am    Post subject: Build error Reply with quote

Maybe your lost some file to submit to svn server.
Because when I add a file that named StructLiteral.java and with a class StructLiteral in this file , then I can build the whole descent project! Or it's will report four error in project descent.core and module descent.internal.codeassist.EvaluationEngine.java(line 176 or line 255).
It's report that missing type StructLiteral .
Back to top
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Fri Jul 04, 2008 6:50 am    Post subject: Reply with quote

Indeed. Razz

I'll commit soon, I'm about to finish to big optimization I did these last days.

In the meantime, here it is:

Code:
package descent.internal.codeassist;

import descent.core.IEvaluationResult;
import descent.core.IStructLiteral;

public class StructLiteral implements IStructLiteral {

    private final String name;
    private final String[] names;
    private final IEvaluationResult[] values;

    public StructLiteral(String name, String[] names, IEvaluationResult[] values) {
        this.name = name;
        this.names = names;
        this.values = values;       
    }

    /*
     * (non-Javadoc)
     * @see descent.core.IStructLiteral#getName()
     */
    public String getName() {
        return name;
    }

    /*
     * (non-Javadoc)
     * @see descent.core.IStructLiteral#getNames()
     */
    public String[] getNames() {
        return names;
    }

    /*
     * (non-Javadoc)
     * @see descent.core.IStructLiteral#getValues()
     */
    public IEvaluationResult[] getValues() {
        return values;
    }
   
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("struct ");
        sb.append(name);
        sb.append(" {\n");
        for (int i = 0; i < names.length; i++) {
            if (i != 0) {
                sb.append(",\n");
            }
            sb.append("  ");
            sb.append(names[i]);
            sb.append(" = ");
            sb.append(values[i]);
        }
        sb.append("\n}");
        return sb.toString();
    }

}
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
3-S-E



Joined: 16 Jun 2008
Posts: 54

PostPosted: Fri Jul 04, 2008 8:03 am    Post subject: Reply with quote

when we can expect a new nightly build version of descent?! Will it be until Saturday night (Middle European Time)? I ask because from Sunday on I'll be heading off on vacation! Smile
Back to top
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Fri Jul 04, 2008 8:45 am    Post subject: Reply with quote

I just finished an important optimization, but I need to test it to clean it up and test it a little more. When I finish that, I'll make a new nightly build. It'll probably be tonight or tomorrow if everything goes ok.

I'm so happy it works really *fast* now, even with DWT. Smile
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Descent All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group