digitalmars.D.dwt - Errors building dwt with latest tango
- Bill Baxter <dnewsgroup billbaxter.com> Jun 30 2008
- Frank Benoit <keinfarbton googlemail.com> Jun 30 2008
- Bill Baxter <dnewsgroup billbaxter.com> Jun 30 2008
- Lars Ivar Igesund <larsivar igesund.net> Jun 30 2008
- Bill Baxter <dnewsgroup billbaxter.com> Jun 30 2008
- torhu <no spam.invalid> Jun 30 2008
- Bill Baxter <dnewsgroup billbaxter.com> Jun 30 2008
- Frank Benoit <keinfarbton googlemail.com> Jun 30 2008
- Tower Ty <towerty msn.com.au> Jun 30 2008
- Bill Baxter <dnewsgroup billbaxter.com> Jun 30 2008
- Bill Baxter <dnewsgroup billbaxter.com> Jun 30 2008
- Frank Benoit <keinfarbton googlemail.com> Jul 01 2008
This is with the latest SVN tango Don't have time to look into these at the moment, but maybe later tonight. dwt\dwthelper\utils.d(152): Error: undefined identifier module Integer.Style dwt\dwthelper\utils.d(152): Error: no property 'Hex' for type 'void' dwt\dwthelper\utils.d(152): function tango.text.convert.Integer.toString (long,char[]) does not match parameter types (int,int) dwt\dwthelper\utils.d(152): Error: cannot implicitly convert expression (1) of type int to char[] dwt\dwthelper\utils.d(152): Error: cannot cast int to char[] dwt\dwthelper\utils.d(152): Error: integral constant must be scalar type, not char[] dwt\dwthelper\utils.d(156): Error: undefined identifier module Integer.Style dwt\dwthelper\utils.d(156): Error: no property 'Octal' for type 'void' dwt\dwthelper\utils.d(156): function tango.text.convert.Integer.toString (long,char[]) does not match parameter types (int,int) dwt\dwthelper\utils.d(156): Error: cannot implicitly convert expression (1) of type int to char[] dwt\dwthelper\utils.d(156): Error: cannot cast int to char[] dwt\dwthelper\utils.d(156): Error: integral constant must be scalar type, not char[] dwt\dwthelper\utils.d(160): Error: undefined identifier module Integer.Style dwt\dwthelper\utils.d(160): Error: no property 'Binary' for type 'void' dwt\dwthelper\utils.d(160): function tango.text.convert.Integer.toString (long,char[]) does not match parameter types (int,int) dwt\dwthelper\utils.d(160): Error: cannot implicitly convert expression (1) of type int to char[] dwt\dwthelper\utils.d(160): Error: cannot cast int to char[] dwt\dwthelper\utils.d(160): Error: integral constant must be scalar type, not char[]
Jun 30 2008
Bill Baxter schrieb:This is with the latest SVN tango Don't have time to look into these at the moment, but maybe later tonight.
It is much easier to support the tango release instead of tango svn trunk. Hence the errors. I have fixes for them locally, but did not commit them into the public repository, waiting for the next tango release.
Jun 30 2008
Frank Benoit wrote:Bill Baxter schrieb:This is with the latest SVN tango Don't have time to look into these at the moment, but maybe later tonight.
It is much easier to support the tango release instead of tango svn trunk. Hence the errors. I have fixes for them locally, but did not commit them into the public repository, waiting for the next tango release.
Bummer. I guess I'll just try to figure out how to roll back the updates I made. -bb -- hoping "dsss net install tango" installs latest release version
Jun 30 2008
Bill Baxter wrote:Frank Benoit wrote:Bill Baxter schrieb:This is with the latest SVN tango Don't have time to look into these at the moment, but maybe later tonight.
It is much easier to support the tango release instead of tango svn trunk. Hence the errors. I have fixes for them locally, but did not commit them into the public repository, waiting for the next tango release.
Bummer. I guess I'll just try to figure out how to roll back the updates I made. -bb -- hoping "dsss net install tango" installs latest release version
It didn't use to ... -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Jun 30 2008
Lars Ivar Igesund wrote:Bill Baxter wrote:Frank Benoit wrote:Bill Baxter schrieb:This is with the latest SVN tango Don't have time to look into these at the moment, but maybe later tonight.
trunk. Hence the errors. I have fixes for them locally, but did not commit them into the public repository, waiting for the next tango release.
updates I made. -bb -- hoping "dsss net install tango" installs latest release version
It didn't use to ...
I'm not sure what it did, but it gave lots of errors. Like: ..\tango\text\convert\TimeStamp.d(145): template tango.text.Util.layout(T) does not match any template declaration ..\tango\text\convert\TimeStamp.d(145): template tango.text.Util.layout(T) cannot deduce template function from argument types (wchar[],char[25u],wchar[],wchar[],wchar[],wchar[],wchar[],wchar[],wchar[]) And: dmd -c -inline -release -O -oftango-math-Bessel.obj ..\tango\math\Bessel.d F:\usr\pkg\d\dsss\tmp\DSSS_tango\tango\tango\lib\..\tango\math\IEEE.d(515): undefined identifier 'st'
Jun 30 2008
Bill Baxter wrote:Lars Ivar Igesund wrote:Bill Baxter wrote:Frank Benoit wrote:Bill Baxter schrieb:This is with the latest SVN tango Don't have time to look into these at the moment, but maybe later tonight.
trunk. Hence the errors. I have fixes for them locally, but did not commit them into the public repository, waiting for the next tango release.
updates I made. -bb -- hoping "dsss net install tango" installs latest release version
It didn't use to ...
I'm not sure what it did, but it gave lots of errors. Like: ...\tango\text\convert\TimeStamp.d(145): template tango.text.Util.layout(T) does not match any template declaration ...\tango\text\convert\TimeStamp.d(145): template tango.text.Util.layout(T) cannot deduce template function from argument types (wchar[],char[25u],wchar[],wchar[],wchar[],wchar[],wchar[],wchar[],wchar[]) And: dmd -c -inline -release -O -oftango-math-Bessel.obj ..\tango\math\Bessel.d F:\usr\pkg\d\dsss\tmp\DSSS_tango\tango\tango\lib\..\tango\math\IEEE.d(515): undefined identifier 'st'
I think both errors will go away if you go back to 1.027. Are you sure you're using tango 0.99.6, and not an older version?
Jun 30 2008
Frank Benoit wrote:Bill Baxter schrieb:This is with the latest SVN tango Don't have time to look into these at the moment, but maybe later tonight.
It is much easier to support the tango release instead of tango svn trunk. Hence the errors. I have fixes for them locally, but did not commit them into the public repository, waiting for the next tango release.
Any chance you could send me the hg bundle of those changes? --bb
Jun 30 2008
Bill Baxter schrieb:Any chance you could send me the hg bundle of those changes? --bb
Sure. But i have them not here at the moment, so it will be tomorrow. Sorry for that.
Jun 30 2008
Tower Ty wrote:About time you guys sorted out the schemozzle.
It is sorted out for people using the officially recommended and released versions of things. I'm not, so I get what I deserve. --bb
Jun 30 2008
Frank Benoit wrote:Bill Baxter schrieb:Any chance you could send me the hg bundle of those changes? --bb
Sure. But i have them not here at the moment, so it will be tomorrow. Sorry for that.
Ok, well the fix doesn't seem to be complicated, so the issue was just if I use your changeset then I don't have to worry about merge conflicts later. But I guess when that time comes I'll just do a "revert". I updated the up and coming breaking tango changes page with info on how to fix these issues. (http://www.dsource.org/projects/tango/wiki/0_99_7_BreakingChanges) --bb
Jun 30 2008
Yes, here is the fix i used for dwt-linux, i hope this works from the web
newsreader.. :
diff -r cc1d3de0e80b dwt/custom/DefaultContent.d
--- a/dwt/custom/DefaultContent.d Tue Jun 24 22:12:18 2008 +0200
+++ b/dwt/custom/DefaultContent.d Tue Jul 01 08:35:34 2008 +0200
-23,7 +23,7 import dwt.custom.StyledText;
import dwt.custom.StyledText;
import dwt.dwthelper.utils;
-static import tango.io.FileConst;
+static import tango.io.model.IFile;
static import tango.text.Text;
alias tango.text.Text.Text!(char) StringBuffer;
diff -r cc1d3de0e80b dwt/custom/StyledText.d
--- a/dwt/custom/StyledText.d Tue Jun 24 22:12:18 2008 +0200
+++ b/dwt/custom/StyledText.d Tue Jul 01 08:35:34 2008 +0200
-85,7 +85,7 import dwt.dwthelper.Runnable;
static import tango.text.Text;
static import tango.text.Util;
-static import tango.io.FileConst;
+static import tango.io.model.IFile;
static import tango.text.convert.Utf;
import tango.util.Convert;
import dwt.dwthelper.utils;
diff -r cc1d3de0e80b dwt/dwthelper/File.d
--- a/dwt/dwthelper/File.d Tue Jun 24 22:12:18 2008 +0200
+++ b/dwt/dwthelper/File.d Tue Jul 01 08:35:34 2008 +0200
-5,7 +5,7 module dwt.dwthelper.File;
import dwt.dwthelper.utils;
-static import tango.io.FileConst;
+static import tango.io.model.IFile;
static import tango.io.FilePath;
static import tango.io.FileSystem;
-19,10 +19,10 public class File {
private tango.io.FilePath.FilePath mFilePath;
static this(){
- separator = tango.io.FileConst.FileConst.PathSeparatorString;
- separatorChar = tango.io.FileConst.FileConst.PathSeparatorChar;
- pathSeparator = tango.io.FileConst.FileConst.SystemPathString;
- pathSeparatorChar = tango.io.FileConst.FileConst.SystemPathChar;
+ separator = tango.io.model.IFile.FileConst.PathSeparatorString;
+ separatorChar = tango.io.model.IFile.FileConst.PathSeparatorChar;
+ pathSeparator = tango.io.model.IFile.FileConst.SystemPathString;
+ pathSeparatorChar = tango.io.model.IFile.FileConst.SystemPathChar;
}
public this ( String pathname ){
diff -r cc1d3de0e80b dwt/dwthelper/InflaterInputStream.d
--- a/dwt/dwthelper/InflaterInputStream.d Tue Jun 24 22:12:18 2008 +0200
+++ b/dwt/dwthelper/InflaterInputStream.d Tue Jul 01 08:35:34 2008 +0200
-6,6 +6,7 public import dwt.dwthelper.InputStream;
public import dwt.dwthelper.InputStream;
import dwt.dwthelper.utils;
import tango.io.Stdout;
+import tango.io.Conduit;
import tango.io.compress.ZlibStream;
class InputStreamWrapper : tango.io.model.IConduit.InputStream {
-20,6 +21,10 class InputStreamWrapper : tango.io.mode
int res = istr.read( cast(byte[])dst );
return res;
}
+ void[] load (void[] dst = null) {
+ return Conduit.load (this, dst);
+ }
+
tango.io.model.IConduit.InputStream clear (){
return this;
diff -r cc1d3de0e80b dwt/dwthelper/utils.d
--- a/dwt/dwthelper/utils.d Tue Jun 24 22:12:18 2008 +0200
+++ b/dwt/dwthelper/utils.d Tue Jul 01 08:35:34 2008 +0200
-149,15 +149,15 class Integer : ValueWrapperT!(int) {
}
public static String toHexString( int i ){
- return tango.text.convert.Integer.toString(i,
tango.text.convert.Integer.Style.Hex );
+ return tango.text.convert.Integer.toString(i, "x" );
}
public static String toOctalString( int i ){
- return tango.text.convert.Integer.toString(i,
tango.text.convert.Integer.Style.Octal );
+ return tango.text.convert.Integer.toString(i, "o" );
}
public static String toBinaryString( int i ){
- return tango.text.convert.Integer.toString(i,
tango.text.convert.Integer.Style.Binary );
+ return tango.text.convert.Integer.toString(i, "b" );
}
public static String toString( int i ){
-637,12 +637,10 static String toHex(uint value, bool pre
static String toHex(uint value, bool prefix = true, int radix = 8){
return tango.text.convert.Integer.toString(
value,
- radix is 10 ? tango.text.convert.Integer.Style.Signed :
- radix is 8 ? tango.text.convert.Integer.Style.Octal :
- radix is 16 ? tango.text.convert.Integer.Style.Hex :
- tango.text.convert.Integer.Style.Signed,
- prefix ? tango.text.convert.Integer.Flags.Prefix :
tango.text.convert.Integer.Flags.None
- );
+ radix is 10 ? "d" :
+ radix is 8 ? "o" :
+ radix is 16 ? "x" :
+ "d" );
}
class RuntimeException : Exception {
diff -r cc1d3de0e80b dwt/widgets/DirectoryDialog.d
--- a/dwt/widgets/DirectoryDialog.d Tue Jun 24 22:12:18 2008 +0200
+++ b/dwt/widgets/DirectoryDialog.d Tue Jul 01 08:35:34 2008 +0200
-23,7 +23,7 import dwt.widgets.Shell;
import dwt.widgets.Shell;
import dwt.widgets.Display;
-static import tango.io.FileConst;
+static import tango.io.model.IFile;
static import tango.text.Util;
/**
diff -r cc1d3de0e80b dwt/widgets/FileDialog.d
--- a/dwt/widgets/FileDialog.d Tue Jun 24 22:12:18 2008 +0200
+++ b/dwt/widgets/FileDialog.d Tue Jul 01 08:35:34 2008 +0200
-22,7 +22,7 import dwt.widgets.Display;
import dwt.widgets.Display;
import dwt.dwthelper.utils;
-static import tango.io.FileConst;
+static import tango.io.model.IFile;
static import tango.text.Util;
static import tango.text.Text;
Jul 01 2008









torhu <no spam.invalid> 