Improve compiler error display for latest Chromium #1556
Annotations
6 errors
src/application/Parser/Common/ContextualError.ts#L18
ContextualError:
Script: Failed to parse script.
Executable: {
"name": "Clear **\"All\"** permissions",
"docs": "This script resets all permissions for applications.\nIt revokes all previously granted permissions, enhancing privacy and security by ensuring no application has unauthorized access to system services or user data.",
"call": {
"function": "ResetServicePermissions",
"parameters": {
"serviceId": "All"
}
}
}
Error Trace (starting from root cause):
1. Error: Function "RunIfCommandExists" has unexpected parameter(s) provided: "fuck".
Expected parameter(s): "command", "code", "revertCode".
2. Failed to call 'RunIfCommandExists' (callee function) from 'ResetServicePermissions' (caller function).
3. Failed to compile script: Clear **"All"** permissions
4. Script: Failed to parse script.
Executable: {
"name": "Clear **\"All\"** permissions",
"docs": "This script resets all permissions for applications.\nIt revokes all previously granted permissions, enhancing privacy and security by ensuring no application has unauthorized access to system services or user data.",
"call": {
"function": "ResetServicePermissions",
"parameters": {
"serviceId": "All"
}
}
}
❯ Object.wrapErrorWithAdditionalContext [as wrapError] ../application/Parser/Common/ContextualError.ts:18:10
❯ Object.parseScript ../application/Parser/Executable/Script/ScriptParser.ts:53:27
❯ parseUnknownExecutable ../application/Parser/Executable/CategoryParser.ts:135:46
❯ parseCategoryRecursively ../application/Parser/Executable/CategoryParser.ts:52:5
❯ parseUnknownExecutable ../application/Parser/Executable/CategoryParser.ts:127:25
❯ parseCategoryRecursively ../application/Parser/Executable/CategoryParser.ts:52:5
❯ Object.parseCategory ../application/Parser/Executable/CategoryParser.ts:21:10
❯ ../application/Parser/CategoryCollectionParser.ts:21:27
❯ Object.parseCategoryCollection ../application/Parser/CategoryCollectionParser.ts:20:38
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { context: { innerError: { stack: 'ContextualError: \n\nFailed to compile script: Clear **"All"** permissions\n\n\nError Trace (starting from root cause):\n\t1.\tError: Function "RunIfCommandExists" has unexpected parameter(s) provided: "fuck".\n\t\tExpected parameter(s): "command", "code", "revertCode".\n\t2.\tFailed to call \'RunIfCommandExists\' (callee function) from \'ResetServicePermissions\' (caller function).\n\t3.\tFailed to compile script: Clear **"All"** permissions\n\n\n at Object.wrapErrorWithAdditionalContext [as wrapError] (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Common\ContextualError.ts:18:10)\n at ScriptCompiler.compile (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\Script\Compiler\ScriptCompiler.ts:69:28)\n at parseCode (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\Script\ScriptParser.ts:77:41)\n at Object.parseScript (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\Script\ScriptParser.ts:42:13)\n at parseUnknownExecutable (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\CategoryParser.ts:135:46)\n at parseCategoryRecursively (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\CategoryParser.ts:52:5)\n at parseUnknownExecutable (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\CategoryParser.ts:127:25)\n at parseCategoryRecursively (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\CategoryParser.ts:52:5)\n at Object.parseCategory (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\CategoryParser.ts:21:10)\n at D:\a\privacy.sexy\privacy.sexy\src\application\Parser\CategoryCollectionParser.ts:21:27', message: '\n\nFailed to compile script: Clear **"All"** permissions\n\n\nError Trace (starting from root cause):\n\t1.\tError: Function "RunIfCommandExists" has unexpected parameter(s) provided: "fuck".\n\t\tExpected parameter(s): "command", "code", "revertCode".\n\t2.\tFailed to call \'RunIfCommandExists
|
tests/integration/application/Parser/ApplicationParser.spec.ts#L10
AssertionError: expected [Function act] to not throw an error but 'ContextualError: \n\nScript: Failed t…' was thrown
- Expected:
undefined
+ Received:
"ContextualError:
Script: Failed to parse script.
Executable: {
\"name\": \"Clear **\\\"All\\\"** permissions\",
\"docs\": \"This script resets all permissions for applications.\\nIt revokes all previously granted permissions, enhancing privacy and security by ensuring no application has unauthorized access to system services or user data.\",
\"call\": {
\"function\": \"ResetServicePermissions\",
\"parameters\": {
\"serviceId\": \"All\"
}
}
}
Error Trace (starting from root cause):
1. Error: Function \"RunIfCommandExists\" has unexpected parameter(s) provided: \"fuck\".
Expected parameter(s): \"command\", \"code\", \"revertCode\".
2. Failed to call 'RunIfCommandExists' (callee function) from 'ResetServicePermissions' (caller function).
3. Failed to compile script: Clear **\"All\"** permissions
4. Script: Failed to parse script.
Executable: {
\"name\": \"Clear **\\\"All\\\"** permissions\",
\"docs\": \"This script resets all permissions for applications.\\nIt revokes all previously granted permissions, enhancing privacy and security by ensuring no application has unauthorized access to system services or user data.\",
\"call\": {
\"function\": \"ResetServicePermissions\",
\"parameters\": {
\"serviceId\": \"All\"
}
}
}
"
❯ ../../tests/integration/application/Parser/ApplicationParser.spec.ts:10:26
|
tests/shared/Assertions/ExpectThrowsAsync.ts#L28
AssertionError: expected ContextualError:
Script: Failed to pars… { …(2) } to be undefined
❯ Module.expectDoesNotThrowAsync ../../tests/shared/Assertions/ExpectThrowsAsync.ts:28:17
❯ ../../tests/integration/presentation/bootstrapping/ApplicationBootstrapper.spec.ts:14:5
|
src/application/Parser/Common/ContextualError.ts#L18
ContextualError:
Script: Failed to parse script.
Executable: {
"name": "Clear **\"All\"** permissions",
"docs": "This script resets all permissions for applications.\nIt revokes all previously granted permissions, enhancing privacy and security by ensuring no application has unauthorized access to system services or user data.",
"call": {
"function": "ResetServicePermissions",
"parameters": {
"serviceId": "All"
}
}
}
Error Trace (starting from root cause):
1. Error: Function "RunIfCommandExists" has unexpected parameter(s) provided: "fuck".
Expected parameter(s): "command", "code", "revertCode".
2. Failed to call 'RunIfCommandExists' (callee function) from 'ResetServicePermissions' (caller function).
3. Failed to compile script: Clear **"All"** permissions
4. Script: Failed to parse script.
Executable: {
"name": "Clear **\"All\"** permissions",
"docs": "This script resets all permissions for applications.\nIt revokes all previously granted permissions, enhancing privacy and security by ensuring no application has unauthorized access to system services or user data.",
"call": {
"function": "ResetServicePermissions",
"parameters": {
"serviceId": "All"
}
}
}
❯ Object.wrapErrorWithAdditionalContext [as wrapError] ../application/Parser/Common/ContextualError.ts:18:10
❯ Object.parseScript ../application/Parser/Executable/Script/ScriptParser.ts:53:27
❯ parseUnknownExecutable ../application/Parser/Executable/CategoryParser.ts:135:46
❯ parseCategoryRecursively ../application/Parser/Executable/CategoryParser.ts:52:5
❯ parseUnknownExecutable ../application/Parser/Executable/CategoryParser.ts:127:25
❯ parseCategoryRecursively ../application/Parser/Executable/CategoryParser.ts:52:5
❯ Object.parseCategory ../application/Parser/Executable/CategoryParser.ts:21:10
❯ ../application/Parser/CategoryCollectionParser.ts:21:27
❯ Object.parseCategoryCollection ../application/Parser/CategoryCollectionParser.ts:20:38
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { context: { innerError: { stack: 'ContextualError: \n\nFailed to compile script: Clear **"All"** permissions\n\n\nError Trace (starting from root cause):\n\t1.\tError: Function "RunIfCommandExists" has unexpected parameter(s) provided: "fuck".\n\t\tExpected parameter(s): "command", "code", "revertCode".\n\t2.\tFailed to call \'RunIfCommandExists\' (callee function) from \'ResetServicePermissions\' (caller function).\n\t3.\tFailed to compile script: Clear **"All"** permissions\n\n\n at Object.wrapErrorWithAdditionalContext [as wrapError] (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Common\ContextualError.ts:18:10)\n at ScriptCompiler.compile (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\Script\Compiler\ScriptCompiler.ts:69:28)\n at parseCode (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\Script\ScriptParser.ts:77:41)\n at Object.parseScript (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\Script\ScriptParser.ts:42:13)\n at parseUnknownExecutable (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\CategoryParser.ts:135:46)\n at parseCategoryRecursively (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\CategoryParser.ts:52:5)\n at parseUnknownExecutable (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\CategoryParser.ts:127:25)\n at parseCategoryRecursively (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\CategoryParser.ts:52:5)\n at Object.parseCategory (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\CategoryParser.ts:21:10)\n at D:\a\privacy.sexy\privacy.sexy\src\application\Parser\CategoryCollectionParser.ts:21:27', message: '\n\nFailed to compile script: Clear **"All"** permissions\n\n\nError Trace (starting from root cause):\n\t1.\tError: Function "RunIfCommandExists" has unexpected parameter(s) provided: "fuck".\n\t\tExpected parameter(s): "command", "code", "revertCode".\n\t2.\tFailed to call \'RunIfCommandExists
|
src/application/Parser/Common/ContextualError.ts#L18
ContextualError:
Script: Failed to parse script.
Executable: {
"name": "Clear **\"All\"** permissions",
"docs": "This script resets all permissions for applications.\nIt revokes all previously granted permissions, enhancing privacy and security by ensuring no application has unauthorized access to system services or user data.",
"call": {
"function": "ResetServicePermissions",
"parameters": {
"serviceId": "All"
}
}
}
Error Trace (starting from root cause):
1. Error: Function "RunIfCommandExists" has unexpected parameter(s) provided: "fuck".
Expected parameter(s): "command", "code", "revertCode".
2. Failed to call 'RunIfCommandExists' (callee function) from 'ResetServicePermissions' (caller function).
3. Failed to compile script: Clear **"All"** permissions
4. Script: Failed to parse script.
Executable: {
"name": "Clear **\"All\"** permissions",
"docs": "This script resets all permissions for applications.\nIt revokes all previously granted permissions, enhancing privacy and security by ensuring no application has unauthorized access to system services or user data.",
"call": {
"function": "ResetServicePermissions",
"parameters": {
"serviceId": "All"
}
}
}
❯ Object.wrapErrorWithAdditionalContext [as wrapError] ../application/Parser/Common/ContextualError.ts:18:10
❯ Object.parseScript ../application/Parser/Executable/Script/ScriptParser.ts:53:27
❯ parseUnknownExecutable ../application/Parser/Executable/CategoryParser.ts:135:46
❯ parseCategoryRecursively ../application/Parser/Executable/CategoryParser.ts:52:5
❯ parseUnknownExecutable ../application/Parser/Executable/CategoryParser.ts:127:25
❯ parseCategoryRecursively ../application/Parser/Executable/CategoryParser.ts:52:5
❯ Object.parseCategory ../application/Parser/Executable/CategoryParser.ts:21:10
❯ ../application/Parser/CategoryCollectionParser.ts:21:27
❯ Object.parseCategoryCollection ../application/Parser/CategoryCollectionParser.ts:20:38
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { context: { innerError: { stack: 'ContextualError: \n\nFailed to compile script: Clear **"All"** permissions\n\n\nError Trace (starting from root cause):\n\t1.\tError: Function "RunIfCommandExists" has unexpected parameter(s) provided: "fuck".\n\t\tExpected parameter(s): "command", "code", "revertCode".\n\t2.\tFailed to call \'RunIfCommandExists\' (callee function) from \'ResetServicePermissions\' (caller function).\n\t3.\tFailed to compile script: Clear **"All"** permissions\n\n\n at Object.wrapErrorWithAdditionalContext [as wrapError] (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Common\ContextualError.ts:18:10)\n at ScriptCompiler.compile (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\Script\Compiler\ScriptCompiler.ts:69:28)\n at parseCode (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\Script\ScriptParser.ts:77:41)\n at Object.parseScript (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\Script\ScriptParser.ts:42:13)\n at parseUnknownExecutable (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\CategoryParser.ts:135:46)\n at parseCategoryRecursively (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\CategoryParser.ts:52:5)\n at parseUnknownExecutable (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\CategoryParser.ts:127:25)\n at parseCategoryRecursively (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\CategoryParser.ts:52:5)\n at Object.parseCategory (D:\a\privacy.sexy\privacy.sexy\src\application\Parser\Executable\CategoryParser.ts:21:10)\n at D:\a\privacy.sexy\privacy.sexy\src\application\Parser\CategoryCollectionParser.ts:21:27', message: '\n\nFailed to compile script: Clear **"All"** permissions\n\n\nError Trace (starting from root cause):\n\t1.\tError: Function "RunIfCommandExists" has unexpected parameter(s) provided: "fuck".\n\t\tExpected parameter(s): "command", "code", "revertCode".\n\t2.\tFailed to call \'RunIfCommandExists
|
|
This job failed
Loading