add --processing:dots|filenames|off to customize hintProcessing (#17817)
This commit is contained in:
parent
56859fe851
commit
e4a3feeb92
15 changed files with 50 additions and 30 deletions
2
nimsuggest/config.nims
Normal file
2
nimsuggest/config.nims
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# xxx not sure why this flag isn't needed: switch("processing", "filenames")
|
||||
switch("filenames", "canonical")
|
||||
|
|
@ -255,7 +255,6 @@ proc runEpcTest(filename: string): int =
|
|||
options={poStdErrToStdOut, poUsePath,
|
||||
poInteractive, poDaemon})
|
||||
let outp = p.outputStream
|
||||
let inp = p.inputStream
|
||||
var report = ""
|
||||
var socket = newSocket()
|
||||
try:
|
||||
|
|
@ -315,8 +314,12 @@ proc runTest(filename: string): int =
|
|||
answer.add '\L'
|
||||
doReport(filename, answer, resp, report)
|
||||
finally:
|
||||
inp.writeLine("quit")
|
||||
inp.flush()
|
||||
try:
|
||||
inp.writeLine("quit")
|
||||
inp.flush()
|
||||
except:
|
||||
# assume it's SIGPIPE, ie, the child already died
|
||||
discard
|
||||
close(p)
|
||||
if report.len > 0:
|
||||
echo "==== STDIN ======================================"
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ proc main =
|
|||
discard """
|
||||
$nimsuggest --tester $file
|
||||
>chk $1
|
||||
chk;;skUnknown;;;;Hint;;???;;0;;-1;;"tchk1 [Processing]";;0
|
||||
chk;;skUnknown;;;;Hint;;???;;0;;-1;;"tests/tchk1.nim [Processing]";;0
|
||||
chk;;skUnknown;;;;Error;;$file;;12;;0;;"identifier expected, but got \'keyword template\'";;0
|
||||
chk;;skUnknown;;;;Error;;$file;;14;;0;;"nestable statement requires indentation";;0
|
||||
chk;;skUnknown;;;;Error;;$file;;12;;0;;"implementation of \'foo\' expected";;0
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@ discard compiles(2 + "hello")
|
|||
discard """
|
||||
$nimsuggest --tester $file
|
||||
>chk $1
|
||||
chk;;skUnknown;;;;Hint;;???;;0;;-1;;"tchk_compiles [Processing]";;0
|
||||
chk;;skUnknown;;;;Hint;;???;;0;;-1;;"tests/tchk_compiles.nim [Processing]";;0
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ foo()
|
|||
discard """
|
||||
$nimsuggest --tester $file
|
||||
>chk $1
|
||||
chk;;skUnknown;;;;Hint;;???;;0;;-1;;"ttempl_inst [Processing]";;0
|
||||
chk;;skUnknown;;;;Hint;;???;;0;;-1;;"tests/ttempl_inst.nim [Processing]";;0
|
||||
chk;;skUnknown;;;;Hint;;$file;;4;;3;;"template/generic instantiation from here";;0
|
||||
chk;;skUnknown;;;;Warning;;$file;;2;;11;;"foo [User]";;0
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue