Is this possible to add FileDebug similarly ?

On Wednesday, February 17, 2016 at 9:27:17 PM UTC+5:30, Jose Maria Galeano 
wrote:
>
> It was easy forme I add a ne commnad in View -> Options -> LiteBuild 
> ...edit gosrc.xml
> and add this line
> <action id="FileBuild" img="" key="Shift+Alt+P;Alt+F12" cmd="$(GO)" 
> args="build $(EDITOR_FILE_NAME)" save="editor" output="true" codec="utf-8" 
> readline="true" work="$(EDITOR_DIR_PATH)"/>
>
> A new Action FileBuild taht is the stuff taht the editor do not has... you 
> can modify the key and add a png for the buttom
> and is teh better solution no more package build!!! for one file alone!
>
> El lunes, 18 de junio de 2012, 9:45:18 (UTC-3), Arie van Wingerden 
> escribió:
>>
>> Hi,
>>
>> when I try to BR (Build and Run) this source in Liteide:
>>
>> package main
>>>
>>> import (
>>>
>>>     "fmt"
>>>
>>>     "math"
>>>
>>> )
>>>
>>> var z float64 = 1.0
>>>
>>> func Sqrt(x float64) float64 {
>>>
>>>     zold := z
>>>
>>>     z = z - (z*z - x) / (2*z)
>>>
>>>     fmt.Println(z)
>>>
>>>     if math.Abs(z - zold) < 0.00000001 {
>>>
>>>         return z
>>>
>>>     }
>>>
>>>     return Sqrt(x)
>>>
>>> }
>>>
>>> func main() {
>>>
>>>     fmt.Println(Sqrt(2.0), math.Sqrt(2.0))
>>>
>>> }
>>>
>>>
>> I get this error:
>>
>>> <action id="Build" cmd="$(GO)" args="build $(BUILDARGS)" 
>>> work="D:/src/Go">
>>
>> >c:/go/bin/go.exe build 
>>
>> # _/D_/src/Go  
>>
>> .\sqrt.go:20: main redeclared in this block  
>>
>> previous declaration at .\hello.go:6 
>>
>> > exit code 2, process exited normally. 
>>
>> </action> 
>>
>>
>> However, when I do a separate Build and Run, no compiler errors and the 
>> program runs fine.
>>
>> A bug?
>>
>> Thx,
>>    Arie 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to