August 14, 2005
Carlos Santander escribió:
> 
> And, is there something special needed to run the generated application? It's not showing anything in the console when I try to run it.
> 

Small update: that wasn't completely true. Nothing's written when I try to do din.readLine() or scanf() or getchar(), etc. If I just printf, writef, dout.writef, etc., it works. Has anyone else noticed this?

-- 
Carlos Santander Bernal
August 14, 2005
On Sun, 14 Aug 2005 02:14:28 +1100, Carlos Santander <csantander619@gmail.com> wrote:

> Ilya Zaitseff escribió:
>>  First. add DProjectBuilder to your project - In prject context on project  choose Toggle D Nature.
>>  Second, turn off automatic build - in Project menu.
>>  Third, use Ctrl+B :)
>
> Also, would it be possible to double-click in a Console line after a build and go to the file and line number where the error is?
>

Errors are listed on the Problems tab.
And, yes, the compiler output (if showed) is tracked.
If you want to see DMD output in console, check Preferences->Blackbird->D Compiler->Show compiler output in console.

>
> And, is there something special needed to run the generated application? It's not showing anything in the console when I try to run it.
>

There is standard Eclipse launch configuration named D Application.
After tuning it, use standard shrtcut Ctrl+F11.
August 14, 2005
On Sun, 14 Aug 2005 02:03:52 +1100, Carlos Santander <csantander619@gmail.com> wrote:

> Ilya Zaitseff escribió:
>>  First. add DProjectBuilder to your project - In prject context on project  choose Toggle D Nature.
>>  Second, turn off automatic build - in Project menu.
>>  Third, use Ctrl+B :)
>
> Thanks. Now, the problems.
>
> I can't seem to be able to use gdc. If I use gdmd, I get:
>
> Can't exec "gdc": No such file or directory at /usr/local/bin/gdmd line 75.
> Use of uninitialized value in scalar chomp at /usr/local/bin/gdmd line 76.
> Use of uninitialized value in pattern match (m//) at /usr/local/bin/gdmd
> line 77.
> Can't exec "gdc": No such file or directory at /usr/local/bin/gdmd line 80.
> Use of uninitialized value in scalar chomp at /usr/local/bin/gdmd line 81.
> Can't exec "gdc": No such file or directory at /usr/local/bin/gdmd line 262.
>
> When I use gdc, it works, but I don't know how to specify the output file. What variable can I use?
>
> Also, when I use build, I get "Error: The compiler '/opt/gdc/bin/gdc'
> was not found.", but when I type the command in a terminal, it works.
>
> Finally, Eclipse doesn't detect if the compilation has failed, so to rebuild I have to Clean and then Build. Is there a way this can be changed?
>

Looks like linux-specific problems.
Do you try it on windows box?

Blackbird just executes compiler with arguments from the project folder.
Various compiler preferences can be found in Preferences->Blackbird->D Compiler.
August 14, 2005
On Sun, 14 Aug 2005 12:46:28 +1100, Carlos Santander <csantander619@gmail.com> wrote:

> Carlos Santander escribió:
>>  And, is there something special needed to run the generated application? It's not showing anything in the console when I try to run it.
>>
>
> Small update: that wasn't completely true. Nothing's written when I try to do din.readLine() or scanf() or getchar(), etc. If I just printf, writef, dout.writef, etc., it works. Has anyone else noticed this?
>

I dont completely understand you.

Try it on the windows box.
August 14, 2005
On Sun, 14 Aug 2005 01:19:32 +1100, Shawn Liu <liuxuhong.cn@gmail.com> wrote:

> outline break at "finally".
>
> Outline break at a try.. catch.. finally block.
>
> Dose anybody encounter this or just in my environment?
>
>
> "Ilya Zaitseff" <sark7@mail333.com> wrote :op.svcihwrhaaezs2@robingood...
>> Ok, another beta release :)
>>
>> http://sark7.nm.ru/stuff/blackbird_120.zip
>>
>> NOTE: This beta release DOES NOT include blackbird.antlr plugin. Take it
>> from previous releases.
>>
>> Changes:
>>
>> blackbird.editor :
>>   fixed minor grammar bugs, updated to 0.129 strings postfixes;
>>   fixed problem with non-ascii identifiers;
>>   added source commenting/uncommenting (Ctrl+/),
>>     smart word next/prev jump, smart home/end jump as in JDT,
>>     new preference settings
>>
>> blackbird.builder :
>>   added experimental demangler of undefined symbols in link errors,
>>   new preference settings
>>
>> I don't know how stable is 1.2... anyway, blackbird needs refactoring :)
>
>

Fixed.
August 15, 2005
One issue with smart home/end. It is little unintuitive that if cursor stays on the line with tabs only in the middle pressing 'end' causes it to return to the line beginning. E.g.

[tab][tab]|[tab]
          ^

After pressing 'end' the image is following

|[tab][tab][tab]
^

Is this expected? If yes I think it is not very convenient otherwise this is a bug.

-- 
Victor (aka nail) Nakoryakov
nail-mail<at>mail<dot>ru

