Added explicit imports for compiler modules to fix compiling nimsuggest.
See https://github.com/nim-lang/nimsuggest/issues/1
This commit is contained in:
parent
5979d35ab2
commit
6c6a52ff3a
3 changed files with 9 additions and 5 deletions
|
|
@ -10,8 +10,9 @@
|
||||||
## Nimfix is a tool that helps to convert old-style Nimrod code to Nim code.
|
## Nimfix is a tool that helps to convert old-style Nimrod code to Nim code.
|
||||||
|
|
||||||
import strutils, os, parseopt
|
import strutils, os, parseopt
|
||||||
import options, commands, modules, sem, passes, passaux, pretty, msgs, nimconf,
|
import compiler/options, compiler/commands, compiler/modules, compiler/sem,
|
||||||
extccomp, condsyms, lists
|
compiler/passes, compiler/passaux, pretty, compiler/msgs,
|
||||||
|
compiler/nimconf, compiler/extccomp, compiler/condsyms, compiler/lists
|
||||||
|
|
||||||
const Usage = """
|
const Usage = """
|
||||||
Nimfix - Tool to patch Nim code
|
Nimfix - Tool to patch Nim code
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,10 @@
|
||||||
## to convert Nim code into a consistent style.
|
## to convert Nim code into a consistent style.
|
||||||
|
|
||||||
import
|
import
|
||||||
strutils, os, options, ast, astalgo, msgs, ropes, idents,
|
strutils, os, intsets, strtabs, ropes,
|
||||||
intsets, strtabs, semdata, prettybase
|
compiler/options, compiler/ast, compiler/astalgo,
|
||||||
|
compiler/msgs, compiler/idents, compiler/semdata,
|
||||||
|
prettybase
|
||||||
|
|
||||||
type
|
type
|
||||||
StyleCheck* {.pure.} = enum None, Warn, Auto
|
StyleCheck* {.pure.} = enum None, Warn, Auto
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@
|
||||||
# distribution, for details about the copyright.
|
# 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
|
from os import splitFile
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue