dongtu7205 2019-06-12 22:31
浏览 19

基于Docker的应用程序的IDE依赖关系和自动完成功能

I found this StackOverflow question but it wasn't answered so I ask it again.

I have a Go project running inside a Docker container. I got my code running in the container, and I expose it via HTTP.
The problem I have is with IntelliJ and dependencies auto-completion. Since all dependencies I have are managed by docker and downloaded inside the container, IntelliJ have no idea how to auto-complete the code and furthermore, it has no idea what methods are available so my code is full of errors in IntelliJ but runs fine in the container.

Is there a way to configure IntelliJ to bind it to the container sources? Maybe with docker volumes, but I would have to setup GOPATH, etc.. on my machine, which I would prefer to avoid.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 数学建模招标中位数问题
    • ¥15 phython路径名过长报错 不知道什么问题
    • ¥15 深度学习中模型转换该怎么实现
    • ¥15 HLs设计手写数字识别程序编译通不过
    • ¥15 Stata外部命令安装问题求帮助!
    • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
    • ¥15 TYPCE母转母,插入认方向
    • ¥15 如何用python向钉钉机器人发送可以放大的图片?
    • ¥15 matlab(相关搜索:紧聚焦)
    • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计