bentolor / idea-cli-inspector

A little command-line tool to integrate the awesome IntelliJ IDEA code inspections in your continuous integration (CI) process using Jenkins, Bamboo, et. al.
Apache License 2.0
139 stars 13 forks source link

Fails to launch intellij idea 2016.01 on OSX #1

Closed mbuhot closed 8 years ago

mbuhot commented 8 years ago

On OSX, the default installation for intellij puts the launch binary at

/Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea

The groovy script looks like it handles windows/linux correctly but not OSX, as it expects bin/idea.sh to exist under the installation directory.

bentolor commented 8 years ago

Thanks for the report. I'm not very familiar with OSX environments. So the "home" directory would be /Applications/IntelliJ\ IDEA.app/ ?

And the executable is /Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea/bin/idea.sh ?

I can try to adjust the platform detection but would need your support to test it.

mbuhot commented 8 years ago

Yes, except there is no .sh extension, just idea

I'll try to get something working and send a PR.

bentolor commented 8 years ago

I drafted an updated at https://github.com/bentolor/idea-cli-inspector/tree/feature/osx-support

Ideally this should already just work