-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathanaconda_rust.py
31 lines (22 loc) · 936 Bytes
/
anaconda_rust.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright (C) 2016 - Oscar Campos <[email protected]>
# This program is Free Software see LICENSE file for details
"""AnacondaRUST is a Rust IDE plugin for Sublime Text 3
"""
from anaconda_rust.plugin_version import anaconda_required_version
from anaconda_rust.anaconda_lib import check_racer_version
from anaconda_rust.anaconda_lib.anaconda_plugin import anaconda_version
if anaconda_required_version > anaconda_version:
raise RuntimeError(
'AnacondaRUST requires version {} or better of anaconda but {} '
'is installed'.format(
'.'.join([str(i) for i in anaconda_required_version]),
'.'.join([str(i) for i in anaconda_version])
)
)
from anaconda_rust.commands import *
from anaconda_rust.listeners import *
def plugin_loaded():
"""Called directly from sublime on plugin load
"""
# determine the installed racer version
check_racer_version()