small-tech / watson

Watson is a best-practices application template for elementary OS 6 (Odin).
GNU General Public License v3.0
46 stars 3 forks source link

Step 8 (Delete self) failed on line 239. #14

Closed opensussex closed 3 years ago

opensussex commented 3 years ago

when running watson I get this error

Step 8 (Delete self) failed on line 239.

I was able to continue by looking at the steps in the watson file itself - but this might cause some people some confusion. I'll do some digging see what the issue is, but wanted to raise it here just so you're aware and in case anyone else experiences it.

aral commented 3 years ago

@opensussex Hey Graham, thanks for the report.

Looks like I started the step counter at 1 at one point instead of 0 (perhaps to test something?) Anyway, just pushed a fix for the wrong step being reported.

I’d still like to know what it is that is failing in the Configure, build, and install stage (I’m assuming something is failing in tast/install.

Thanks again for opening an issue and letting me know about it.

opensussex commented 3 years ago

@aral - I'll run through it again, and see if I encounter the same issues - and let you know.

opensussex commented 3 years ago

if I run task/install I get no output at all . no errors.

opensussex commented 3 years ago

ok removing set -eu -o pipefail got me over that hump.

aral commented 3 years ago

@opensussex Hmm, which script did you remove that line from? (It’s commented out in watson itself, and I should really remove it not to confuse anyone.)

Basically, by removing that, you’re just making the script not fail when it encounters an error. So the error is most likely still happening but the rest of the script is running regardless. Which is probably not what you want.

Would be happy to try and help you debug this if you can provide with any more information about what exactly seems to be failing :)

opensussex commented 3 years ago

@aral - I removed it from task/install as I wanted to see what was failing - but when I started from scratch and re-ran watson I could see it doing the install correctly with no errors... I'm going to attempt to start over with set -eu -o pipefail back in.