Skip to content

Unresolved type for all standard Go types and functions #2918

@Samyoul

Description

@Samyoul
  • 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
}

inkedscreenshot 2018-03-16 15 21 46_li

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions