react-native/local-cli/server
Eric Palakovich Carr 38d275f8b5 Red Box should open PyCharm at line number of error
Summary:
This is a simple one line change.  When a red box is launching the editor, if `launchEditor.js` is aware of your editor it can also add a line number to open the file at.  So if the stacktrace shows an error on like 56 in `ako.js` then it'll try`wstorm /Users/somelady/src/project/ako.js:56` instead of `wstorm /Users/somelady/src/project/ako.js`.

This adds PyCharm's command line launcher, which is named `charm`.  There is existing logic to handle other JetBrains editors, so I just did a simple one line addition.

**Test plan (required)**

* Install PyCharm (if needed)
* Set environment variable `REACT_EDITOR` to `charm`
* Open PyCharm
* Add/replace the current `charm` command via `Tools -> Create Command-line launcher...` in PyCharm.
* Run a React Native project with an error in the source code.
* In the generated red box, click on one of the entries in the stack trace
* File should open in PyCharm at the correct line number.
Closes https://github.com/facebook/react-native/pull/11275

Differential Revision: D4295724

Pulled By: javache

fbshipit-source-id: 29dec525f76c2f0a3ee203cac67408eecc8ac6b6
2016-12-07 17:13:42 -08:00
..
middleware ignore heap captures 2016-12-02 08:28:32 -08:00
util Red Box should open PyCharm at line number of error 2016-12-07 17:13:42 -08:00
checkNodeVersion.js Use a separate babel config for the local-cli and the packager 2016-05-21 06:58:26 -07:00
findSymlinksPaths.js Support symlinks-to-symlinks 2016-09-15 05:28:34 -07:00
formatBanner.js fix banner for old node version 2016-06-22 03:43:33 -07:00
runServer.js Allow custom platforms for the RN Packager on a per-project basis 2016-12-02 09:43:31 -08:00
server.js Allow custom platforms for the RN Packager on a per-project basis 2016-12-02 09:43:31 -08:00