GeezerVison is showing github.com — fix #1208 · sirusdv/pythonVSCode@5bf9142
File tree
Expand file treeCollapse file tree
Open diff view settings
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss bannerExpand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: pythonFiles/refactor.py +11-6Lines changed: 11 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
6 | 6 | import sys |
7 | 7 | import json |
8 | 8 | import traceback |
9 | | -import rope |
10 | 9 |
|
11 | | -from rope.base import libutils |
12 | | -from rope.refactor.rename import Rename |
13 | | -from rope.refactor.extract import ExtractMethod, ExtractVariable |
14 | | -import rope.base.project |
15 | | -import rope.base.taskhandle |
| 10 | +try: |
| 11 | + import rope |
| 12 | + from rope.base import libutils |
| 13 | + from rope.refactor.rename import Rename |
| 14 | + from rope.refactor.extract import ExtractMethod, ExtractVariable |
| 15 | + import rope.base.project |
| 16 | + import rope.base.taskhandle |
| 17 | +except: |
| 18 | + jsonMessage = {'error': True, 'message': 'Rope not installed', 'traceback': '', 'type': 'ModuleNotFoundError'} |
| 19 | + sys.stderr.write(json.dumps(jsonMessage)) |
| 20 | + sys.stderr.flush() |
16 | 21 |
|
17 | 22 | WORKSPACE_ROOT = sys.argv[1] |
18 | 23 | ROPE_PROJECT_FOLDER = '.vscode/.ropeproject' |
|
Collapse file
Copy file name to clipboardExpand all lines: pythonFiles/rope/__init__.py -18Lines changed: 0 additions & 18 deletions Collapse file
Copy file name to clipboardExpand all lines: pythonFiles/rope/base/__init__.py -8Lines changed: 0 additions & 8 deletions Collapse file
Copy file name to clipboardExpand all lines: pythonFiles/rope/base/arguments.py -111Lines changed: 0 additions & 111 deletions Collapse file
Copy file name to clipboardExpand all lines: pythonFiles/rope/base/ast.py -76Lines changed: 0 additions & 76 deletions Collapse file
Copy file name to clipboardExpand all lines: pythonFiles/rope/base/astutils.py -64Lines changed: 0 additions & 64 deletions