NickHeap2 / vscode-ant

Visual Studio Code Ant Task Runner Extension published on the marketplace
MIT License
6 stars 4 forks source link

Ant Target Runner no longer finding ant executable on MacOS? #27

Open semuadmin opened 3 years ago

semuadmin commented 3 years ago

Running VSCode 1.5.6 with openjdk 11.0.11 and Ant Target Runner 0.3.1 on MacOS Big Sur 11.3.1 and until recently it was all working fine - I have a build.xml in my project's root directory and the ATR extension was running the selected tasks as expected. But as of this morning when I tried to run a task that previously ran fine I'm getting an error in the terminal console: zsh: command not found: ant

My understanding was that ATR bundles ant 1.10.7, so doesn't need this to be pre-installed. I haven't explicitly defined ANT_HOME or JAVA_HOME in my profile (.zshrc), but to date it has always worked without this.

The only recent change I've made to the platform was to uninstall Eclipse. Eclipse obviously comes with it's own version of ant - is it possible that ATR was somehow picking this version up instead of installing its bundled version? I've tried uninstalling and reinstalling the ATR extension but to no avail. Not sure where the extension would normally install ant on MacOS?

I can get it to work by manually installing ant and adding the path to my profile, but I was wondering why it wouldn't work 'out of the box' with ADR's bundled version of ant?

BTW it seems to work fine on Windows 10 and Ubuntu 20.4 - just seems to be a problem on MacOS.

daveashworth commented 6 months ago

Same issue as OP.