Issue #8
Fixed configuration file parsing: byLine requires that the file be opened in text mode to properly handle CRLF line endings. Added build batch file.
This commit is contained in:
parent
204ab386eb
commit
8cc0f2546d
|
@ -0,0 +1,2 @@
|
||||||
|
dmd -wi client.d messages.d msgpack-d/src/msgpack.d -Imsgpack-d/src -ofdcd-client -L/exet:nt/su:windows:4.0
|
||||||
|
dmd -wi -g server.d modulecache.d actypes.d messages.d constants.d acvisitor.d autocomplete.d dscanner/stdx/d/ast.d dscanner/stdx/d/parser.d dscanner/stdx/d/lexer.d dscanner/stdx/d/entities.d msgpack-d/src/msgpack.d -Imsgpack-d/src -Idscanner/ -ofdcd-server
|
3
server.d
3
server.d
|
@ -154,7 +154,8 @@ string[] loadConfiguredImportDirs()
|
||||||
|
|
||||||
if (!exists(fullPath))
|
if (!exists(fullPath))
|
||||||
return [];
|
return [];
|
||||||
File f = File(fullPath);
|
|
||||||
|
File f = File(fullPath, "rt");
|
||||||
return f.byLine(KeepTerminator.no).map!(a => a.idup).filter!(a => a.exists()).array();
|
return f.byLine(KeepTerminator.no).map!(a => a.idup).filter!(a => a.exists()).array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue