Skip to content
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

Better support for GOPATH like projects. #115

Closed
mtoader opened this issue Aug 8, 2012 · 15 comments
Closed

Better support for GOPATH like projects. #115

mtoader opened this issue Aug 8, 2012 · 15 comments
Labels
Milestone

Comments

@mtoader
Copy link
Member

mtoader commented Aug 8, 2012

A local go module should be handled like an external go repository by using the GOPATH env variable appropriately.

@mtoader
Copy link
Member Author

mtoader commented Aug 19, 2012

Issue #119 is tracking inspections necessary to allow a module to have a GOPATH compatible structure.

@mtoader
Copy link
Member Author

mtoader commented Aug 19, 2012

#120 is tracking go build / install support for go modules.

@mtoader
Copy link
Member Author

mtoader commented Aug 19, 2012

#121 is tracking cleanups on how the import paths vs package names are handled.

@AlexLuya
Copy link

If testing can be done as:right click --> pick "run as go test",a lot of time to swithing between command line and InteillJ will be saved.

@mtoader
Copy link
Member Author

mtoader commented Aug 21, 2012

#122 to track easy go test command wrapping and handling.

@mtoader
Copy link
Member Author

mtoader commented Aug 21, 2012

@AlexLuya can you point me to a small project (that is compatible an external go source code repository) that has tests so i can play a little ?

@AlexLuya
Copy link

Do you need a project with test?Try this one:
https://github.com/hoisie/web
Or You can publish a testing version(can be intalled in IntelliJ),I will test it.

@AlexLuya
Copy link

What is the priority for this feature in your todo list?I think it should be highest.Currently,I will do coding in GoIDE,then switch to command line to compile and copy for testing,waste a lot of time.

@mtoader
Copy link
Member Author

mtoader commented Aug 24, 2012

This is the last feature that i want to build before the next release. While doing that if i hear about a show stopper bug i try to fix it.

Remember that this is only a tracking issue (meaning that no work is being directly on this). The work is done in the referenced tickets (that you should watch if you are impatient :)). The referenced tickets are in the comments of this issue but i'll refer them once again for your convenience here: #122, #121, #120, #119.

You should be happy to know that i started working on a runner for go test that should behave the same as run junit test is behaving for java code. It's not done yet but it's getting there. Also remember that i do this in my spare time (which is limited atm).

Mihai

@AlexLuya
Copy link

I know,thanks very much

@AlexLuya
Copy link

Owesome,test runner worked,but these is small problem,slow and keep getting warning:warning: building out-of-date packages:....installing these packages with 'go test -i mgd' will speed future tests.I googling and found this issue has been reported and fixed here:http://code.google.com/p/go/issues/detail?id=3023.Any special settings must be done?Or do I miss something?

@mtoader
Copy link
Member Author

mtoader commented Aug 28, 2012

I think you need to run the test with -i flag set first. I'll add a setting in the test runner for this. In meantime you might as well just copy the command line of the test, add a -i flag and run it inside the console. I think the next runs will behave properly after that.

@netvl
Copy link

netvl commented Sep 1, 2012

I guess I'll write here.
Currently it looks like that the plugin completely replaces GOPATH variable when running test configuration. However, I think it would be more logical if the plugin would add module directory to the end of GOPATH, so the paths that came from the system would not be affected.
Because of this, for example, I am currently unable to launch tests from inside Idea, because there are some libraries inside my system-wide GOPATH which my project uses, so when GOPATH become replaced, the project stops compiling.

@mtoader
Copy link
Member Author

mtoader commented Sep 1, 2012

I see. This makes sense.

mtoader added a commit that referenced this issue Sep 2, 2012
…appended.

Available in 0.9.10+.

Issue #115

Signed-off-by: Mihai Claudiu Toader <mtoader@gmail.com>
leojay added a commit that referenced this issue Sep 6, 2012
2. Add "GOROOT" environment variable according to project Go SDK.
3. issue #115, use semicolon as path separator on Windows.
@dlsniper
Copy link
Member

This can be closed now I guess.

@mtoader mtoader closed this as completed Dec 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants