diff --git a/server/src/server.ts b/server/src/server.ts
index dd293b53c1a9622a76e28c503cf3f92c5beff1be..946a8ef519e2215071ec837712fe914705f96c30 100644
--- a/server/src/server.ts
+++ b/server/src/server.ts
@@ -166,10 +166,16 @@ async function validateTextDocument(textDocument: TextDocument): Promise<void> {
 
 	let documentPath: path.ParsedPath = path.parse(URI.parse(textDocument.uri).path);
 
-	let errorPath: string = documentPath.dir + '/_error.json'
+	let errorDic : string = documentPath.dir + '/tmp'
+	let errorPath: string = errorDic + '/_error.json'
+
 
 	const { exec } = require('child_process');
 
+	if (!fs.existsSync(errorDic)){
+		fs.mkdirSync(errorDic);
+	}
+
 	fs.writeFile(errorPath, "", () => { }) //Insure a clean error file
 
 	let command: string = getCommand(URI.parse(textDocument.uri).path, errorPath, settings)