www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: "D" annoyances

reply tytower <towerty msn.com.au> writes:
 Take them as things to be fixed or deny their existence 
 
 Either way I will post here the stupid things I find as I go through bits and
pieces .
 The best critic is the most schooled in the subject



Linker library messages and dsss_objects Why the heck does my compile give all of this output when compiling a simple little program? Theres even a THAI buddhist in there Heres the program module test; import tango.io.Stdout; import tango.text.locale.Locale; void main(){ Locale locale = new Locale; Stdout("I have lost { } of my birds",20).newline; Stdout.formatln("I have {:C} birds on the roof",100); } which despite Lar's cryptic remarks previously does not format properly and here is what dsss spews out mystuff/test.d => mystuff/test + /home/tytower/dsss/bin/rebuild -Idsss_imports/ -I. -S./ -I/home/tytower/dsss/include/d -S/home/tytower/dsss/lib/ -I/home/tytower/dsss/include/d -S/home/tytower/dsss/lib -I/home/tytower/d/include/d -S/home/tytower/d/lib -oqdsss_objs/D mystuff/test.d -ofmystuff/test gcc dsss_objs/D/_test.o dsss_objs/D/tango.io.Stdout.o dsss_objs/D/tango.io.Print.o dsss_objs/D/tango.io.model.IBuffer.o dsss_objs/D/tango.io.model.IConduit.o dsss_objs/D/tango.text.convert.Layout.o dsss_objs/D/tango.text.convert.Utf.o dsss_objs/D/tango.text.convert.Float.o dsss_objs/D/tango.text.convert.Integer.o dsss_objs/D/tango.io.Console.o dsss_objs/D/tango.sys.Common.o dsss_objs/D/tango.sys.linux.linux.o dsss_objs/D/tango.stdc.time.o dsss_objs/D/tango.stdc.config.o dsss_objs/D/tango.stdc.stddef.o dsss_objs/D/tango.stdc.posix.dlfcn.o dsss_objs/D/tango.stdc.posix.config.o dsss_objs/D/tango.stdc.posix.fcntl.o dsss_objs/D/tango.stdc.stdint.o dsss_objs/D/tango.stdc.posix.sys.types.o dsss_objs/D/tango.stdc.posix.sys.stat.o dsss_objs/D/tango.stdc.posix.time.o dsss_objs/D/tango.stdc.posix.signal.o dsss_objs/D/tango.stdc.signal.o dsss_objs/D/tango.stdc.posix.poll.o dsss_objs/D/tango.stdc.posix.pwd.o dsss_objs/D/tango.stdc.posix.unistd.o dsss_objs/D/tango.stdc.posix.inttypes.o dsss_objs/D/tango.stdc.inttypes.o dsss_objs/D/tango.stdc.posix.sys.select.o dsss_objs/D/tango.stdc.posix.sys.time.o dsss_objs/D/tango.sys.linux.epoll.o dsss_objs/D/tango.stdc.errno.o dsss_objs/D/tango.stdc.string.o dsss_objs/D/tango.io.Buffer.o dsss_objs/D/tango.io.DeviceConduit.o dsss_objs/D/tango.io.Conduit.o dsss_objs/D/tango.text.locale.Locale.o dsss_objs/D/tango.text.locale.Core.o dsss_objs/D/tango.text.locale.Data.o dsss_objs/D/tango.time.Time.o dsss_objs/D/tango.time.chrono.Hijri.o dsss_objs/D/tango.time.chrono.Calendar.o dsss_objs/D/tango.time.chrono.Korean.o dsss_objs/D/tango.time.chrono.GregorianBased.o dsss_objs/D/tango.time.chrono.Gregorian.o dsss_objs/D/tango.time.chrono.Taiwan.o dsss_objs/D/tango.time.chrono.Hebrew.o dsss_objs/D/tango.time.chrono.Japanese.o dsss_objs/D/tango.time.chrono.ThaiBuddhist.o dsss_objs/D/tango.text.locale.Posix.o dsss_objs/D/tango.stdc.ctype.o dsss_objs/D/tango.stdc.posix.stdlib.o dsss_objs/D/tango.stdc.stdlib.o dsss_objs/D/tango.stdc.posix.sys.wait.o dsss_objs/D/tango.stdc.locale.o dsss_objs/D/tango.text.locale.Convert.o dsss_objs/D/tango.time.WallClock.o dsss_objs/D/tango.time.Clock.o -o mystuff/test -m32 -Xlinker -L./ -Xlinker -L/home/tytower/dsss/lib/ -Xlinker -L/home/tytower/dsss/lib -Xlinker -L/home/tytower/d/lib -Xlinker -L/home/tytower/dmd/bin/../lib -ltango-user-dmd -Xlinker -L/home/tytower/dmd/bin/../lib -ltango-user-dmd -ltango-base-dmd -lpthread -lm Now I suppose this is something that I have done in a dsss configuration file perhaps but DMD on the same program gives [tytower localhost tango]$ dmd mystuff/test.d gcc test.o -o test -m32 -Xlinker -L/home/tytower/dmd/bin/../lib -ltango-user-dmd -ltango-base-dmd -lpthread -lm Strange..........Ohh ,here's the output Lars--not right on either line [tytower localhost tango]$ mystuff/test I have lost { } of my birds, 20 I have {unknown format 'C'} birds on the roof
Mar 20 2008
next sibling parent reply Cosmonaut <yao gmail.com> writes:
tytower escribió:
 Take them as things to be fixed or deny their existence 

 Either way I will post here the stupid things I find as I go through bits and
