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

Bash session closes on errors after importing IDF environment (IDFGH-8757) #10190

Closed
3 tasks done
KaeLL opened this issue Nov 16, 2022 · 2 comments
Closed
3 tasks done
Assignees
Labels
Resolution: Won't Do This will not be worked on Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@KaeLL
Copy link
Contributor

KaeLL commented Nov 16, 2022

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.1-dev-1826-gac99c0ad6b

Operating System used.

Linux

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

No response

What is the expected behavior?

Bash session to remain open

What is the actual behavior?

After install.sh and export.sh, the bash session abruptly terminates with code 1 after certain events.

Steps to reproduce.

Running bash 5.2.9 and python 3.11.0, btw.
Just build any app in a way that would cause a compilation error.
Running 'printenv $IDF_PATH' also triggers it.
Reproducing #10116 (which causes install.sh to fail) also triggers the issue.

Build or installation Logs.

No response

More Information.

No response

@KaeLL KaeLL added the Type: Bug bugs in IDF label Nov 16, 2022
@espressif-bot espressif-bot added the Status: Opened Issue is new label Nov 16, 2022
@github-actions github-actions bot changed the title Bash session closes on errors after importing IDF environment Bash session closes on errors after importing IDF environment (IDFGH-8757) Nov 16, 2022
@igrr
Copy link
Member

igrr commented Nov 21, 2022

@KaeLL Could you check what is the output of set -o | grep errexit in a new terminal, and after running each of the ./install.sh and . ./export.sh?

(Are you by any chance sourcing install.sh as . ./install.sh? That would invoke set -e in your current shell and cause the behavior you describe.)

@KaeLL
Copy link
Contributor Author

KaeLL commented Nov 21, 2022

check what is the output of set -o | grep errexit

You caught me. The install.sh/export.sh routine is done by a script I wrote myself that had a set -e at the beginning for some reason. I'm stupid. Thanks.

@KaeLL KaeLL closed this as completed Nov 21, 2022
@espressif-bot espressif-bot added Resolution: Won't Do This will not be worked on Status: Done Issue is done internally and removed Status: Opened Issue is new labels Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Won't Do This will not be worked on Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

4 participants