bchatard / alfred-jetbrains

Alfred5 workflow to easily open your projects with your favorite JetBrains product.
MIT License
618 stars 49 forks source link

Can't find application path for IntelliJ IDEA (Ultimate)2023.1.1 #324

Closed tguitars closed 1 year ago

tguitars commented 1 year ago

FAQ

Describe the bug

Seeing the error

[07:04:43.940] JetBrains - Open Project[Script Filter] Queuing argument '(null)'
[07:04:43.996] JetBrains - Open Project[Script Filter] Script with argv '(null)' finished
[07:04:43.997] JetBrains - Open Project[Script Filter] {
  "items": [
    {
      "uid": "Can't locate application for intelliJIdeaUltimate",
      "title": "Can't locate application for intelliJIdeaUltimate",
      "match": "Can't locate application for intelliJIdeaUltimate JetBrains Toolbox]",
      "subtitle": "Please check if application 'IntelliJ IDEA Ultimate' exists in [/Applications/IntelliJ IDEA.app/Contents/MacOS, /Applications, ~/Applications, ~/Applications/JetBrains Toolbox]",
      "arg": "Please check if application 'IntelliJ IDEA Ultimate' exists in [/Applications/IntelliJ IDEA.app/Contents/MacOS, /Applications, ~/Applications, ~/Applications/JetBrains Toolbox]",
      "autocomplete": "Can't locate application for intelliJIdeaUltimate",
      "text": {
        "copy": "Please check if application 'IntelliJ IDEA Ultimate' exists in [/Applications/IntelliJ IDEA.app/Contents/MacOS, /Applications, ~/Applications, ~/Applications/JetBrains Toolbox]",
        "largetype": "Can't locate application for intelliJIdeaUltimate"
      },
      "icon": {
        "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
      }
    },
    {
      "uid": "Debug: CLI version 0.0.9",
      "title": "Debug: CLI version 0.0.9",
      "match": "Debug: CLI version 0.0.9 0.0.9",
      "subtitle": "0.0.9",
      "arg": "0.0.9",
      "autocomplete": "Debug: CLI version 0.0.9",
      "text": {
        "copy": "0.0.9",
        "largetype": "Debug: CLI version 0.0.9"
      },
      "icon": {
        "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertNoteIcon.icns"
      }
    },
    {
      "uid": "Debug: Log alfred_jetbrains_cli_2023-05-09.log",
      "title": "Debug: Log alfred_jetbrains_cli_2023-05-09.log",
      "match": "Debug: Log alfred_jetbrains_cli_2023-05-09.log alfred_jetbrains_cli_2023-05-09.log",
      "subtitle": "/var/folders/r9/ch_c4nps2bv2lwbhybj156w40000gr/T/alfred_jetbrains_cli_2023-05-09.log",
      "arg": "/var/folders/r9/ch_c4nps2bv2lwbhybj156w40000gr/T/alfred_jetbrains_cli_2023-05-09.log",
      "autocomplete": "Debug: Log alfred_jetbrains_cli_2023-05-09.log",
      "text": {
        "copy": "/var/folders/r9/ch_c4nps2bv2lwbhybj156w40000gr/T/alfred_jetbrains_cli_2023-05-09.log",
        "largetype": "Debug: Log alfred_jetbrains_cli_2023-05-09.log"
      },
      "icon": {
        "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ProblemReport.icns"
      }
    },
    {
      "uid": "Debug: Took 6ms",
      "title": "Debug: Took 6ms",
      "match": "Debug: Took 6ms Started at: 2023-05-09T07:04:43.983280 || Ended at: 2023-05-09T07:04:43.989743",
      "subtitle": "Started at: 2023-05-09T07:04:43.983280 || Ended at: 2023-05-09T07:04:43.989743",
      "arg": "Started at: 2023-05-09T07:04:43.983280 || Ended at: 2023-05-09T07:04:43.989743",
      "autocomplete": "Debug: Took 6ms",
      "text": {
        "copy": "Started at: 2023-05-09T07:04:43.983280 || Ended at: 2023-05-09T07:04:43.989743",
        "largetype": "Debug: Took 6ms"
      },
      "icon": {
        "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Clock.icns"
      }
    }
  ]
}

To Reproduce

  1. Install latest Alfred 5
  2. Run npm install -g @bchatard/alfred-jetbrains
  3. Change the product Edition to Ultimate
  4. Open Alfred, type idea

Expected behavior

No error above, the project list would be shown up

Alfred Version

5.1.2134

Workflow Version

2.0.1

Node Version

v20.0.0

NPM Version

9.6.4

Jetbrains Product & Version

intelliJIdeaUltimate & IntelliJ IDEA 2023.1.1

Installation type

Classic via .dmg

OS

macOS 13.3

bchatard commented 1 year ago

Can you attach the log file to the issue?

What is the application name?

tguitars commented 1 year ago

Attached alfred_jetbrains_cli_2023-05-09.log

miaobf commented 1 year ago

I have the same problem

bchatard commented 1 year ago

Please answer this simple question: what is your application name?

I have "IntelliJ IDEA Ultimate"

miaobf commented 1 year ago

Please answer this simple question: what is your application name?

I have "IntelliJ IDEA Ultimate"

Just like his

abdullah-saadeddin commented 1 year ago

try to uninstall IntelliJ then install it using toolbox, it was installed manually before, it solve the issue for me

tguitars commented 1 year ago

try to uninstall IntelliJ then install it using toolbox, it was installed manually before, it solve the issue for me

Awesome it's working

bchatard commented 1 year ago

sorry guys, I didn't follow up on this.

I really don't understand the cause of this issue

I'll add some other info in debug for next time.

Can we close the issue?

tguitars commented 1 year ago

Sure, also I would suggest to add this into https://github.com/bchatard/alfred-jetbrains/blob/main/doc/troubleshooting.md