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

West Build Zephyr #1

Open
ryangenz opened this issue Dec 4, 2020 · 2 comments
Open

West Build Zephyr #1

ryangenz opened this issue Dec 4, 2020 · 2 comments

Comments

@ryangenz
Copy link

ryangenz commented Dec 4, 2020

Hi Alexander,
The command "West Build Zephyr" in the Tasks file in VSCode, has:
"dependsOn": ["Set Zephyr Source"],
But is this compound-command working for you?

I can see in the terminal that both the Source and West commands are running.
But for me, the the variables set by Source do not seem to remain for the West command. It acts like a brand new terminal without variables when West runs - as if the Source command had never run at all.

@KozhinovAlexander
Copy link
Owner

KozhinovAlexander commented Dec 4, 2020

Hello Rayan,

Thank you for your question and interest in my repository for Zephyr compilation with VSCode.

Hi Alexander,
The command "West Build Zephyr" in the Tasks file in VSCode, has:
"dependsOn": ["Set Zephyr Source"],
But is this compound-command working for you?

If I run "West Build Zephyr" I get following output in my console:

Executing task in folder zephyr_vscode_workspace: source ${ZEPHYR_BASE}/zephyr-env.sh <
Terminal will be reused by tasks, press any key to close it.
Executing task in folder zephyr_vscode_workspace: west build -p auto -b ${BOARD}${CPU} ${PRJ_NAME} <

After that my west begins building Zephyr project.

I can see in the terminal that both the Source and West commands are running.
But for me, the the variables set by Source do not seem to remain for the West command. It acts like a brand new terminal without variables when West runs - as if the Source command had never run at all.

Sorry for that. Honestly, I've never payed attention to this behavior, until you pointed it. But I can assure you, west produces proper code for me.

If it not work for you, you can also comment out this command as dependency.
Do you need/wish some special behavior from Set Zephyr Source command?

If you like to improve this project or add new functionality, you're welcome to create a new PR I will be happy to review it.

Best regards,
Alexander

@KozhinovAlexander
Copy link
Owner

@ryangenz Hello. Do you still observe the problems or use this repository? Since your request there were a lot of changes. May be it would be good for you to take a look.

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