pieces .
 The best critic is the most schooled in the subject



Linker library messages and dsss_objects Why the heck does my compile give all of this output when compiling a simple little program? Theres even a THAI buddhist in there Heres the program module test; import tango.io.Stdout; import tango.text.locale.Locale; void main(){ Locale locale = new Locale; Stdout("I have lost { } of my birds",20).newline; Stdout.formatln("I have {:C} birds on the roof",100); } which despite Lar's cryptic remarks previously does not format properly and here is what dsss spews out mystuff/test.d => mystuff/test + /home/tytower/dsss/bin/rebuild -Idsss_imports/ -I. -S./ -I/home/tytower/dsss/include/d -S/home/tytower/dsss/lib/ -I/home/tytower/dsss/include/d -S/home/tytower/dsss/lib -I/home/tytower/d/include/d -S/home/tytower/d/lib -oqdsss_objs/D mystuff/test.d -ofmystuff/test gcc dsss_objs/D/_test.o dsss_objs/D/tango.io.Stdout.o dsss_objs/D/tango.io.Print.o dsss_objs/D/tango.io.model.IBuffer.o dsss_objs/D/tango.io.model.IConduit.o dsss_objs/D/tango.text.convert.Layout.o dsss_objs/D/tango.text.convert.Utf.o dsss_objs/D/tango.text.convert.Float.o dsss_objs/D/tango.text.convert.Integer.o dsss_objs/D/tango.io.Console.o dsss_objs/D/tango.sys.Common.o dsss_objs/D/tango.sys.linux.linux.o dsss_objs/D/tango.stdc.time.o dsss_objs/D/tango.stdc.config.o dsss_objs/D/tango.stdc.stddef.o dsss_objs/D/tango.stdc.posix.dlfcn.o dsss_objs/D/tango.stdc.posix.config.o dsss_objs/D/tango.stdc.posix.fcntl.o dsss_objs/D/tango.stdc.stdint.o dsss_objs/D/tango.stdc.posix.sys.types.o dsss_objs/D/tango.stdc.posix.sys.stat.o dsss_objs/D/tango.stdc.posix.time.o dsss_objs/D/tango.stdc.posix.signal.o dsss_objs/D/tango.stdc.signal.o dsss_objs/D/tango.stdc.posix.poll.o dsss_objs/D/tango.stdc.posix.pwd.o dsss_objs/D/tango.stdc.posix.unistd.o dsss_objs/D/tango.stdc.posix.inttypes.o

