有效的方法以红色“未解决的参考"突出显示 [英] Valid methods in being highlighted in red 'Unresolved Reference'

查看:132
本文介绍了有效的方法以红色“未解决的参考"突出显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何解决这个问题?该程序有效.但是Gogland中的方法以红色突出显示.添加了Qt 5.8版.

How to solve this problem? The program works. But the methods in Gogland are highlighted in red. Qt version 5.8 is added.

Gogland (1.0 Preview) 1.0 EAP
Build #GO-171.4694.61, built on June 27, 2017
Gogland EAP User
Expiration date: September 25, 2017
JRE: 1.8.0_112-release-736-b21 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.8.0-58-generic


batis@dev:~$ printenv | grep GO
GOROOT=/usr/lib/go-1.8/
GOPATH=/home/batis/gocode/

package main

import (
    "os"
    "github.com/therecipe/qt/widgets"
)

func main() {
    widgets.NewQApplication(len(os.Args), os.Args)

    //create a window
    window := widgets.NewQMainWindow(nil, 0)

    ......

    widgets.QApplication_Exec()
}

推荐答案

方法是在Gogland未索引的大型生成文件中定义的.要更改限制,您应该更改

The methods are defined in a big generated file that is not indexed by Gogland. To change the limit you should change idea.max.intellisense.filesize.

为此,请通过Help | Edit Custom Properties菜单打开自定义属性文件,并添加如下内容:idea.max.intellisense.filesize=4500限制为4.5 MB.大小以千字节为单位.

To do this, open custom properties file via Help | Edit Custom Properties menu and add something like this: idea.max.intellisense.filesize=4500 for 4.5 MB limit. The size is in Kilobytes.

请谨慎使用,索引大文件可能会严重影响索引更新速度.

Please use carefully, indexing large files may influence index update speed dramatically.

这篇关于有效的方法以红色“未解决的参考"突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