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

Potential out-of-date instruction when working with [vscode-hello-go] #122

Open
ls-jingbo-jin opened this issue Dec 2, 2024 · 6 comments

Comments

@ls-jingbo-jin
Copy link

ls-jingbo-jin commented Dec 2, 2024

Describe the bug
Potential out-of-date instruction when working with vscode-hello-go.
Step "Press F5 to download the program and run it" doesn't work.

Getting error:

  1. No files selected for download.
  2. go -o hello flag provided but not defined: -o

To Reproduce
Steps to reproduce the behavior:
Following the steps described here.

Expected behavior
It should be able to upload to EV3 and execute the demo program successfully.

Screenshots
error 1
error

recording.mov

Desktop (please complete the following information):

  • MacOs Sonoma Version 14.6.1
  • Vs code: 1.95.3
  • Go: go1.23.3 darwin/arm64
  • EV3DEV: ev3dev-stretch
  • EV3 wifi connection mode, can successfully ssh and connect with vscode-ev3dev-browser

PS: I am a GO learner, I made sure my current VS code setup can run go successfully, like this one.
Files under .vscode are unchanged, eg: using default launch.json and settings.json.

Additional context
I recently came across this fascinating extension project. The functionality enabling EV3 owners to code, run, and debug in a live IDE environment is truly exciting.
I understand that neither vscode-hello-go nor this project is under active development, but I’m eager to test it out nonetheless.
My current suspicions are: 1. The Go version might not be supported. 2. VS code security setting.
Any assistance or guidance would be greatly appreciated 🙏!

@dlech
Copy link
Member

dlech commented Dec 15, 2024

Does it work if you change the command to go build -o hello?

@ls-jingbo-jin
Copy link
Author

Does it work if you change the command to go build -o hello?

It works now and successfully got complied:
Screenshot 2025-01-13 at 23 28 58

However the F5 press to deploy still ends up error:

 *  Executing task: go -o hello 

flag provided but not defined: -o
Go is a tool for managing Go source code.
Screenshot 2025-01-13 at 23 30 08

@dlech
Copy link
Member

dlech commented Jan 13, 2025

Did you run the command manually or did you modify .vscode/tasks.json?

@ls-jingbo-jin
Copy link
Author

Did you run the command manually or did you modify .vscode/tasks.json?

I ran the command manually.

After your comment, I also tried editing the original .vscode/tasks.json to below:

 "args": [
        "build", "-o", "hello"
 ]

Which fixed the compiling issue, should I create a PR to apply this?

However the uploading to ev3 part is still not working, despite I updated launch.json to an existing folder already:
Screenshot 2025-01-14 at 17 16 08

@dlech
Copy link
Member

dlech commented Jan 14, 2025

I don't think you should change ${workspaceFolderBasename} to test2. I don't see any folder with that name, so not surprising that it says it doesn't exist.

@ls-jingbo-jin
Copy link
Author

ls-jingbo-jin commented Jan 15, 2025

I don't think you should change ${workspaceFolderBasename} to test2. I don't see any folder with that name, so not surprising that it says it doesn't exist.

My understanding is this file path is the ev3 file path where we want to upload the program to. Is that not?

file path

If I leave it unchanged, keep using ${workspaceFolderBasename}, it also doesn't work.

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