Page 1 of 1

Intellisense doesn't trigger in Go.

Posted: Mon May 28, 2012 7:16 pm
by gheorghe
The function Sqrt in package math doesn't trigger under the following code:

package main

import (
"fmt"
"math"
)

func main() {
alpha := []int{1, 3, 4}
x := float64(alpha[0]) * math.Sqrt(2.0)
fmt.Printf("%v\n", x)
}

although the code compiles and runs successfully.

Posted: Tue May 29, 2012 2:04 am
by jussij
Just to confirm the bug you are seeing:

Code: Select all

func main() { 
    alpha := []int{1, 3, 4} 
    x := float64(alpha[0]) * math.
                                 ^
                                 this fails to trigger **
    math.
        ^
        this triggers just fine **
}

This is definitely a bug :(

I will look to get this fixed for the next beta.

Thanks for the bug report.

Cheers Jussi

Posted: Tue May 29, 2012 12:27 pm
by jussij
This bug has been fixed in the latest Zeus release.

The full installer for the new beta is found here: http://www.zeusedit.com/download.html

Cheers Jussi