Skip to content

Use go write leetcode cant read my GOPATH #248

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

Closed
hantmac opened this issue Apr 1, 2019 · 3 comments
Closed

Use go write leetcode cant read my GOPATH #248

hantmac opened this issue Apr 1, 2019 · 3 comments

Comments

@hantmac
Copy link

hantmac commented Apr 1, 2019

🐛 Bug Report

A clear and concise description of what the bug is.
I use golang write leetcode, but report an error ,
屏幕快照 2019-04-01 14 04 29
BUT,I have set the gopath for vscode,
屏幕快照 2019-04-01 14 04 46

Expected behavior

A clear and concise description of what you expected to happen.
Get my gopath correctly.

Your Environment

  • os: mac os
  • extension settings: "leetcode.defaultLanguage": "golang",
  • nodejs version:v8.12.0
  • vscode version:1.32.3
  • extension version:0.13.1
@jdneo
Copy link
Member

jdneo commented Apr 1, 2019

This compile error is reported by leetcode.com, the extension will not compile your code locally.

Please make sure your solution could run correctly in leetcode.com

@jdneo jdneo added the need more info Further information is requested label Apr 1, 2019
@hantmac
Copy link
Author

hantmac commented Apr 1, 2019

This compile error is reported by leetcode.com, the extension will not compile your code locally.

Please make sure your solution could run correctly in leetcode.com

Yeah,it is reported by leetcode.com, this is the first time I use go to write leetcode, should I config GOPATH for leetcode.com?? So amazing!
I can Definitely confirm the package github.com/golang-collections/collections/stack, is in my GOROOT.It still report this error.
I am confusing, anyway ,thanks for your timely reply.

@no-response no-response bot removed the need more info Further information is requested label Apr 1, 2019
@jdneo
Copy link
Member

jdneo commented Apr 1, 2019

Hmm, I don't think the leetcode.com should honor the GOPATH since the judge env is totally different from the users' local env.

You can simply check the discussion pages to find out what other users' golang answer looks like, and write your answer in that way.

Closing this issue since this is out of the scope of the extension.

Thank you for trying the extension, happy coding!

@jdneo jdneo closed this as completed Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants