Skip to content

Commit

Permalink
🐛 Fix IDE lookup on darwin for .app dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Jul 15, 2024
1 parent 7d8bccd commit f66781e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/product_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ func guessProduct(opts *QodanaOptions) {
Prod.Home = opts.Ide
if //goland:noinspection GoBoolExpressions
runtime.GOOS == "darwin" {
Prod.Home = filepath.Join(Prod.Home, "Contents")
contentsDir := filepath.Join(Prod.Home, "Contents")
if _, err := os.Stat(contentsDir); err == nil {
Prod.Home = contentsDir
}
}
if Prod.Home == "" {
if home, ok := os.LookupEnv(platform.QodanaDistEnv); ok {
Expand Down

0 comments on commit f66781e

Please sign in to comment.