autoenv icon indicating copy to clipboard operation
autoenv copied to clipboard

Syntax Error on MacOS (via homebrew)

Open sam-at-dili opened this issue 2 months ago • 2 comments

Platform

  • MacOS 15.6.1 (Sequoia)
  • bash
  • autoenv installation method: homebrew
  • autoenv version: 0.4.0

Describe the bug

Cannot source 'activate.sh':

$   source /opt/homebrew/opt/autoenv/activate.sh
-bash: /opt/homebrew/opt/autoenv/activate.sh: line 299: syntax error near unexpected token `;;'
-bash: /opt/homebrew/opt/autoenv/activate.sh: line 299: `

I can fix this manually, by downgrading to before the commit that last touched that line fixes the problem. I did this:

brew install autoenv
git clone https://github.com/hyperupcall/autoenv.git && cd autoenv 
git checkout 08c96e6841d4c8370bed21c86d0602a77609a113
cp activate.sh /opt/homebrew/opt/autoenv/

sam-at-dili avatar Sep 30 '25 20:09 sam-at-dili

Confirming that this is still a problem and that the manual downgrade works like a charm.

opencoca avatar Oct 20 '25 13:10 opencoca

The downgrade helped me, too.

marioaquino avatar Nov 18 '25 16:11 marioaquino