Skip to content

feat: optional parameters must be passed by name #3102

feat: optional parameters must be passed by name

feat: optional parameters must be passed by name #3102

Triggered via pull request January 7, 2025 11:22
Status Failure
Total duration 2m 5s
Artifacts

pr.yml

on: pull_request
Matrix: build-dsl
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts > examples > ['safeds/lang/coreClasses.sdsstub'] > 'join': packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts#L185
AssertionError: Example has errors or warnings: - argument/positional: Argument must be named if the parameter is optional. at file:///home/runner/work/DSL/DSL/packages/safe-ds-lang/src/resources/builtins/safeds/lang/coreClasses.sdsstub:132:5 -> 134:57 - Expected + Received - Array [] + Array [ + Object { + "code": "argument/positional", + "codeDescription": undefined, + "data": undefined, + "message": "Argument must be named if the parameter is optional.", + "range": Object { + "end": Object { + "character": 35, + "line": 1, + }, + "start": Object { + "character": 32, + "line": 1, + }, + }, + "relatedInformation": undefined, + "severity": 1, + "source": "safe-ds", + "tags": undefined, + }, + ] ❯ new InvalidExampleError packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:185:9 ❯ packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:95:27
packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts > examples > ['safeds/lang/coreClasses.sdsstub'] > 'slice': packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts#L185
AssertionError: Example has errors or warnings: - argument/positional: Argument must be named if the parameter is optional. at file:///home/runner/work/DSL/DSL/packages/safe-ds-lang/src/resources/builtins/safeds/lang/coreClasses.sdsstub:147:5 -> 149:72 - argument/positional: Argument must be named if the parameter is optional. at file:///home/runner/work/DSL/DSL/packages/safe-ds-lang/src/resources/builtins/safeds/lang/coreClasses.sdsstub:147:5 -> 149:72 - Expected + Received - Array [] + Array [ + Object { + "code": "argument/positional", + "codeDescription": undefined, + "data": undefined, + "message": "Argument must be named if the parameter is optional.", + "range": Object { + "end": Object { + "character": 33, + "line": 1, + }, + "start": Object { + "character": 32, + "line": 1, + }, + }, + "relatedInformation": undefined, + "severity": 1, + "source": "safe-ds", + "tags": undefined, + }, + Object { + "code": "argument/positional", + "codeDescription": undefined, + "data": undefined, + "message": "Argument must be named if the parameter is optional.", + "range": Object { + "end": Object { + "character": 36, + "line": 1, + }, + "start": Object { + "character": 35, + "line": 1, + }, + }, + "relatedInformation": undefined, + "severity": 1, + "source": "safe-ds", + "tags": undefined, + }, + ] ❯ new InvalidExampleError packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:185:9 ❯ packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:95:27
packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts > examples > ['safeds/lang/coreClasses.sdsstub'] > 'substring': packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts#L185
AssertionError: Example has errors or warnings: - argument/positional: Argument must be named if the parameter is optional. at file:///home/runner/work/DSL/DSL/packages/safe-ds-lang/src/resources/builtins/safeds/lang/coreClasses.sdsstub:299:5 -> 301:81 - argument/positional: Argument must be named if the parameter is optional. at file:///home/runner/work/DSL/DSL/packages/safe-ds-lang/src/resources/builtins/safeds/lang/coreClasses.sdsstub:299:5 -> 301:81 - Expected + Received - Array [] + Array [ + Object { + "code": "argument/positional", + "codeDescription": undefined, + "data": undefined, + "message": "Argument must be named if the parameter is optional.", + "range": Object { + "end": Object { + "character": 47, + "line": 1, + }, + "start": Object { + "character": 46, + "line": 1, + }, + }, + "relatedInformation": undefined, + "severity": 1, + "source": "safe-ds", + "tags": undefined, + }, + Object { + "code": "argument/positional", + "codeDescription": undefined, + "data": undefined, + "message": "Argument must be named if the parameter is optional.", + "range": Object { + "end": Object { + "character": 51, + "line": 1, + }, + "start": Object { + "character": 49, + "line": 1, + }, + }, + "relatedInformation": undefined, + "severity": 1, + "source": "safe-ds", + "tags": undefined, + }, + ] ❯ new InvalidExampleError packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:185:9 ❯ packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:95:27
packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts > examples > ['safeds/data/tabular/typing/Schema.sdsstub'] > 'getColumnType': packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts#L185
AssertionError: Example has errors or warnings: - argument/positional: Argument must be named if the parameter is optional. at file:///home/runner/work/DSL/DSL/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/typing/Schema.sdsstub:27:5 -> 31:24 - Expected + Received - Array [] + Array [ + Object { + "code": "argument/positional", + "codeDescription": undefined, + "data": undefined, + "message": "Argument must be named if the parameter is optional.", + "range": Object { + "end": Object { + "character": 60, + "line": 1, + }, + "start": Object { + "character": 22, + "line": 1, + }, + }, + "relatedInformation": undefined, + "severity": 1, + "source": "safe-ds", + "tags": undefined, + }, + ] ❯ new InvalidExampleError packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:185:9 ❯ packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:95:27
packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts > examples > ['safeds/data/tabular/typing/Schema.sdsstub'] > 'hasColumn': packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts#L185
AssertionError: Example has errors or warnings: - argument/positional: Argument must be named if the parameter is optional. at file:///home/runner/work/DSL/DSL/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/typing/Schema.sdsstub:52:5 -> 56:27 - Expected + Received - Array [] + Array [ + Object { + "code": "argument/positional", + "codeDescription": undefined, + "data": undefined, + "message": "Argument must be named if the parameter is optional.", + "range": Object { + "end": Object { + "character": 60, + "line": 1, + }, + "start": Object { + "character": 22, + "line": 1, + }, + }, + "relatedInformation": undefined, + "severity": 1, + "source": "safe-ds", + "tags": undefined, + }, + ] ❯ new InvalidExampleError packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:185:9 ❯ packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:95:27
packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts > examples > ['safeds/data/tabular/typing/Schema.sdsstub'] > 'hasColumn': packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts#L185
AssertionError: Example has errors or warnings: - argument/positional: Argument must be named if the parameter is optional. at file:///home/runner/work/DSL/DSL/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/typing/Schema.sdsstub:52:5 -> 56:27 - Expected + Received - Array [] + Array [ + Object { + "code": "argument/positional", + "codeDescription": undefined, + "data": undefined, + "message": "Argument must be named if the parameter is optional.", + "range": Object { + "end": Object { + "character": 60, + "line": 1, + }, + "start": Object { + "character": 22, + "line": 1, + }, + }, + "relatedInformation": undefined, + "severity": 1, + "source": "safe-ds", + "tags": undefined, + }, + ] ❯ new InvalidExampleError packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:185:9 ❯ packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:95:27
packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts > examples > ['safeds/data/tabular/typing/Schema.sdsstub'] > 'toMap': packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts#L185
AssertionError: Example has errors or warnings: - argument/positional: Argument must be named if the parameter is optional. at file:///home/runner/work/DSL/DSL/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/typing/Schema.sdsstub:69:5 -> 71:47 - Expected + Received - Array [] + Array [ + Object { + "code": "argument/positional", + "codeDescription": undefined, + "data": undefined, + "message": "Argument must be named if the parameter is optional.", + "range": Object { + "end": Object { + "character": 60, + "line": 1, + }, + "start": Object { + "character": 22, + "line": 1, + }, + }, + "relatedInformation": undefined, + "severity": 1, + "source": "safe-ds", + "tags": undefined, + }, + ] ❯ new InvalidExampleError packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:185:9 ❯ packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:95:27
packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts > examples > ['safeds/data/tabular/transformation/StandardScaler.sdsstub'] > 'StandardScaler': packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts#L185
AssertionError: Example has errors or warnings: - argument/positional: Argument must be named if the parameter is optional. at file:///home/runner/work/DSL/DSL/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/transformation/StandardScaler.sdsstub:21:1 -> 53:2 - Expected + Received - Array [] + Array [ + Object { + "code": "argument/positional", + "codeDescription": undefined, + "data": undefined, + "message": "Argument must be named if the parameter is optional.", + "range": Object { + "end": Object { + "character": 38, + "line": 1, + }, + "start": Object { + "character": 22, + "line": 1, + }, + }, + "relatedInformation": undefined, + "severity": 1, + "source": "safe-ds", + "tags": undefined, + }, + ] ❯ new InvalidExampleError packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:185:9 ❯ packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:95:27
packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts > examples > ['safeds/data/tabular/transformation/SimpleImputer.sdsstub'] > 'SimpleImputer': packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts#L185
AssertionError: Example has errors or warnings: - argument/positional: Argument must be named if the parameter is optional. at file:///home/runner/work/DSL/DSL/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/transformation/SimpleImputer.sdsstub:29:1 -> 103:2 - Expected + Received - Array [] + Array [ + Object { + "code": "argument/positional", + "codeDescription": undefined, + "data": undefined, + "message": "Argument must be named if the parameter is optional.", + "range": Object { + "end": Object { + "character": 50, + "line": 1, + }, + "start": Object { + "character": 21, + "line": 1, + }, + }, + "relatedInformation": undefined, + "severity": 1, + "source": "safe-ds", + "tags": undefined, + }, + ] ❯ new InvalidExampleError packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:185:9 ❯ packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:95:27
packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts > examples > ['safeds/data/tabular/transformation/SimpleImputer.sdsstub'] > 'SimpleImputer': packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts#L185
AssertionError: Example has errors or warnings: - argument/positional: Argument must be named if the parameter is optional. at file:///home/runner/work/DSL/DSL/packages/safe-ds-lang/src/resources/builtins/safeds/data/tabular/transformation/SimpleImputer.sdsstub:29:1 -> 103:2 - Expected + Received - Array [] + Array [ + Object { + "code": "argument/positional", + "codeDescription": undefined, + "data": undefined, + "message": "Argument must be named if the parameter is optional.", + "range": Object { + "end": Object { + "character": 50, + "line": 1, + }, + "start": Object { + "character": 21, + "line": 1, + }, + }, + "relatedInformation": undefined, + "severity": 1, + "source": "safe-ds", + "tags": undefined, + }, + ] ❯ new InvalidExampleError packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:185:9 ❯ packages/safe-ds-lang/tests/language/builtins/builtinFilesCorrectness.test.ts:95:27
build-dsl (18.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636