-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dbugging in intellij #134
Comments
HI @notzippy, I'm using MAC, I have this configuration but it doesn't work. It seems like it's unable to found the 'dev' mode. Here is the error: In my app.conf both modes are defined and configured (dev and prod), is it possible that I need to specify somehow within the IntelliJ run configuration the path to the config file? |
@almarto did u solve the problem? I also can't get it working. I basically followed the instruction:
Output:
Debug output
Any idea? I think if we gonna solve the problem it will also help other :) |
Hi @driveddy, I'm sorry but not. I'm newly with go and I'm just using it because I wanted to learn how it works so I don't have too much time to expend looking for a solution to this problem. I don't even know if the problem is within the IntelliJ plugin or revel itself that's why I created the issue. If I have a clue about how to solve I'd create a PR but it's not the case. If someone has a deeper knowledge of this and is able to fix it I am quite sure it will be useful to many others. |
usage: revel build [import path] [target path] [run mode]? |
up |
Have you resolve this problem , i have the same problem when debug revel app with GoLand IDE |
same question while using Mac,waiting for solve.If anyone solve it ,please answer here,thanks. |
for anyone who is still struggling with run setting on mac, in the argument of the external tool setting, |
Add to docs
from revel/revel#1072
Just for other people with the same question.
Create your project, for this example i will be using canonical "revel new github.com/myaccount/my-app"
"revel run github.com/myaccount/my-app" to generate tmp/main.go - this file is needed by intellij
Shutdown the running server
Create project in intellij from existing sources
Create run configuration and in "Program arguments" add "-importPath github.com\myaccount\my-app -srcPath \src -runMode dev"
Point "File" to \src\github.com\myaccount\my-app\app\tmp\main.go
In "before launch" add "Run external tool". There:
Program: \bin\revel.exe
Paramerets: build github.com/myaccount/my-app
This works for me on Windows 8
The text was updated successfully, but these errors were encountered: