From 6c6a52ff3ae260221ad99f048c7a9effcaa5111e Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Fri, 24 Apr 2015 10:06:56 -0600 Subject: [PATCH] Added explicit imports for compiler modules to fix compiling nimsuggest. See https://github.com/nim-lang/nimsuggest/issues/1 --- compiler/nimfix/nimfix.nim | 5 +++-- compiler/nimfix/pretty.nim | 6 ++++-- compiler/nimfix/prettybase.nim | 3 ++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/compiler/nimfix/nimfix.nim b/compiler/nimfix/nimfix.nim index 7b42537c42..0c5e2a88bd 100644 --- a/compiler/nimfix/nimfix.nim +++ b/compiler/nimfix/nimfix.nim @@ -10,8 +10,9 @@ ## Nimfix is a tool that helps to convert old-style Nimrod code to Nim code. import strutils, os, parseopt -import options, commands, modules, sem, passes, passaux, pretty, msgs, nimconf, - extccomp, condsyms, lists +import compiler/options, compiler/commands, compiler/modules, compiler/sem, + compiler/passes, compiler/passaux, pretty, compiler/msgs, + compiler/nimconf, compiler/extccomp, compiler/condsyms, compiler/lists const Usage = """ Nimfix - Tool to patch Nim code diff --git a/compiler/nimfix/pretty.nim b/compiler/nimfix/pretty.nim index acac574af3..081a1d3727 100644 --- a/compiler/nimfix/pretty.nim +++ b/compiler/nimfix/pretty.nim @@ -11,8 +11,10 @@ ## to convert Nim code into a consistent style. import - strutils, os, options, ast, astalgo, msgs, ropes, idents, - intsets, strtabs, semdata, prettybase + strutils, os, intsets, strtabs, ropes, + compiler/options, compiler/ast, compiler/astalgo, + compiler/msgs, compiler/idents, compiler/semdata, + prettybase type StyleCheck* {.pure.} = enum None, Warn, Auto diff --git a/compiler/nimfix/prettybase.nim b/compiler/nimfix/prettybase.nim index 225b784791..839c1ff8f0 100644 --- a/compiler/nimfix/prettybase.nim +++ b/compiler/nimfix/prettybase.nim @@ -7,7 +7,8 @@ # distribution, for details about the copyright. # -import ast, msgs, strutils, idents, lexbase, streams +import strutils, lexbase, streams, compiler/ast, compiler/msgs, + compiler/idents from os import splitFile type