Gogland IDE doesn't build exe

agolangf · · 1152 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I set output directory and working directory. &#34;Run&#34; works, but no exe appears.</p> <hr/>**评论:**<br/><br/>dlsniper: <pre><p>This was a bug in the latest EAP, EAP 10, and is fixed in the nightly plugin. You can find the information on how to install the latest nightly at the end of theis article <a href="https://blog.jetbrains.com/go/2017/05/12/gogland-eap-8-is-available/" rel="nofollow">https://blog.jetbrains.com/go/2017/05/12/gogland-eap-8-is-available/</a></p></pre>HectorJ: <pre><p>I think the &#34;Run&#34; option uses the <code>go run</code> command, which isn&#39;t meant to leave a binary behind.</p> <p>Do you see a &#34;build&#34; option? Here is a screenshot (but it&#39;s from my Ubuntu) : <a href="https://i.imgur.com/nFBqhLk.png" rel="nofollow">https://i.imgur.com/nFBqhLk.png</a></p></pre>haksli: <pre><p>The &#34;Build main.go and run&#34; is just the name of the configuration. Also, it does not create an exe.</p> <p>Here&#39;s the output I get when I run.</p> <blockquote> <p>GOROOT=C:\Go</p> <p>GOPATH=C:/Users/Emil/GoglandProjects;C:/Go/src</p> <p>C:\Go\bin\go.exe build -i -o &#34;C:\Users\Emil\GoglandProjects\untitled\Build main.exe&#34; C:\Users\Emil\GoglandProjects\untitled\main.go</p> <p>&#34;C:\Program Files\JetBrains\Gogland 171.4694.61\bin\runnerw.exe&#34; &#34;C:\Users\Emil\GoglandProjects\untitled\Build main.exe&#34;</p> <p>hello world</p> <p>Process finished with exit code 0</p> </blockquote> <p>Edit: according to this it does build it.</p> <p>Edit2: But still no exe.</p></pre>HectorJ: <pre><p>Ah yeah indeed.</p> <p>Sorry, I was sure it was there because I used to do it, but I can&#39;t find the option anymore.</p></pre>shovelpost: <pre><p>Just wait till dlsniper discovers this and you&#39;ll have an answer soon.</p></pre>dlsniper: <pre><p>Done :D it&#39;s hard to keep up to date when changing continents (apparently). </p></pre>Spirit_of_Stallman: <pre><p>Do you think it&#39;s Gogland support sub?</p></pre>haksli: <pre><p>No, there is no subreddit for gogland. But Gogland is directly tied to Go. And it is the only fully fledged Go IDE.</p></pre>shovelpost: <pre><blockquote> <p>it is the only fully fledged Go IDE</p> </blockquote> <p>There&#39;s always LiteIDE.</p></pre>Spirit_of_Stallman: <pre><blockquote> <p>And it is the only fully fledged Go IDE</p> </blockquote> <p>Lol (c)(r)(tm)</p></pre>haksli: <pre><p>What ?</p></pre>DualRearWheels: <pre><p>I believe there are other IDEs people use.</p></pre>haksli: <pre><p>Right, but all of them(?) rely on plugins.</p></pre>dlsniper: <pre><p>Then what is this? It&#39;s a reddit dedicated to Go, tools around Go and so on. Gogland is one such tool. Your trolling needs some massive overhaul.</p></pre>Killing_Spark: <pre><p>Not very nice, if still correct</p></pre>dlsniper: <pre><p>How&#39;s this any different than when asking similar questions about any other Go related tool? Just wait for 1.9 to be released so that everyone can start asking why did their vim / vscode stopped working with the completion support (as seen in each Go release).</p></pre>Killing_Spark: <pre><p>Just guessing, never used gogland. But there is Maybe a Button called &#39;build&#39;. Go programs can be run without the binary beeing build to a non-temporary place. </p></pre>thebwt: <pre><p>use the terminal to run &#34;go build&#34; or &#34;go install&#34;. I set the default terminal stuff in gogland to handle it all. I&#39;m sure you could make a run configuration, but I personally don&#39;t really run my applications locally, I just verify them against goconvey.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1152 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传