11.08., 9:00 - 11:00: Due to updates GitLab will be unavailable for some minutes between 09:00 and 11:00.

Commit 06e3c3ff authored by di68kap's avatar di68kap

- tasks.json: Starte wieder MLWCompiler.py statt MLWServer.py wg. seltsamer Fehler

parent b5fa4569
...@@ -44,12 +44,14 @@ For JSON see: ...@@ -44,12 +44,14 @@ For JSON see:
# TODO: Test with python 3.5 # TODO: Test with python 3.5
import asyncio import asyncio
from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor, CancelledError from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor, CancelledError, \
BrokenExecutor
import json import json
from multiprocessing import Process, Queue, Value, Array from multiprocessing import Process, Queue, Value, Array
import sys import sys
import time import time
from typing import Callable, Coroutine, Optional, Union, Dict, List, Tuple, Sequence, Set, Any, cast from typing import Callable, Coroutine, Optional, Union, Dict, List, Tuple, Sequence, Set, Any, \
cast
from DHParser.syntaxtree import DHParser_JSONEncoder from DHParser.syntaxtree import DHParser_JSONEncoder
from DHParser.toolkit import get_config_value, re from DHParser.toolkit import get_config_value, re
...@@ -255,6 +257,8 @@ class Server: ...@@ -255,6 +257,8 @@ class Server:
rpc_error = -32602, "Invalid Params: " + str(e) rpc_error = -32602, "Invalid Params: " + str(e)
except NameError as e: except NameError as e:
rpc_error = -32601, "Method not found: " + str(e) rpc_error = -32601, "Method not found: " + str(e)
except BrokenExecutor as e:
rpc_error = -32000, "Broken Executor: " + str(e)
except Exception as e: except Exception as e:
rpc_error = -32000, "Server Error: " + str(e) rpc_error = -32000, "Server Error: " + str(e)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment