Improve compiler error display for latest Chromium #334
Annotations
2 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] (/home/runner/work/privacy.sexy/privacy.sexy/src/application/Parser/Common/ContextualError.ts:18:10)\n at ScriptCompiler.compile (/home/runner/work/privacy.sexy/privacy.sexy/src/application/Parser/Executable/Script/Compiler/ScriptCompiler.ts:69:28)\n at parseCode (/home/runner/work/privacy.sexy/privacy.sexy/src/application/Parser/Executable/Script/ScriptParser.ts:77:41)\n at Object.parseScript (/home/runner/work/privacy.sexy/privacy.sexy/src/application/Parser/Executable/Script/ScriptParser.ts:42:13)\n at parseUnknownExecutable (/home/runner/work/privacy.sexy/privacy.sexy/src/application/Parser/Executable/CategoryParser.ts:135:46)\n at parseCategoryRecursively (/home/runner/work/privacy.sexy/privacy.sexy/src/application/Parser/Executable/CategoryParser.ts:52:5)\n at parseUnknownExecutable (/home/runner/work/privacy.sexy/privacy.sexy/src/application/Parser/Executable/CategoryParser.ts:127:25)\n at parseCategoryRecursively (/home/runner/work/privacy.sexy/privacy.sexy/src/application/Parser/Executable/CategoryParser.ts:52:5)\n at Object.parseCategory (/home/runner/work/privacy.sexy/privacy.sexy/src/application/Parser/Executable/CategoryParser.ts:21:10)\n at /home/runner/work/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 para
|
|
This job failed
Loading