Giter VIP home page Giter VIP logo

alfred-jetbrains's People

Contributors

abbasegbeyemi avatar ahoendgen avatar bchatard avatar dependabot-preview[bot] avatar dependabot[bot] avatar fieg avatar ibrahim-mubarak avatar imazine avatar marcorieser avatar ngi avatar olliekennedy avatar pedro-stanaka avatar rymek avatar scalder27 avatar snyk-bot avatar spearkkk avatar tomstolarczuk avatar yihou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

alfred-jetbrains's Issues

Links cannot be clearly identified

This theme is awesome👍
However, there is a problem:
Related links can modify the style, such as underline, color, etc.
There are contrast screenshots for reference here.

  • gitark theme
    gitark_theme
  • github theme
    github_theme

Can't open AppCode 2020.1

Try to open AppCode 2020.1 by typing appcode

TypeError: Cannot read property 'length' of null
    at getApplicationPath (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:129:29)
    at Object.get (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:157:31)
    at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:13:38
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:60:3)
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:251206)
    at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245054
    at Generator.next (<anonymous>)
    at bl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245412)
    at kl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:247659)
    at Object.u (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:287740)
Q A
Workflow version 1.3.2
OSX Version 10.15.4
Alfred Version 4.0.9
JetBrains Product/Version AppCode / 2020.1
Node version 10.15.3 (node --version)
NPM version 6.9.0 (npm --version)

Add Rider support

If someone can send me the following files:

  • ~/Library/Preferences/Rider2018.3/options/recentSolutions.xml
  • ~/Library/Preferences/Rider2019.1/options/recentSolutions.xml (when released)
  • PROJECT_PATH/.idea or maybe *.sln

Please remove any sensitive data before

Thanks,

Opening multiple projects PHPstorm

Describe the bug
If you already have one project open in PHPstorm it doesn't allows opening another.

To Reproduce
Steps to reproduce the behavior:

  1. Open a project in PHPstorm.
  2. Use Alfred to open another project -> pstorm projectname.
  3. There is a MacOS notification it opened the requested project.
  4. It focus on previous project and the request project isn't openend.

Expected behavior
I expect that multiple PHPstorm projects can be openend. Within PHPstorm itself it works correctly.

Q A
Workflow version 1.0.12
OSX Version 10.14.6
Alfred Version 4.0.3
JetBrains Product/Version PhpStorm / 2019.2
Installation type _classic .dmg
Node version X
NPM version X

There are no errors or exception triggered.

Error: Can't find product, missing key

Describe the bug
Hi,

I updated versions following this issue: #59

and now run into the following new one:

Error: Can't find product, missing key
    at getProduct (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:26:9)
    at Object.get (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:132:17)
    at __dirname (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:15:38)
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:61:3)
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:251206)
    at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245054
    at Generator.next (<anonymous>)
    at bl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245412)
    at kl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:247659)
    at Object.u (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:287740)
Q A
Workflow version 1.1.4
OSX Version 10.14.4
Alfred Version 4.0.4
JetBrains Product/Version _PhpStorm / 2019.2.2
Installation type JB Toolbox_
Node version 9.2.0
NPM version 5.5.1_

Workflow not compatible with Alfred 3.8.5

Describe the bug
After I installed the workflow and clicked on the workflow in the workflow viewer, the view says "Workflow incompatible. Please update to the lastest version of Alfred"

Screen Shot 2019-11-04 at 7 59 21 PM

alfred 4 support

Q A
Workflow version 1.0.12
OSX Version 10.14.5
Alfred Version 4.0
JetBrains Product/Version Pycharm / 2019.1
Installation type classic .dmg
Node.js version v10.9.0

Description

  • installed with npm install -g @bchatard/alfred-jetbrains. However, the workflow doesn't appear in the Alfred workflow. Following is the output:
$ npm install -g @bchatard/alfred-jetbrains

> @bchatard/[email protected] preuninstall /usr/local/lib/node_modules/@bchatard/alfred-jetbrains
> alfy-cleanup


> @bchatard/[email protected] postinstall /usr/local/lib/node_modules/@bchatard/alfred-jetbrains
> alfy-init

+ @bchatard/[email protected]
updated 1 package in 2.42s

Step to reproduce

  • update to Alfred 4
  • run npm install -g @bchatard/alfred-jetbrains

Error when using "idea" in alfred

Q A
Workflow version 1.0.9
OSX Version 10.14.4
Alfred Version 3.8.1
JetBrains Product/Version IntelliJ / 2019.1
Installation type JB Toolbox

Description

In the terminal, the command-line idea ./ works perfectly, but not when using Alfred. I get an "Unexpected token ..." error in Alfred, which I can copy:

/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:42
            ...product,
            ^^^
SyntaxError: Unexpected token ...
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:7:38)

-
JetBrains - Open Project - v3 1.0.9
Alfred 3.8.1
darwin x64 18.5.0

In another issue you requested the content of the idea file. In my case it is:

$> cat $(which idea)

#!/bin/sh
# Generated by JetBrains Toolbox 1.14.5179 at Mon Apr 15 16:37:15 2019

open -a "/Users/taco/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/191.6183.87/IntelliJ IDEA.app/Contents/MacOS/idea" "$@"

Step to reproduce

Just by typing idea in Alfred.

idea throw error

Error: Command failed: /bin/sh -c which idea
at makeError (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/execa/index.js:174:9)
at module.exports.sync (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/execa/index.js:338:15)
at handleShell (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/execa/index.js:117:9)
at Function.module.exports.shellSync (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/execa/index.js:361:43)
at getApplicationPath (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:82:24)
at Object.get (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:118:31)
at Object. (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:15:38)

Intellij: TypeError: Cannot read property 'length' of null

Q A
Workflow version 1.0.3
OSX Version 10.14.4
Alfred Version 3.8.1
JetBrains Product/Version Intellij / 2019.1
Installation type Caskroom

Description

When I try to use workflow with Idea, I get the following error:

TypeError: Cannot read property 'length' of null
    at getApplicationPath (/Users/sitalov/.nvm/versions/node/v11.1.0/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:56:13)
    at Object.get (/Users/sitalov/.nvm/versions/node/v11.1.0/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:73:31)
    at Object.<anonymous> (/Users/sitalov/.nvm/versions/node/v11.1.0/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:6:38)

As requested, the result of: cat $(which idea):

sitalov/workspace  cat $(which idea)
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import socket
import struct
import sys
import os
import time

# see com.intellij.idea.SocketLock for the server side of this interface

RUN_PATH = u'/Applications/IntelliJ IDEA.app'
CONFIG_PATH = u'/Users/sitalov/Library/Preferences/IntelliJIdea2019.1'
SYSTEM_PATH = u'/Users/sitalov/Library/Caches/IntelliJIdea2019.1'


def print_usage(cmd):
    print(('Usage:\n' +
           '  {0} -h | -? | --help\n' +
           '  {0} [project_dir]\n' +
           '  {0} [-l|--line line] [project_dir|--temp-project] file[:line]\n' +
           '  {0} diff <left> <right>\n' +
           '  {0} merge <local> <remote> [base] <merged>').format(cmd))


def process_args(argv):
    args = []

    skip_next = False
    for i, arg in enumerate(argv[1:]):
        if arg == '-h' or arg == '-?' or arg == '--help':
            print_usage(argv[0])
            exit(0)
        elif i == 0 and (arg == 'diff' or arg == 'merge' or arg == '--temp-project'):
            args.append(arg)
        elif arg == '-l' or arg == '--line':
            args.append(arg)
            skip_next = True
        elif skip_next:
            args.append(arg)
            skip_next = False
        else:
            path = arg
            if ':' in arg:
                file_path, line_number = arg.rsplit(':', 1)
                if line_number.isdigit():
                    args.append('-l')
                    args.append(line_number)
                    path = file_path
            args.append(os.path.abspath(path))

    return args


def try_activate_instance(args):
    port_path = os.path.join(CONFIG_PATH, 'port')
    token_path = os.path.join(SYSTEM_PATH, 'token')
    if not (os.path.exists(port_path) and os.path.exists(token_path)):
        return False

    try:
        with open(port_path) as pf:
            port = int(pf.read())
        with open(token_path) as tf:
            token = tf.read()
    except (ValueError):
        return False

    s = socket.socket()
    s.settimeout(0.3)
    try:
        s.connect(('127.0.0.1', port))
    except (socket.error, IOError):
        return False

    found = False
    while True:
        try:
            path_len = struct.unpack('>h', s.recv(2))[0]
            path = s.recv(path_len).decode('utf-8')
            if os.path.abspath(path) == os.path.abspath(CONFIG_PATH):
                found = True
                break
        except (socket.error, IOError):
            return False

    if found:
        cmd = 'activate ' + token + '\0' + os.getcwd() + '\0' + '\0'.join(args)
        if sys.version_info[0] >= 3: cmd = cmd.encode('utf-8')
        encoded = struct.pack('>h', len(cmd)) + cmd
        s.send(encoded)
        time.sleep(0.5)  # don't close the socket immediately
        return True

    return False


def start_new_instance(args):
    if sys.platform == 'darwin':
        if len(args) > 0:
            args.insert(0, '--args')
        os.execvp('/usr/bin/open', ['-a', RUN_PATH] + args)
    else:
        bin_file = os.path.split(RUN_PATH)[1]
        os.execv(RUN_PATH, [bin_file] + args)


ide_args = process_args(sys.argv)
if not try_activate_instance(ide_args):
    start_new_instance(ide_args)

v1.1.1 PhpStorm - TypeError: path must be a string or Buffer

Hi,

I updated to v1.1.1 and get the following error. I think the issue may be I am not setting the correct binary path in the Toolbox settings of intelliJ. Which I am not clear on / its not documented anywhere in the README

TypeError: path must be a string or Buffer
    at getApplicationPath (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:84:25)
    at Object.get (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:115:31)
    at __dirname (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:15:38)
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:61:3)
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:251206)
    at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245054
    at Generator.next (<anonymous>)
    at bl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245412)

JetBrains - Open Project - v3 1.1.0
Alfred 4.0.3
darwin 18.5.0

Can't find preference path for PhpStorm

Describe the bug
I'm getting this error:

Error: Can't find preference path for PhpStorm
    at getPreferencePath (/Users/klimcik/‘~/.npm-global’/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:81:9)
    at Object.get (/Users/klimcik/‘~/.npm-global’/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:138:30)
    at /Users/klimcik/‘~/.npm-global’/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:13:38
    at Object.<anonymous> (/Users/klimcik/‘~/.npm-global’/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:59:3)
    at Object.<anonymous> (/Users/klimcik/‘~/.npm-global’/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:251206)
    at /Users/klimcik/‘~/.npm-global’/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245054
    at Generator.next (<anonymous>)
    at bl (/Users/klimcik/‘~/.npm-global’/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245412)
    at kl (/Users/klimcik/‘~/.npm-global’/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:247659)
    at Object.u (/Users/klimcik/‘~/.npm-global’/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:287740)

To Reproduce
Steps to reproduce the behavior:

  1. installation via npm install -g @bchatard/alfred-jetbrains
  2. in PhpStorm in "Create Lancher Script" I confirmed path /usr/local/bin/pstorm and overwrite an existing file
  3. invoke Alfred
  4. type pstorm
Q A
Workflow version 1.2.0
OSX Version 10.15.1
Alfred Version 4.0.6
JetBrains Product/Version PhpStorm / 2019.2.5
Installation type classic .dmg
Node version 10.15.3
NPM version 6.4.1

Additional context
Maybe I need to create something or I moved something somewhere else but I don't know what is wrong.

Error: Can't find application path for PyCharm|DataGrip

Describe the bug
I updated to 1.3.3 and got this message

Error: Can't find application path for PyCharm.
    at getApplicationPath (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:147:9)
    at Object.get (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:157:31)
    at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:13:38
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:60:3)
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:251206)
    at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245054
    at Generator.next (<anonymous>)
    at bl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245412)
    at kl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:247659)
    at Object.u (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:287740)

JetBrains - Open Project - v3 1.3.3
Alfred 4.0.9
darwin 18.7.0

It worked flawlessly all the time. The Shellscripts which were generated by the JetBrainsToolbox are working if I start them.
I have no Environvariables set in the Alfred-plugin

To Reproduce
Start Alfred by hotkey
type "pycharm"
choose "Open PyCharm Project"
Wait second and then the error appears.

Expected behavior
A clear and concise description of what you expected to happen.

Q A
Workflow version 1.3.3
OSX Version 10.14.6
Alfred Version 4.0.9
JetBrains Product/Version PyCharm / 2019.3_
Installation type JB Toolbox
Node version 13.1.0 (node --version)
NPM version 6.12.1 (npm --version)

Error if one project

Q A
Workflow version 1.0.2
OSX Version 10.14.4
Alfred Version 3.8
JetBrains Product/Version All / 2019.1
Installation type JB Toolbox

Description

If we have one project an error is thrown:

TypeError: rawProjectPaths.forEach is not a function
    at Object.getProjectPaths [as get] (/Users/bchatard/Projects/brice/Alfred/alfred-jetbrains/src/project/paths.js:70:25)
    at Object.getItems (/Users/bchatard/Projects/brice/Alfred/alfred-jetbrains/src/project.js:38:32)
    at Object.<anonymous> (/Users/bchatard/Projects/brice/Alfred/alfred-jetbrains/src/index.js:12:23)

Step to reproduce

Have one project, and try to open it

"Can't find preference path for IntelliJIdea" error

Q A
Workflow version 1.0.12
OSX Version 10.14.5
Alfred Version 3.8.2
JetBrains Product/Version IntelliJ IDEA CE / 2019.1.3
Installation type classic .dmg

Description

Getting the following error on usage:

Error: Can't find preference path for IntelliJIdea
    at getPreferencePath (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:77:9)
    at Object.get (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:117:30)
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:15:38)

JetBrains - Open Project - v3 1.0.12
Alfred 3.8.2
darwin x64 18.6.0

Step to reproduce

  • installation via npm install -g @bchatard/alfred-jetbrains
  • invoke Alfred
  • type idea

Probably there are other steps necessary to reproduce, but that's all I did :/

Allow other binaries configuration

Q A
Workflow version 1.0.0
OSX Version 10.14.4
Alfred Version 3.8
JetBrains Product/Version PhpStorm / 2019.1
Installation type JB Toolbox

Description

Hi,
My binaries for webstorm and phpstorm are wstorm and pstorm.
It could be nice to allow an easy configuration of that.

Thanks.

Title > path in search

Q A
Workflow version 1.0.5
OSX Version 17.7.0
Alfred Version 3.8.1
JetBrains Product/Version PhpStorm / 2019.1
Installation type JB Toolbox

Description

When searching for the project, the query will look in the path of project.

So if my query is present in all the projects paths, it will return all the projects.

The project name should be more important than the path.

Example of why it's wrong:
Screen Shot 2019-04-10 at 14 42 54

Here, nothing changed with the query, but the mathieutu.dev project should be, at least, in first position.

Thanks.

Error: Can't find preference path for IntelliJIdea

Typing idea _projectname_ shows Error: Can't find preference path for IntelliJIdea instead of an option to open the project.

Full error log:

Error: Can't find preference path for IntelliJIdea
    at getPreferencePath (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:77:9)
    at Object.get (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:134:30)
    at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:15:38
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:61:3)
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:251206)
    at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245054
    at Generator.next (<anonymous>)
    at bl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245412)
    at kl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:247659)
    at Object.u (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:287740)

JetBrains - Open Project - v3 1.1.3
Alfred 4.0.4
darwin 18.7.0

Screenshot
Screenshot 2019-09-18 at 16 51 29

Additional context
macOS Mojave, Alfred 4.0.4. Installed via $ npm install -g @bchatard/alfred-jetbrains

Can't start/use PyCharm Professional

Describe the bug
I created the shell scripts via the JetBrains Toolbox on my OneDrive. It looks like this

#!/bin/sh
# Generated by JetBrains Toolbox 1.16.6067 at Sun Dec 1 08:43:06 2019

open -a "/Users/XXXXXX/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/192.7142.56/PyCharm.app/Contents/MacOS/pycharm" "$@"

I left the products.json unchanged:
"PyCharm": {
"preferences": "PyCharm",
"bin": ["pycharm", "charm"]
},

If I try to open my projects via Alfred, I´ll get this error message:

Error: Unable to find bin for PyCharm. Search for bin named: pycharm, charm
at getApplicationPath (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:99:11)
at Object.get (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:139:31)
at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:13:38
at Object. (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:59:3)
at Object. (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:251206)
at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245054
at Generator.next ()
at bl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245412)
at kl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:247659)
at Object.u (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:287740)

Expected behavior
I expect my PyCharm Projects

Q A
Workflow version 1.2.0
OSX Version 10.14.6
Alfred Version 4.0.6
JetBrains Product/Version PyCharm Professional / 2019.2.5
Installation type JB Toolbox
Node version v12.11.1
NPM version 6.11.3

Additional context
Same for Data Grip

IntelliJ not working

Q A
Workflow version 1.0.1
OSX Version 10.14.4
Alfred Version 3.8.1
JetBrains Product/Version IntelliJ / 2019.1
Installation type JB Toolbox

Description

"idea" wasn't one of the original script filters for the workflow, and even after adding it manually (copied from PhpStorm) it doesn't work.
There's no error, it originally couldn't find the idea shortcut, but I moved it and now it simply don't show any projects.

Step to reproduce

type idea in Alfred, and nothing happens except IntelliJ shows up as an application. pstorm and wstorm show errors, as I don't have those installed, so I can't verify that those work either.

Failed at the @bchatard/[email protected] postinstall script

Q A
Workflow version latest
OSX Version 10.14.5
Alfred Version 4
JetBrains Product/Version Idea / 2019.1
Installation type Caskroom

Description

Can't install it with npm (brew install node). I used this before, but I decided to reinstall everything after upgrading to the alfred 4. I tried to delete npm and node completely and install again via brew, but it didn't help.

logs.txt

Can't find preference path

Describe the bug
After installed the workflow and try follow up the customization guide, I still cannot make it work.

Error log:

18:55:26.979] JetBrains - Open Project - v3[Script Filter] Queuing argument ''
[18:55:27.337] JetBrains - Open Project - v3[Script Filter] Script with argv '' finished
[18:55:27.345] ERROR: JetBrains - Open Project - v3[Script Filter] Code 1: {
"items": [
{
"title": "Error: Can't find preference path for /.config/alfred-jetbrains/custom.json\n at getPreferencePath (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:80:9)\n at Object.get (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:137:30)\n at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:15:38\n at Object. (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:61:3)\n at Object. (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:251206)\n at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245054\n at Generator.next ()\n at bl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245412)\n at kl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:247659)\n at Object.u (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:287740)",
"subtitle": "Press ⌘L to see the full error and ⌘C to copy it.",
"valid": false,
"text": {
"copy": "\nError: Can't find preference path for /.config/alfred-jetbrains/custom.json\n at getPreferencePath (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:80:9)\n at Object.get (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:137:30)\n at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:15:38\n at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:61:3)\n at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:251206)\n at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245054\n at Generator.next (<anonymous>)\n at bl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245412)\n at kl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:247659)\n at Object.u (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:287740)\n\n\n-\nJetBrains - Open Project - v3 1.1.4\nAlfred 4.0.5\ndarwin 18.7.0",
"largetype": "Error: Can't find preference path for /.config/alfred-jetbrains/custom.json\n at getPreferencePath (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:80:9)\n at Object.get (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:137:30)\n at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:15:38\n at Object. (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:61:3)\n at Object. (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:251206)\n at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245054\n at Generator.next ()\n at bl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245412)\n at kl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:247659)\n at Object.u (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:287740)"
},
"icon": {
"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
}
}
]
}

Additional context

My customized file is under here:
$ pwd
/Users/{my username}

$ ls .config/alfred-jetbrains/custom.json
.config/alfred-jetbrains/custom.json

$ cat .config/alfred-jetbrains/custom.json
{
"IdeaCE": {
"preferences": "IdeaIC",
"bin": "idea"
},
"IdeaIE": {
"preferences": "IdeaIC",
"bin": "idea"
},
"IdeaUE": {
"preferences": "IdeaIC",
"bin": "idea"
}
}

I'm using community version of idea.

my setting:
image

I've tried to change the path to :
.config/alfred-jetbrains/custom.json or .config/alfred-jetbrains/custom.json, both have the same issue.

Could you please help to take a look. Thanks a lot!

Unable to install the workflow

Describe the bug
Unable to install. I have used this plugin before, however, was seeing different issues (see #48). I started seeing those issues again. I attempted uninstalling and reinstalling and now see the following error.

To Reproduce
Steps to reproduce the behavior:
While installing the npm library, I get the following error -

➜  ~ $ npm install -g @bchatard/alfred-jetbrains

> @bchatard/[email protected] preuninstall /usr/local/lib/node_modules/@bchatard/alfred-jetbrains
> alfy-cleanup

Error: Command failed: alfred-unlink
internal/modules/cjs/loader.js:775
    throw err;
    ^

Error: Cannot find module '.'
Require stack:
- /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/alfred-unlink
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:772:15)
    at Function.Module._load (internal/modules/cjs/loader.js:677:27)
    at Module.require (internal/modules/cjs/loader.js:830:19)
    at require (internal/modules/cjs/helpers.js:68:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/alfred-unlink:3:20)
    at Module._compile (internal/modules/cjs/loader.js:936:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
    at Module.load (internal/modules/cjs/loader.js:790:32)
    at Function.Module._load (internal/modules/cjs/loader.js:703:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:999:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/alfred-unlink'
  ]
}


    at makeError (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/execa/index.js:174:9)
    at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/execa/index.js:278:16
    at processTicksAndRejections (internal/process/task_queues.js:85:5) {
  code: 1,
  stdout: '',
  stderr: 'internal/modules/cjs/loader.js:775\n' +
    '    throw err;\n' +
    '    ^\n' +
    '\n' +
    "Error: Cannot find module '.'\n" +
    'Require stack:\n' +
    '- /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/alfred-unlink\n' +
    '    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:772:15)\n' +
    '    at Function.Module._load (internal/modules/cjs/loader.js:677:27)\n' +
    '    at Module.require (internal/modules/cjs/loader.js:830:19)\n' +
    '    at require (internal/modules/cjs/helpers.js:68:18)\n' +
    '    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/alfred-unlink:3:20)\n' +
    '    at Module._compile (internal/modules/cjs/loader.js:936:30)\n' +
    '    at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)\n' +
    '    at Module.load (internal/modules/cjs/loader.js:790:32)\n' +
    '    at Function.Module._load (internal/modules/cjs/loader.js:703:12)\n' +
    '    at Function.Module.runMain (internal/modules/cjs/loader.js:999:10) {\n' +
    "  code: 'MODULE_NOT_FOUND',\n" +
    '  requireStack: [\n' +
    "    '/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/alfred-unlink'\n" +
    '  ]\n' +
    '}\n',
  failed: true,
  signal: null,
  cmd: 'alfred-unlink',
  timedOut: false,
  killed: false
}
npm WARN lifecycle @bchatard/[email protected]~preuninstall: continuing anyway @bchatard/[email protected] preuninstall: `alfy-cleanup`
npm WARN lifecycle Exit status 1
npm ERR! code EEXIST
npm ERR! path /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/rimraf
npm ERR! Refusing to delete /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/rimraf: is outside /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/rimraf and not a link
npm ERR! File exists: /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/rimraf
npm ERR! Move it away, and try again.

From the debug logs -

942 timing stage:runTopLevelLifecycles Completed in 3676ms
943 verbose stack Error: Refusing to delete /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/xml2js: is outside /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/fast-xml-parser and not a link
943 verbose stack     at clobberFail (/usr/local/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:121:12)
943 verbose stack     at isSafeToRm (/usr/local/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:114:15)
943 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:54:5
943 verbose stack     at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:7:26)
943 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:18:7
943 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:180:7
943 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/gentle-fs/node_modules/iferr/index.js:13:50
943 verbose stack     at _readAllLinks (/usr/local/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:215:28)
943 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/gentle-fs/node_modules/iferr/index.js:13:50
943 verbose stack     at resolveSymlink (/usr/local/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:226:22)
943 verbose stack     at _readAllLinks (/usr/local/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:217:5)
943 verbose stack     at readAllLinks (/usr/local/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:212:3)
943 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:179:5
943 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/gentle-fs/node_modules/iferr/index.js:13:50
943 verbose stack     at cb (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
943 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/gentle-fs/lib/rm.js:153:16
Q A
Workflow version 1.0.10
OSX Version 10.14.6
Alfred Version 4.0.3
JetBrains Product/Version 2019.2_
Installation type JB Toolbox_
Node version 12.9.1
NPM version 6.10.3

Error on moved / removed project from disk

Q A
Workflow version 1.0.1
OSX Version 10.14.4
Alfred Version 3.8
JetBrains Product/Version All / 2019.1
Installation type JB Toolbox

Description

If a project is moved or removed from disk, and the "project cache" is flushed, an error is thrown.

Step to reproduce

see description

Wrong PyCharm path

Q A
Workflow version 1.0.0
OSX Version 10.14.4
Alfred Version 3.8
JetBrains Product/Version PyCharm / 2019.1
Installation type Toolbox

Description

In src/products.json:

  "PyCharmPro": {
    "preferences": "PyCharm",
    "bin": "pycharm"
  },

Should probably be replaced with

  "PyCharmPro": {
    "preferences": "PyCharm",
    "bin": "charm"
  },

Since that is what JetBrains toolbox actually generates.

intellij idea 2019.3 not working

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Q A
Workflow version 1.2.0
OSX Version 10.14.6
Alfred Version 4.0.5
JetBrains Product/Version Intellij Idea / 2019.3
Installation type classic .dmg
Node version 10.8.0
NPM version 6.12.0

Additional context
Add any other context about the problem here.

Add file actions

Q A
Workflow version 1.0.12
OSX Version 10.14.5
Alfred Version 4.0.1
JetBrains Product/Version PhpStorm / 2019.1
Installation type npm

Description

on using + \ on selected folder in finder, open with Phpstorm or other Jetbrains products does not work properly, hope there's file action that allows that.
It's helpful to open projects that are not part of the project list

Step to reproduce

As describe in the description

Installation error

Describe the bug
Upon running the install command, I get the following error messages:

'Error: Permission denied to read Alfred preferences at location /Users/stefan/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist\n at module.exports (/opt/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/resolve-alfred-prefs/index.js:44:9)'

I checked the location and I don't even have the file 'com.runningwithcrayons.Alfred-Preferences-3.plist' in this directory. The file I have is 'com.runningwithcrayons.Alfred-Preferences.plist'. Is there perhaps something wrong with my Alfred settings?

Q A
Workflow version latest
OSX Version 10.15.2
Alfred Version 4.0.6
JetBrains Product/Version PyCharm / 2019.3
Node version 10.17.0
NPM version 6.13.1

Unable to launch "idea"

Describe the bug
When attempting to open a project using the plugin, I receive "Command failed: /bin/sh -c which idea". I tried to uninstall the module, however, I got an error when doing so.


➜  ~ $ npm uninstall -g @bchatard/alfred-jetbrains

> @bchatard/[email protected] preuninstall /usr/local/lib/node_modules/@bchatard/alfred-jetbrains
> alfy-cleanup

Error: Command failed: alfred-unlink
internal/modules/cjs/loader.js:628
    throw err;
    ^

Error: Cannot find module '.'
Require stack:
- /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/alfred-unlink
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:625:15)
    at Function.Module._load (internal/modules/cjs/loader.js:527:27)
    at Module.require (internal/modules/cjs/loader.js:683:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/alfred-unlink:3:20)
    at Module._compile (internal/modules/cjs/loader.js:777:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:788:10)
    at Module.load (internal/modules/cjs/loader.js:643:32)
    at Function.Module._load (internal/modules/cjs/loader.js:556:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:840:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/alfred-unlink'
  ]
}


    at makeError (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/execa/index.js:174:9)
    at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/execa/index.js:278:16
    at processTicksAndRejections (internal/process/task_queues.js:85:5) {
  code: 1,
  stdout: '',
  stderr: 'internal/modules/cjs/loader.js:628\n' +
    '    throw err;\n' +
    '    ^\n' +
    '\n' +
    "Error: Cannot find module '.'\n" +
    'Require stack:\n' +
    '- /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/alfred-unlink\n' +
    '    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:625:15)\n' +
    '    at Function.Module._load (internal/modules/cjs/loader.js:527:27)\n' +
    '    at Module.require (internal/modules/cjs/loader.js:683:19)\n' +
    '    at require (internal/modules/cjs/helpers.js:16:16)\n' +
    '    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/alfred-unlink:3:20)\n' +
    '    at Module._compile (internal/modules/cjs/loader.js:777:30)\n' +
    '    at Object.Module._extensions..js (internal/modules/cjs/loader.js:788:10)\n' +
    '    at Module.load (internal/modules/cjs/loader.js:643:32)\n' +
    '    at Function.Module._load (internal/modules/cjs/loader.js:556:12)\n' +
    '    at Function.Module.runMain (internal/modules/cjs/loader.js:840:10) {\n' +
    "  code: 'MODULE_NOT_FOUND',\n" +
    '  requireStack: [\n' +
    "    '/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/.bin/alfred-unlink'\n" +
    '  ]\n' +
    '}\n',
  failed: true,
  signal: null,
  cmd: 'alfred-unlink',
  timedOut: false,
  killed: false
}

To Reproduce
Steps to reproduce the behavior:

  1. launch alfred, type idea, I see the error "Command failed: /bin/sh -c which idea"

Expected behavior
On launching alfred and entering idea, it should show a list of projects.

Screenshots
If applicable, add screenshots to help explain your problem.

Q A
Workflow version 1.0.10
OSX Version 10.14.6
Alfred Version 4.0.3
JetBrains Product/Version IntelliJ Idea / 2019.2
Installation type JB Toolbox
Node version 12.7.0
NPM version 6.10.0

Additional context
The attached screenshot shows an error when attempting to launch workflow from alfred workflow.
error

EAP build support

I like to test out EAP builds for the IDEs from time to time. I'm not sure if there's a seamless way to do this but here's an example:

I'm using the release build of WebStorm and wstorm ... works perfectly. When I install the next version of EAP alongside the release build, using wstorm will open the release build which is what I would expect.

Is there a recommended way to do this?

Side note: I noticed when JetBrains toolbox installs the EAP, I believe it automatically assigned the name webstorm1 to the EAP shell script.

ReferenceError: bin is not defined - While opening PHPStorm 2020.1

Q A
Workflow version v3 1.3.1
OSX Version 10.15.4
Alfred Version 4.0.9
JetBrains Product/Version PhpStorm / 2020.1
Installation type npm

Description

After update of the workflow I started getting the error:

ReferenceError: bin is not defined
    at getApplicationPath ($NODE_PATH/.npm/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:145:54)
    at Object.get ($NODE_PATH/.npm/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:155:31)
    at $NODE_PATH/.npm/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:13:38
    at Object.<anonymous> ($NODE_PATH/.npm/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:60:3)
    at Object.<anonymous> ($NODE_PATH/.npm/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:251206)
    at $NODE_PATH/.npm/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245054
    at Generator.next (<anonymous>)
    at bl ($NODE_PATH/.npm/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245412)
    at kl ($NODE_PATH/.npm/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:247659)
    at Object.u ($NODE_PATH/.npm/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:287740)

JetBrains - Open Project - v3 1.3.1
Alfred 4.0.9
darwin 19.4.0

Step to reproduce

Just type <phpstorm keyword> on alfred and watch the error.

ERROR

sudo npm install @bchatard/alfred-jetbrains -g

[email protected] postinstall /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/ajv
opencollective-postinstall || true

Thank you for using ajv!
If you rely on this package, please consider supporting our open collective:

https://opencollective.com/ajv/donate

[email protected] postinstall /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/fast-xml-parser
node tasks/postinstall.js || exit 0

Love fast-xml-parser? Check https://amitkumargupta.work for more projects and contribution.

@bchatard/[email protected] postinstall /usr/local/lib/node_modules/@bchatard/alfred-jetbrains
alfy-init

Error: Command failed with exit code 1 (EPERM): alfred-link
at makeError (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/alfy/node_modules/execa/lib/error.js:59:11)
at handlePromise (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/alfy/node_modules/execa/index.js:112:26)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/alfy/init.js:7:3 {
command: 'alfred-link',
exitCode: 1,
exitCodeName: 'EPERM',
stdout: '',
stderr: 'Error: Permission denied to read Alfred preferences at location /Users/chusen/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist\n' +
' at module.exports (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/resolve-alfred-prefs/index.js:44:9)',
all: 'Error: Permission denied to read Alfred preferences at location /Users/chusen/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist\n' +
' at module.exports (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/resolve-alfred-prefs/index.js:44:9)',
failed: true,
timedOut: false,
isCanceled: false,
killed: false,
signal: undefined
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @bchatard/[email protected] postinstall: alfy-init
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @bchatard/[email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

Forced having to flush cache everytime new project is opened.

I noticed I have to run jb Clean Projects Cache in order for a product to a newly opened project.

Is there a way to get the cache updated every so often?

I did notice variables you can tweak jb_project_cache_lifetime and jb_product_cache_lifetime to a value like 30 seconds, however, it is not clear from the README which one affects the list of projects for a given product.

Based on my experimentation, I believe it's jb_product_cache_lifetime that refresh the list of available projects for a given product (i.e. wstorm <new project>) however, I am not sure how jb_project_cache_lifetime affects the workflow. It seems to contradict my understanding that

jb_project_cache_lifetime: cache lifetime in seconds for project list (one cache per app) [default: 3600 seconds]

since it was jb_product_cache_lifetime=30 that made an impact of the list of projects available for a product and not jb_project_cache_lifetime=30

Can someone help me understand the specifics here?

image

Add Android Studio Support

Q A
Workflow version 1.0.9
OSX Version 10.14.4
Alfred Version 3.8
JetBrains Product/Version Android Studio / 2019.1
Installation type all

Description

Add Android Studio support

Support for spaces in Project Path

Q A
Workflow version 1.0.6
OSX Version 10.14.4
Alfred Version 3.8.1
JetBrains Product/Version PyCharm / 2019.1.1
Installation type JB Toolbox

Description

When the project path contains a space, it won't be listed in the results.
For clarification see https://imgur.com/a/nOHBWn8. The first two projects contain spaces in their project paths.

Step to reproduce

Create a project within a path with spaces.

PS: Thanks a lot for your awesome workflow :-).

Command failed: /bin/sh -c which idea

I have a similar problem as the one described in the closed issue #48

Reinstalling fixed the issue yesterday. Today, it's back, see screenshot.

Screenshot 2019-08-26 at 15 08 21

My node version is 12.5.0 and Alfred is 3.8.2

Any ideas? I don't feel like reinstalling every day or so. :/

Can't find IDEA projects

Describe the bug
Alfred can't find all my projects, can only find one.

Expected behavior
Alfred list all my project.

Screenshots
截屏2020-03-10下午2 08 21
As you can see, there's only one project list in Alfred, the other IDEA is a Windows IDEA installed in a VM, you could ignore it.

At the meantime, when I try "idea xxxproject" in iTerm, it works, opened a IDEA window with xxxproject, so I assume it isn't a command-line tool issue.

Q A
Workflow version 1.1.3
OSX Version 10.15.3
Alfred Version 3.8.6
JetBrains Product/Version IDEA / 2019.3.1
Installation type classic .dmg / Caskroom / JB Toolbox
Node version 12.7.0
NPM version 6.13.4

If any further test you need, please don't hesitate to ask, thank you very much.

Can't find any projects on any of installed IDEs

I have Rider, CLion, Idea, PyCharm installed. All versions at least 2020.1.
When I type any of my IDE names in Alfred's Search window, I see an error:

Error: Unable to find bin for CLion. Search for bin named: clion
    at getApplicationPath (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:115:11)
    at Object.get (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:155:31)
    at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:13:38
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:60:3)
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:251206)
    at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245054
    at Generator.next (<anonymous>)
    at bl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245412)
    at kl (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:247659)
    at Object.u (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:287740)

