Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions RustAutoComplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ def run_racer(view, cmd_list):

# Copy the system environment and add the source search
# paths for racer to it
expanded_search_paths = expand_all(settings.search_paths)
env_path = ":".join(expanded_search_paths)
env = os.environ.copy()
env['RUST_SRC_PATH'] = env_path
expanded_search_paths = expand_all(settings.search_paths)
if 'RUST_SRC_PATH' in env:
expanded_search_paths.append(env['RUST_SRC_PATH'])
env['RUST_SRC_PATH'] = os.pathsep.join(expanded_search_paths)

# Run racer
startupinfo = None
Expand Down