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

Esp idf json #54

Merged
merged 3 commits into from
Nov 5, 2024
Merged

Esp idf json #54

merged 3 commits into from
Nov 5, 2024

Conversation

Hahihula
Copy link
Collaborator

@Hahihula Hahihula commented Oct 1, 2024

current file format:

{
	"gitPath": "/opt/homebrew/bin/git",
	"idfInstalled": {
		"esp-idf-33c81a13b1614a17aab7061501093847": {
			"activationScript": "/tmp/esp-new/activate_idf_v5.2.3.sh",
			"idfToolsPath": "/tmp/esp-new/v5.2.3/tools",
			"path": "/tmp/esp-new/v5.2.3/esp-idf",
			"python": "/tmp/esp-new/v5.2.3/tools/python/bin/python3",
			"name": "v5.2.3"
		},
		"esp-idf-a258c398f4e64480b658b650d229ee89": {
			"activationScript": "/tmp/esp-new/activate_idf_v5.3.1.sh",
			"idfToolsPath": "/tmp/esp-new/v5.3.1/tools",
			"path": "/tmp/esp-new/v5.3.1/esp-idf",
			"python": "/tmp/esp-new/v5.3.1/tools/python/bin/python3",
			"name": "v5.3.1"
		}
	},
	"idfSelectedId": "esp-idf-33c81a13b1614a17aab7061501093847"
}

the activation script (.sh on POSIX and .ps1 on windows) need to be sourced not executed to create the environment.
But if it's executed with the -e switch it will just print out the env variables and exit

@alirana01
Copy link

Regarding the activation script just adding a note here we need some switch so that it can output the environment in key:value pairs for the variables.

@Hahihula
Copy link
Collaborator Author

Regarding the activation script just adding a note here we need some switch so that it can output the environment in key:value pairs for the variables.

https://github.com/espressif/idf-im-lib/pull/34/files
this PR adds the -e switch which will cause the activation script to just print out the variables

@Hahihula Hahihula changed the title WIP: Esp idf json Esp idf json Nov 5, 2024
@Hahihula Hahihula changed the title Esp idf json WIP: Esp idf json Nov 5, 2024
@Hahihula Hahihula changed the title WIP: Esp idf json Esp idf json Nov 5, 2024
@Hahihula Hahihula merged commit 23ee537 into master Nov 5, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants