2

goland 编辑器没有渲染出错误,运行时报错 undefined

 2 years ago
source link: https://www.v2ex.com/t/794415
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  Go

goland 编辑器没有渲染出错误,运行时报错 undefined

  iyear · 1 小时 11 分钟前 · 120 次点击

windows 64 位

就是编辑器内没有报错(变红),但是运行时报错 undefined

手动调用过 go build 一样的错误,就算把这里的代码移走,别的地方一样报 undefined

goland 编译为目录编译,感觉不是这个问题,以前都没问题,goland 重启过了,还是报错

感觉是包管理的问题

我都没怎么动代码,过了一会儿再来运行一下就这样了

网上搜遍了,好像没有这种情况..

12

3 条回复    2021-08-08 16:26:43 +08:00

iyear

iyear   59 分钟前

已解决..在同包的另一个地方引入了个 'C'包,没看到.

iseki

iseki   47 分钟前

这码打的,你起码把 gcc 露出来

iyear

iyear   45 分钟前

@iseki #2 挡的都只是文件名.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK