facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.8k stars 26.88k forks source link

REACT_EDITOR=idea does not work #7629

Closed extempl closed 5 years ago

extempl commented 5 years ago

Describe the bug

According to this line: https://github.com/facebook/create-react-app/blob/2874e1209e14c7bff6c51fa3d73a53c5a15944cf/packages/react-dev-utils/launchEditor.js#L68-L69 it looks like it should have different format. However, on try opening the file I getting

open: unrecognized option `--line'

Anyway, when I trying to manually open the file it doesn't work with name:line neither with --line parameter, as it looks like it uses open command:

$ which idea
/usr/local/bin/idea

$ cat /usr/local/bin/idea
#!/bin/sh
# Generated by JetBrains Toolbox 1.15.5796 at Mon Sep 2 16:09:31 2019

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

P.S., so the command added by toolbox, and it has different format from what described here: https://www.jetbrains.com/help/idea/opening-files-from-command-line.html

Environment

MacOS, IDEA

extempl commented 5 years ago

Looks like the IDEA's issue (Jetbrains Toolbox to be precise): https://youtrack.jetbrains.com/issue/TBX-3846. So, closing this here.