osix.sys.wait.o dsss_objs/D/tango.stdc.locale.o dsss_objs/D/tango.text.locale.Convert.o dsss_objs/D/tango.time.WallClock.o dsss_objs/D/tango.time.Clock.o -o mystuff/test -m32 -Xlinker -L./ -Xlinker -L/home/tytower/dsss/lib/ -Xlinker -L/home/tytower/dsss/lib -Xlinker -L/home/tytower/d/lib -Xlinker -L/home/tytower/dmd/bin/../lib -ltango-user-dmd -Xlinker -L/home/tytower/dmd/bin/../lib -ltango-user-dmd -ltango-base-dmd -lpthread -lm
 
 Now I suppose this is something that I have done in a dsss configuration file
perhaps but DMD on the same program gives 
 
 [tytower localhost tango]$ dmd  mystuff/test.d
 gcc test.o -o test -m32 -Xlinker -L/home/tytower/dmd/bin/../lib
-ltango-user-dmd -ltango-base-dmd -lpthread -lm
 
 Strange..........Ohh ,here's the output Lars--not right on either line
 
 [tytower localhost tango]$ mystuff/test
 I have lost { } of my birds, 20
 I have {unknown format 'C'} birds on the roof
 

Mar 20 2008
parent reply Ty Tower <tytower hotmail.com.au> writes:
Cosmonaut wrote:

 
 Idiot.

and check the post Why do you bother to post CLOWN
Mar 20 2008
parent reply Cosmonaut <yao gmail.com> writes:
Ty Tower escribió:
 Cosmonaut wrote:
 
  
 Idiot.

and check the post Why do you bother to post CLOWN

I.D.I.O.T. Idiot.
Mar 20 2008
parent BCS <ao pathlink.com> writes:
Reply to Cosmonaut,

 I.D.I.O.T.
 
 Idiot.
 

