<p>I set output directory and working directory. "Run" 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 "Run" option uses the <code>go run</code> command, which isn't meant to leave a binary behind.</p>
<p>Do you see a "build" option? Here is a screenshot (but it'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 "Build main.go and run" is just the name of the configuration. Also, it does not create an exe.</p>
<p>Here'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 "C:\Users\Emil\GoglandProjects\untitled\Build main.exe" C:\Users\Emil\GoglandProjects\untitled\main.go</p>
<p>"C:\Program Files\JetBrains\Gogland 171.4694.61\bin\runnerw.exe" "C:\Users\Emil\GoglandProjects\untitled\Build main.exe"</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't find the option anymore.</p></pre>shovelpost: <pre><p>Just wait till dlsniper discovers this and you'll have an answer soon.</p></pre>dlsniper: <pre><p>Done :D it's hard to keep up to date when changing continents (apparently). </p></pre>Spirit_of_Stallman: <pre><p>Do you think it'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'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'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'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 'build'. 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 "go build" or "go install". I set the default terminal stuff in gogland to handle it all. I'm sure you could make a run configuration, but I personally don't really run my applications locally, I just verify them against goconvey.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传