-
Notifications
You must be signed in to change notification settings - Fork 567
Open
Description
-
Plugin version (or commit hash):
0.12.1799
-
IDE name and version:
Intellij IDEA 2016.2.5
-
Java version:
8
-
OS name and version:
Windows 10 Pro
-
What happens?
Auto complete and error checking don't work correctly, all of the standard Go primitive types and functions are not recognised.
Have I made an error with the set up of this plugin?
package client
import (
"context"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethereum/go-ethereum/rpc"
"log"
"math/big"
"strconv"
)
type Client struct {
handlesErrors bool
EtherClient *ethclient.Client
RpcClient *rpc.Client
}
func Dial(rawUrl string, handlesErrors bool) (*Client, error) {
// Make connection to Ethereum client
ethClient, err := ethclient.Dial(rawUrl)
// TODO Handle errors in handler
if err != nil {
log.Fatalf("Failed to connect to the Ethereum network: %v", err)
}
// Make connection to the RPC client
newRpcClient, err := rpc.Dial(rawUrl)
// TODO Handle errors in handler
if err != nil {
log.Fatalf("Failed to connect to the Ethereum network: %v", err)
}
return &Client{
handlesErrors: handlesErrors,
EtherClient: ethClient,
RpcClient: newRpcClient,
}, err
}
Metadata
Metadata
Assignees
Labels
No labels