doukeyong3746487 2018-05-31 15:45
浏览 189

Golang gorename工具失败

when I renaming a symbol like this;

gorename -from '"github.com/alioygur/tatil-search/coral".ApplicationForm' -to ApplicationForm2

I am getting this error;

...
In file included from /usr/local/include/stdint.h:59:
In file included from /usr/local/include/stdint.h:59:
In file included from /usr/local/include/stdint.h:59:
In file included from /usr/local/include/stdint.h:59:
/usr/local/include/stdint.h:2:10: error: #include nested too deeply
#include <stddef.h>
         ^
/usr/local/include/stdint.h:59:11: error: #include nested too deeply
# include <stdint.h>
          ^
/usr/local/include/stdint.h:72:11: error: #include nested too deeply
# include <sys/types.h>
          ^
/usr/local/include/stdint.h:76:10: error: #include nested too deeply
#include <limits.h>
         ^
/usr/local/include/stdint.h:82:11: error: #include nested too deeply
# include <inttypes.h>
          ^
5 errors generated.
cgo failed: [go tool cgo -objdir /var/folders/03/qmcd84k176g_4p7z5bkfwszc0000gn/T/os_user_C797049444 -- -I /var/folders/03/qmcd84k176g_4p7z5bkfwszc0000gn/T/os_user_C797049444 cgo_lookup_unix.go getgrouplist_darwin.go listgroups_unix.go]: exit status 1
gorename: couldn't load packages due to errors: os/user, crypto/x509, net
  • 写回答

1条回答 默认 最新

  • dtrj74376 2019-01-25 01:29
    关注

    You can try this solution. It's work for me https://github.com/SOHU-Co/kafka-node/issues/881

    mkdir /tmp/includes
    brew doctor 2>&1 | grep "/usr/local/include" | awk '{$1=$1;print}' | xargs -I _ mv _  /tmp/includes
    
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算