If you are correct or not (I didn't even read any of the post) trying to correct, or even work with Ty is a frustrating and generally pointless endeavor.
Mar 20 2008
prev sibling parent reply Tower Ty <towerty msn.com.au> writes:
tytower Wrote:

 Take them as things to be fixed or deny their existence 
 
 Either way I will post here the stupid things I find as I go through bits and
pieces .




This compiler message tells me absolutely nothing as to its whereabouts !! " tango.core.Exception.IllegalArgumentException: Argument not valid " Surely you cold put a line number, or other reference so it means something?
May 05 2008
parent reply BCS <BCS pathlink.com> writes:
Tower Ty wrote:
 tytower Wrote:
 
 
Take them as things to be fixed or deny their existence 

Either way I will post here the stupid things I find as I go through bits and
pieces .




This compiler message tells me absolutely nothing as to its whereabouts !! " tango.core.Exception.IllegalArgumentException: Argument not valid " Surely you cold put a line number, or other reference so it means something?

file a bug report.
May 05 2008
parent reply "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"BCS" <BCS pathlink.com> wrote in message 
news:fvnauf$2hii$1 digitalmars.com...

 " tango.core.Exception.IllegalArgumentException: Argument not valid "

 Surely you cold put a line number, or other reference so it means 
 something?

file a bug report.

I'm not so sure. That looks like a runtime error, not a compile time error. If he's getting the error when he tries to compile something, maybe it's an error in a build tool, but it certainly does not look like a compile time error.
May 05 2008
parent reply BCS <BCS pathlink.com> writes:
Jarrett Billingsley wrote:
 "BCS" <BCS pathlink.com> wrote in message 
 news:fvnauf$2hii$1 digitalmars.com...
 
 
" tango.core.Exception.IllegalArgumentException: Argument not valid "

Surely you cold put a line number, or other reference so it means 
something?

file a bug report.

I'm not so sure. That looks like a runtime error, not a compile time error. If he's getting the error when he tries to compile something, maybe it's an error in a build tool, but it certainly does not look like a compile time error.

OK then file a tango bug report/feature request.
May 05 2008
parent reply Tower Ty <towerty msn.com.au> writes:
BCS Wrote:

 Jarrett Billingsley wrote:
 "BCS" <BCS pathlink.com> wrote in message 
 news:fvnauf$2hii$1 digitalmars.com...
 
 
" tango.core.Exception.IllegalArgumentException: Argument not valid "

Surely you cold put a line number, or other reference so it means 
something?

file a bug report.

I'm not so sure. That looks like a runtime error, not a compile time error. If he's getting the error when he tries to compile something, maybe it's an error in a build tool, but it certainly does not look like a compile time error.

OK then file a tango bug report/feature request.

Yep its a runtime error . I should have said . As you can't file a bug report without joining something and giving out emails I am using this as a bug report venue and have been for some time . If no-one chooses to do anything about them too bad . There are stacks of choices for me.
May 05 2008
next sibling parent reply "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"Tower Ty" <towerty msn.com.au> wrote in message 
news:fvovbu$18gg$1 digitalmars.com...

 Yep its a runtime error . I should have said . As you can't file a bug 
 report without joining something and giving out emails I am using this as 
 a bug report venue and have been for some time .

Then you'll have to get used to people ignoring your bug reports. Tango is maintained by a core team of about 3 people, all of whom have real lives and real jobs. They just don't have the time or manpower to collate bug reports from all over the web. Also, this is a runtime error. Try throwing _any_ exception and you'll notice that no file or line is given. In order to know where an exception occurred, either the language has to have some kind of built-in support whereby it will pass the file and line of the 'throw' statement to the exception's constructor (which it doesn't), or you have to have a traceback mechanism (which, by default, does not exist). Apparently you can get traced exceptions in Tango by using flectioned; I've never used it.
May 06 2008
parent Pedro Ferreira <ask me.pt> writes:
Jarrett Billingsley escreveu:
 "Tower Ty" <towerty msn.com.au> wrote in message 
 news:fvovbu$18gg$1 digitalmars.com...
 
 Yep its a runtime error . I should have said . As you can't file a bug 
 report without joining something and giving out emails I am using this as 
 a bug report venue and have been for some time .

Then you'll have to get used to people ignoring your bug reports. Tango is maintained by a core team of about 3 people, all of whom have real lives and real jobs. They just don't have the time or manpower to collate bug reports from all over the web. Also, this is a runtime error. Try throwing _any_ exception and you'll notice that no file or line is given. In order to know where an exception occurred, either the language has to have some kind of built-in support whereby it will pass the file and line of the 'throw' statement to the exception's constructor (which it doesn't), or you have to have a traceback mechanism (which, by default, does not exist). Apparently you can get traced exceptions in Tango by using flectioned; I've never used it.

Or use ddbg (a debugger for d) and unwind the stack when the exception is thrown
May 06 2008
prev sibling parent "Steven Schveighoffer" <schveiguy yahoo.com> writes:
"Tower Ty" wrote
 BCS Wrote:

 Jarrett Billingsley wrote:
 "BCS" <BCS pathlink.com> wrote in message
 news:fvnauf$2hii$1 digitalmars.com...


" tango.core.Exception.IllegalArgumentException: Argument not valid "

Surely you cold put a line number, or other reference so it means
something?

file a bug report.

I'm not so sure. That looks like a runtime error, not a compile time error. If he's getting the error when he tries to compile something, maybe it's an error in a build tool, but it certainly does not look like a compile time error.

OK then file a tango bug report/feature request.

Yep its a runtime error . I should have said . As you can't file a bug report without joining something and giving out emails I am using this as a bug report venue and have been for some time . If no-one chooses to do anything about them too bad . There are stacks of choices for me.

Even if you filed this as a bug report, it wouldn't be sufficient. There is no way of reproducing, no way of knowing whether you are throwing this exception in your code, or using another library, etc. More information about what you are doing is necessary. I don't think any reasonable software development team is going to take a bug report seriously if you don't take it seriously. If you would rather not use Tango, then that is a viable option. If your goal is to use Tango, put in some effort and file a ticket. Even digitalmars uses a bug reporting system, and their team pretty much doesn't do anything without a bug report there. The newsgroup is for fleshing out ideas, seeing if someone else knows how to solve a problem, asking if a bug is already known, etc. It is not a bug reporting mechanism. -Steve
May 06 2008