bchatard / alfred-jetbrains

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

JetBrains Rider not showing projects #329

Closed awatertrevi closed 11 months ago

awatertrevi commented 11 months ago

FAQ

Describe the bug

All products load the list of recent projects well however Rider seems to return an empty array:

Logs:

❯ ./bin/alfred_jetbrains_cli search --product rider
21:30:07.045 (+0:00:00.003700)
💡 Search projects for Rider with filter ''
21:30:07.047 (+0:00:00.005416)
💡 Locate Settings Directory for rider
21:30:07.047 (+0:00:00.005927)
💡 Custom Config: {}
21:30:07.049 (+0:00:00.007148)
💡 Search in [~/Library/Application Support/Google, ~/Library/Application Support/JetBrains, ~/Library/Preferences]
21:30:07.049 (+0:00:00.007457)
💡 Looking in Directory: '/Users/trevi/Library/Application Support/Google'
21:30:07.049 (+0:00:00.007612)
💡 Application Support: /Users/trevi/Library/Application Support/Google/Rider
21:30:07.050 (+0:00:00.009025)
💡 Looking in Directory: '/Users/trevi/Library/Application Support/JetBrains'
21:30:07.051 (+0:00:00.009059)
💡 Application Support: /Users/trevi/Library/Application Support/JetBrains/Rider
21:30:07.051 (+0:00:00.009283)
💡 Settings Paths: [Directory: '/Users/trevi/Library/Application Support/JetBrains/Rider2023.1']
21:30:07.051 (+0:00:00.009300)
💡 Use Directory: '/Users/trevi/Library/Application Support/JetBrains/Rider2023.1'
21:30:07.051 (+0:00:00.009638)
💡 Use recentSolutions.xml
{"items":[]}

Which is not true at all; since ~/Application Support/JetBrains/Rider2023.1/options/recentSolutions.xml has the following contents:

<application>
  <component name="RiderRecentProjectsManager">
    <option name="additionalInfo">
      <map>
        <entry key="$USER_HOME$/Repositories/xxx/somehting.sln">
          <value>
            <RecentProjectMetaInfo frameTitle="Altura – What's new in Rainbow Brackets" opened="true" projectWorkspaceId="2IAX8oxc8Ox0rMdx7OmdeTUiqnn">
              <option name="activationTimestamp" value="1689188975975" />
              <option name="binFolder" value="$APPLICATION_HOME_DIR$/bin" />
              <option name="build" value="RD-231.9161.46" />
              <option name="buildTimestamp" value="1687370661135" />
              <frame x="-1824" y="-164" width="1400" height="904" />
              <option name="productionCode" value="RD" />
              <option name="projectOpenTimestamp" value="1689188923353" />
            </RecentProjectMetaInfo>
          </value>
        </entry>
      </map>
    </option>
    <option name="lastOpenedProject" value="$USER_HOME$/Repositories/xxx/somehting.sln" />
  </component>
</application>⏎

To Reproduce

Expected behavior

I expect to see the project which is in the recentProjects.xml file.

Alfred Version

5.1.1

Workflow Version

2.0.6

Node Version

v20.3.0

NPM Version

9.6.7

Jetbrains Product & Version

2023

Installation type

JetBrains ToolBox

OS

macOS 13.3

bchatard commented 11 months ago

hi,

thanks for your report! with the information I can easily update the pattern to extract projects list

I'll release a new version asap

bchatard commented 11 months ago

Get the latest version (2.0.7), it should fix the issue

I test with a simple project and the project doesn't appear in 2.0.6 and appear with 2.0.7

awatertrevi commented 11 months ago

Hi @bchatard ,

Thank you for your quick response and fix. Works perfect now 🚀 !!

awatertrevi commented 11 months ago

However opening the project does unfortunatly not work.

Logs:

[09:33:25.181] JetBrains - Open Project[Script Filter] Processing complete
[09:33:25.185] JetBrains - Open Project[Script Filter] Passing output '/Users/trevi/Repositories/xxx/xxx.sln' to Run Script
[09:33:25.189] STDERR: JetBrains - Open Project[Run Script] zsh:8: no such file or directory: /usr/local/bin/rider
[09:33:25.191] JetBrains - Open Project[Run Script] Processing complete
[09:33:25.192] JetBrains - Open Project[Run Script] Passing output 'xxx' to Post Notification

Toolbox script location

❯ whereis rider
rider: /Users/trevi/Library/Application Support/JetBrains/Toolbox/scripts/rider
awatertrevi commented 11 months ago

Nevermind, this is due my old configuration (for the Alfred 4 version).