JetBrains Toolbox 1.17.6802
Alfred 4.0.9 [1144]

image

Could you please help me to fix it?

JetBrains 2020 Support

Describe the bug
Out of the box, this great workflow has issues with ppl using the EAP of Jetbrain Products, like Webstorm 2020.1 EAP.

According to their site, 2020.1 and above versions and 2019.3.x and below versions use difference preference folder locations on mac.

I fixed this by moving overriding the idea.properties file like for example

# custom RubyMine properties
idea.config.path=~/Library/Preferences/RubyMine2020.1/

It would be nice if this was supported out of the box. It took me hours debugging the issue and finally resolving it.

To replicate, simply install the 2020 EAP of your a product that doesn't already exist on mac and try to find a project. It will throw an error indicating preference file could not be found.

Additional context
source
image

Help wanted

Q A
Workflow version 1.0.0
OSX Version 10.14.3
Alfred Version _3.8.2
JetBrains Product/Version PhpStorm / 2019.1
Installation type classic .dmg / Caskroom / JB Toolbox

Description

Script Error:
0EDCFDD2-5D53-40C3-A1A5-9BAEA5E00A76

Step to reproduce

Just follow the instruction to install this tool.
Open Alfred to use the keyword "pycharm", then I end up with this error.
Hope someone would like to give me some tips to solve this error, thanks!

Error: Command failed: /bin/sh -c which phpstorm

Describe the bug
Cannot load or find PHPstorm projects. Get the following error:

Error: Command failed: /bin/sh -c which phpstorm
    at makeError (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/execa/index.js:174:9)
    at module.exports.sync (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/execa/index.js:338:15)
    at handleShell (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/execa/index.js:117:9)
    at Function.module.exports.shellSync (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/execa/index.js:361:43)
    at getApplicationPath (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:82:24)
    at Object.get (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/product.js:118:31)
    at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:15:38
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/src/index.js:61:3)
    at Object.<anonymous> (/usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:251206)
    at /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/node_modules/esm/esm.js:1:245054

JetBrains - Open Project - v3 1.1.0
Alfred 4.0.3
darwin 18.7.0
phpstorm 2019.2

I had created the command line launched in PHP as follows:
/usr/local/bin/pstorm

TypeError: util. getSystemErrorname is not a function

Describe the bug
Hi

  1. npm install -g @bchatard/alfred-jetbrains
  2. Generate shell scripts
  3. run and error
  4. reinstallation is invalid

Screenshots


Q A
Workflow version 1.1.4
OSX Version 10.15
Alfred Version 4.0.4
JetBrains Product/Version IDEA / 2019.2.3
Installation type JB Toolbox
Node version 8.11.3
NPM version 5.6.0

Not Opening Projects in Alfred 4 PhpStorm 2019.3.1

Describe the bug
I just installed the newest Alfred Version (4.0.7) and the newest PhpStorm Version (2019.3.1) and ran npm install -g @bchatard/alfred-jetbrains.

To Reproduce
Steps to reproduce the behavior:

  1. Alfred Shortcut
  2. Type 'pstorm PROJECT'
  3. Hit enter
  4. Notification from Toolbox visible
  5. No project nor app were opened

Expected behavior
Opens the desired project

Q A
Workflow version 1.0.0
OSX Version 10.14.6
Alfred Version 4.0.7
JetBrains Product/Version PhpStorm / 2019.3.1
Installation type JB Toolbox
Node version 10.12.0
NPM version 6.8.0

ENOENT: no such file or directory

Q A
Workflow version 1.0.3
OSX Version 17.7.0
Alfred Version 3.8.1
JetBrains Product/Version PhpStorm / 2019.1
Installation type JB Toolbox

Description

I can confirm that there is no .idea folder in this project, though for me it should not raise an error.

Error: ENOENT: no such file or directory, scandir '/Users/mathieutu/Projects/particip/.idea'
    at getFiles (/Users/mathieutu/.config/yarn/global/node_modules/@bchatard/alfred-jetbrains/src/project/name.js:4:32)
    at Object.viaIml (/Users/mathieutu/.config/yarn/global/node_modules/@bchatard/alfred-jetbrains/src/project/name.js:20:24)
    at Object.getProductName [as get] (/Users/mathieutu/.config/yarn/global/node_modules/@bchatard/alfred-jetbrains/src/project/name.js:28:43)
    at buildItem (/Users/mathieutu/.config/yarn/global/node_modules/@bchatard/alfred-jetbrains/src/project.js:7:28)
    at paths.forEach.path (/Users/mathieutu/.config/yarn/global/node_modules/@bchatard/alfred-jetbrains/src/project.js:40:20)
    at Array.forEach (<anonymous>)
    at Object.getItems (/Users/mathieutu/.config/yarn/global/node_modules/@bchatard/alfred-jetbrains/src/project.js:39:11)
    at Object.<anonymous> (/Users/mathieutu/.config/yarn/global/node_modules/@bchatard/alfred-jetbrains/src/index.js:12:23)

JetBrains - Open Project - v3 undefined
Alfred 3.8.1
darwin x64 17.7.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.