Krasnoznamensk, Moscow, Russia
August 15, 2005
On Tue, 16 Aug 2005 02:38:13 +1100, Victor Nakoryakov <nail-mail@mail.ru> wrote:

> One issue with smart home/end. It is little unintuitive that if cursor stays on the line with tabs only in the middle pressing 'end' causes it to return to the line beginning. E.g.
>
> [tab][tab]|[tab]
>            ^
>
> After pressing 'end' the image is following
>
> |[tab][tab][tab]
> ^
>
> Is this expected? If yes I think it is not very convenient otherwise this is a bug.
>

It is intended behavior. First 'end' jumps to last non-whitespace symbol. If the caret in the beginning of line, is jumps to any last symbol - so just press 'end' 2 times in your case :)

I can fix it, but such behavior is JDT-compliant, so I think it is a "good thing" (tm) :)
August 16, 2005
Ilya Zaitseff wrote:
> On Tue, 16 Aug 2005 02:38:13 +1100, Victor Nakoryakov <nail-mail@mail.ru>  wrote:
> 
>> One issue with smart home/end. It is little unintuitive that if cursor  stays on the line with tabs only in the middle pressing 'end' causes it  to return to the line beginning. E.g.
>>
>> [tab][tab]|[tab]
>>            ^
>>
>> After pressing 'end' the image is following
>>
>> |[tab][tab][tab]
>> ^
>>
>> Is this expected? If yes I think it is not very convenient otherwise  this is a bug.
>>
> 
> It is intended behavior. First 'end' jumps to last non-whitespace symbol.  If the caret in the beginning of line, is jumps to any last symbol - so  just press 'end' 2 times in your case :)
> 
> I can fix it, but such behavior is JDT-compliant, so I think it is a "good  thing" (tm) :)

Maybe, maybe... But it would be so great to add few checkboxes in preference page that will allow to control smart behaviour. JDT style 'end' / MSVC style 'end'. Treat IdentifierInCamlCase as many tokens while ctrl+arrows pressing / treat as one.

-- 
Victor (aka nail) Nakoryakov
nail-mail<at>mail<dot>ru

Krasnoznamensk, Moscow, Russia
August 18, 2005
I'll reply here to all of your posts.

Ilya Zaitseff escribió:
> 
> Errors are listed on the Problems tab.
> And, yes, the compiler output (if showed) is tracked.
> If you want to see DMD output in console, check Preferences->Blackbird->D  Compiler->Show compiler output in console.
>

I can see that. I was asking for the possibility to double-click on the error produced by the compiler and go to the corresponding line and file.

> 
> There is standard Eclipse launch configuration named D Application.
> After tuning it, use standard shrtcut Ctrl+F11.

Ok. But I have to configure this for every application I want to launch. Can this be automated?

> Looks like linux-specific problems.
> Do you try it on windows box? 

I'm on Mac and I don't have access to Windows or Linux ATM.

Regarding console output, take this:

//------------------------------------------
import std.stdio;

void main()
{
	writefln("hi");
	getchar(); // 6
}
//------------------------------------------

If line 6 is commented, and I run the application, I see "hi" in the console output, but if I uncomment it, nothing is shown, and the application keeps running until I manually end it.

One more thing: the Outline doesn't show what it should in the presence of overloaded templates. It only shows the first one.

-- 
Carlos Santander Bernal
August 19, 2005
On Fri, 19 Aug 2005 04:13:22 +1100, Carlos Santander <csantander619@gmail.com> wrote:

> I'll reply here to all of your posts.
>
> Ilya Zaitseff escribió:
>>  Errors are listed on the Problems tab.
>> And, yes, the compiler output (if showed) is tracked.
>> If you want to see DMD output in console, check Preferences->Blackbird->D  Compiler->Show compiler output in console.
>>
>
> I can see that. I was asking for the possibility to double-click on the error produced by the compiler and go to the corresponding line and file.

?
Such possibility already exists by default.
Did you try to double-click on the error? Eclipse must go to corresponding location.

One thing: Eclipse can turn on filtering of D errors - turn it off in Problems->Filters.

>>  There is standard Eclipse launch configuration named D Application.
>> After tuning it, use standard shrtcut Ctrl+F11.
>
> Ok. But I have to configure this for every application I want to launch. Can this be automated?

I dont know what you are asking for.
D Application configuration is just like any other Eclipse run configurations (in JDT, CDT etc)

>> Looks like linux-specific problems.
>> Do you try it on windows box?
>
> I'm on Mac and I don't have access to Windows or Linux ATM.
>
> Regarding console output, take this:
>
> //------------------------------------------
> import std.stdio;
>
> void main()
> {
> 	writefln("hi");
> 	getchar(); // 6
> }
> //------------------------------------------
>
> If line 6 is commented, and I run the application, I see "hi" in the console output, but if I uncomment it, nothing is shown, and the application keeps running until I manually end it.

This is due to writefln() do not performs flushing.
Try to insert flushall() after writefln().

> One more thing: the Outline doesn't show what it should in the presence of overloaded templates. It only shows the first one.

Did you mean:

template A(X, Y) {
}

template A(X) {
}

?

Outline works correctly for me.