Error map

Ambiguous use of 'init' / trailing closure error: ambiguous use of 'init(content:)'

iOS · layer 1, On your device

Open the full error page →

Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

Ambiguous use of 'init' / trailing closure — error: ambiguous use of 'init(content:)' (iOS)Ambiguous u…Type of expression is ambiguous — Swift: Type of expression is ambiguous without a type annotation (more context) (iOS)Type of expression …Type does not conform to protocol — error: Type 'User' does not conform to protocol 'Decodable' (iOS)Type does not confo…when expression must be exhaustive (sealed class) — error: 'when' expression must be exhaustive, add necessary 'is Loading' branch or 'else' branch instead (Android)when expression mus…Smart cast to 'X' is impossible, because 'y' is a mutable property that could have been changed by this time — error: Smart cast to 'String' is impossible, because 'name' is a mutable property that could have been changed by this time (Android)Smart cast to 'X' i…Type mismatch: inferred type is X but Y was expected — error: Type mismatch: inferred type is String? but String was expected (Android)Type mismatch: infe…warning: refname 'v1' is ambiguous — warning: refname 'release' is ambiguous. Git normally never creates a ref that ends with 40 hex characters (Git)warning: refname 'v…fatal: Cannot rebase onto multiple branches — fatal: Cannot rebase onto multiple branches. (Git)fatal: Cannot rebas…Value of optional type must be unwrapped — error: Value of optional type 'String?' must be unwrapped to a value of type 'String' (iOS)Value of optional t…Missing return in a function expected to return — error: Missing return in a function expected to return 'Int' (iOS)Missing return in a…Switch must be exhaustive — error: Switch must be exhaustive / add missing case: '.pending' (iOS)Switch must be exha…Cannot find 'x' in scope — error: Cannot find 'viewModel' in scope (iOS)Cannot find 'x' in …Use of unresolved identifier — error: Use of unresolved identifier 'ProfileView' (iOS)Use of unresolved i…CS0246 — error CS0246: The type or namespace name 'X' could not be found (are you missing a using directive or an assembly reference?) (.NET)CS0246CS0103 — error CS0103: The name 'x' does not exist in the current context (.NET)CS0103CS1061 — error CS1061: 'X' does not contain a definition for 'Y' and no accessible extension method 'Y' accepting a first argument of type 'X' could be found (.NET)CS1061Cannot convert value of type — Swift: Cannot convert value of type 'X' to expected argument type 'Y' (iOS)Cannot convert valu…DecodingError — Swift DecodingError: keyNotFound / typeMismatch / valueNotFound / dataCorrupted (iOS)DecodingErrorfatal: protocol error: bad pack header — fatal: protocol error: bad pack header (Git)fatal: protocol err…Compose Compiler requires a different Kotlin version — This version (1.5.3) of the Compose Compiler requires Kotlin version 1.9.10 but you appear to be using Kotlin version 1.9.0 (Android)Compose Compiler re…Duplicate class kotlin.collections found in modules — Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules kotlin-stdlib-1.8.0 and kotlin-stdlib-jdk8-1.7.10 (Android)Duplicate class kot…UninitializedPropertyAccessException: lateinit property has not been initialized — kotlin.UninitializedPropertyAccessException: lateinit property adapter has not been initialized (Android)UninitializedProper…JobCancellationException: StandaloneCoroutine was cancelled — kotlinx.coroutines.JobCancellationException: StandaloneCoroutine was cancelled; job=StandaloneCoroutine{Cancelling}@a1b2c3 (Android)JobCancellationExce…NullPointerException: Parameter specified as non-null is null — java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter intent (Android)NullPointerExceptio…'nil' requires a contextual type / Cannot infer type — error: 'nil' requires a contextual type (iOS)'nil' requires a co…ClassCastException — java.lang.ClassCastException: class A cannot be cast to class B (Java)ClassCastExceptionInconsistent JVM-target compatibility — Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (17) and 'compileDebugKotlin' (1.8) (Android)Inconsistent JVM-ta…The argument type can't be assigned to the parameter type — Dart: The argument type 'String?' can't be assigned to the parameter type 'String' (Flutter / Dart)The argument type c…unknown revision HEAD — fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. (Git)unknown revision HE…fatal: tag already exists — fatal: tag 'v1.0.0' already exists (Git)fatal: tag already …error: Cannot delete branch checked out at — error: Cannot delete branch 'main' checked out at '/home/user/repo' (Git)error: Cannot delet…Rebase stopped: CONFLICT (content), resolve then git rebase --continue — Resolve all conflicts manually, mark them as resolved with "git add/rm <conflicted_files>", then run "git rebase --continue". (Git)Rebase stopped: CON…git merge -X theirs vs ours (swapped during rebase) — (behavior) "ours" and "theirs" are reversed in git rebase (Git)git merge -X theirs…git rebase --autosquash did not reorder fixup commits — (behavior) fixup! commits left in place after rebase -i --autosquash (Git)git rebase --autosq…Unexpectedly found nil — Fatal error: Unexpectedly found nil while unwrapping an Optional value (iOS)Unexpectedly found …Missing argument for parameter / Extra argument in call — error: Missing argument for parameter 'id' in call (iOS)Missing argument fo…Cannot use instance member as a default parameter — error: cannot use instance member 'x' as a default parameter (iOS)Cannot use instance…Argument of '#selector' refers to instance method that is not exposed to Objective-C — error: argument of '#selector' refers to instance method 'tap()' that is not exposed to Objective-C (iOS)Argument of '#selec…Result of call is unused (warning) — warning: result of call to 'foo()' is unused (iOS)Result of call is u…'init' is inaccessible due to 'private' protection level — error: 'init' is inaccessible due to 'internal' protection level (iOS)'init' is inaccessi…Duplex mismatch: late collisions / CRC errors — Networking: Duplex mismatch — late collisions, runts and CRC errors on the switch port (Networking)Duplex mismatch: la…Native VLAN mismatch / wrong VLAN, no connectivity — Networking: %CDP-4-NATIVE_VLAN_MISMATCH / device on the wrong VLAN can't reach the gateway (Networking)Native VLAN mismatc…MAC flapping / broadcast storm (spanning tree loop) — Networking: %SW_MATM-4-MACFLAP_NOTIF: Host is flapping between ports / broadcast storm (Networking)MAC flapping / broa…Index out of range — Swift: Fatal error: Index out of range (iOS)Index out of rangeCould not cast value of type — Swift: Could not cast value of type 'X' to 'Y' (iOS)Could not cast valu…No such module — Swift: No such module 'X' (module not found) (iOS)No such module

Directly related (12)

Type of expression is ambiguousiOS

Swift: Type of expression is ambiguous without a type annotation (more context)

The compiler can’t infer which type you mean — often because of a typo or a wrong argument elsewhere in the expression.

Type does not conform to protocoliOS

error: Type 'User' does not conform to protocol 'Decodable'

A type doesn't satisfy a protocol's requirements.

when expression must be exhaustive (sealed class)Android

error: 'when' expression must be exhaustive, add necessary 'is Loading' branch or 'else' branch instead

A `when` used as an expression doesn't cover all sealed subclasses.

Smart cast to 'X' is impossible, because 'y' is a mutable property that could have been changed by this timeAndroid

error: Smart cast to 'String' is impossible, because 'name' is a mutable property that could have been changed by this time

Kotlin can't smart-cast a `var` property that may change.

Type mismatch: inferred type is X but Y was expectedAndroid

error: Type mismatch: inferred type is String? but String was expected

A nullable value is passed where non-null is required (or vice versa).

warning: refname 'v1' is ambiguousGit

warning: refname 'release' is ambiguous. Git normally never creates a ref that ends with 40 hex characters

A branch and a tag share a name.

fatal: Cannot rebase onto multiple branchesGit

fatal: Cannot rebase onto multiple branches.

The branch name you gave matches several refs.

Value of optional type must be unwrappediOS

error: Value of optional type 'String?' must be unwrapped to a value of type 'String'

You used an optional where a non-optional value is required.

Missing return in a function expected to returniOS

error: Missing return in a function expected to return 'Int'

A code path in your function ends without returning a value.

Switch must be exhaustiveiOS

error: Switch must be exhaustive / add missing case: '.pending'

A `switch` doesn't cover every enum case.

Cannot find 'x' in scopeiOS

error: Cannot find 'viewModel' in scope

The name isn't visible where you use it.

Use of unresolved identifieriOS

error: Use of unresolved identifier 'ProfileView'

Older compilers' wording for "cannot find in scope".

Two steps away (33)

CS0246.NET

error CS0246: The type or namespace name 'X' could not be found (are you missing a using directive or an assembly reference?)

The compiler doesn’t know the type — missing using, missing NuGet package/project reference, or a target framework mismatch.

CS0103.NET

error CS0103: The name 'x' does not exist in the current context

The identifier isn’t declared in scope — typo, variable declared in another block, missing using static, or a Razor/partial class…

CS1061.NET

error CS1061: 'X' does not contain a definition for 'Y' and no accessible extension method 'Y' accepting a first argument of type 'X' could be found

The member you call doesn’t exist on that type — typo, wrong type, missing using for an extension method, or an API removed in a…

Cannot convert value of typeiOS

Swift: Cannot convert value of type 'X' to expected argument type 'Y'

The value’s type doesn’t match what the function or property expects.

DecodingErroriOS

Swift DecodingError: keyNotFound / typeMismatch / valueNotFound / dataCorrupted

JSONDecoder couldn’t map the JSON to your Codable type — a key is missing, a value has a different type or is null, or the data i…

fatal: protocol error: bad pack headerGit

fatal: protocol error: bad pack header

Git received garbage instead of a pack, from a proxy or broken server.

Compose Compiler requires a different Kotlin versionAndroid

This version (1.5.3) of the Compose Compiler requires Kotlin version 1.9.10 but you appear to be using Kotlin version 1.9.0

The Compose compiler plugin is tied to one exact Kotlin release and yours differs.

Duplicate class kotlin.collections found in modulesAndroid

Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules kotlin-stdlib-1.8.0 and kotlin-stdlib-jdk8-1.7.10

Two Kotlin stdlib artifacts contain the same classes and conflict at build time.

UninitializedPropertyAccessException: lateinit property has not been initializedAndroid

kotlin.UninitializedPropertyAccessException: lateinit property adapter has not been initialized

A `lateinit var` was read before anything assigned it.

JobCancellationException: StandaloneCoroutine was cancelledAndroid

kotlinx.coroutines.JobCancellationException: StandaloneCoroutine was cancelled; job=StandaloneCoroutine{Cancelling}@a1b2c3

A coroutine was cancelled, usually because its scope ended.

NullPointerException: Parameter specified as non-null is nullAndroid

java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter intent

Java code passed null to a Kotlin parameter that is non-null.

'nil' requires a contextual type / Cannot infer typeiOS

error: 'nil' requires a contextual type

Swift can't infer the type of a bare `nil`.

ClassCastExceptionJava

java.lang.ClassCastException: class A cannot be cast to class B

An object was cast to a type it isn’t.

Inconsistent JVM-target compatibilityAndroid

Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (17) and 'compileDebugKotlin' (1.8)

Java and Kotlin compile tasks target different JVM bytecode versions in the same module.

The argument type can't be assigned to the parameter typeFlutter / Dart

Dart: The argument type 'String?' can't be assigned to the parameter type 'String'

You passed a value whose type does not match what the function parameter requires.

unknown revision HEADGit

fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.

The repository has no commits yet (or the ref doesn’t exist), so HEAD can’t be resolved.

fatal: tag already existsGit

fatal: tag 'v1.0.0' already exists

A tag with that name exists already.

error: Cannot delete branch checked out atGit

error: Cannot delete branch 'main' checked out at '/home/user/repo'

You can't delete a branch that is checked out in this or another worktree.

Rebase stopped: CONFLICT (content), resolve then git rebase --continueGit

Resolve all conflicts manually, mark them as resolved with "git add/rm <conflicted_files>", then run "git rebase --continue".

A commit being replayed conflicts with the new base.

git merge -X theirs vs ours (swapped during rebase)Git

(behavior) "ours" and "theirs" are reversed in git rebase

During a rebase Git's "ours" is the branch you rebase onto, and "theirs" is your own commit.

git rebase --autosquash did not reorder fixup commitsGit

(behavior) fixup! commits left in place after rebase -i --autosquash

Fixup commits weren't matched to their targets.

Unexpectedly found niliOS

Fatal error: Unexpectedly found nil while unwrapping an Optional value

Swift force-unwrapped (`!`) an optional that was nil, crashing the app.

Missing argument for parameter / Extra argument in calliOS

error: Missing argument for parameter 'id' in call

A call doesn't match the function's signature.

Cannot use instance member as a default parameteriOS

error: cannot use instance member 'x' as a default parameter

Default parameter values can't reference `self`.

Argument of '#selector' refers to instance method that is not exposed to Objective-CiOS

error: argument of '#selector' refers to instance method 'tap()' that is not exposed to Objective-C

A Swift method used as a selector needs `@objc`.

Result of call is unused (warning)iOS

warning: result of call to 'foo()' is unused

A function returns a value you ignore.

'init' is inaccessible due to 'private' protection leveliOS

error: 'init' is inaccessible due to 'internal' protection level

A type's initializer isn't visible to the caller's module.

Duplex mismatch: late collisions / CRC errorsNetworking

Networking: Duplex mismatch — late collisions, runts and CRC errors on the switch port

One side runs full duplex and the other half duplex, so the link works but is slow and drops packets.

Native VLAN mismatch / wrong VLAN, no connectivityNetworking

Networking: %CDP-4-NATIVE_VLAN_MISMATCH / device on the wrong VLAN can't reach the gateway

A port or trunk carries a different VLAN than expected, so hosts silently land on the wrong network.

MAC flapping / broadcast storm (spanning tree loop)Networking

Networking: %SW_MATM-4-MACFLAP_NOTIF: Host is flapping between ports / broadcast storm

A layer-2 loop is making frames circle the network, saturating links and making the whole VLAN crawl.

Index out of rangeiOS

Swift: Fatal error: Index out of range

Code accessed an array index that doesn’t exist — empty arrays, off-by-one loops, or data changing while a table reloads.

Could not cast value of typeiOS

Swift: Could not cast value of type 'X' to 'Y'

A force cast (as!) failed because the object isn’t the expected type.

No such moduleiOS

Swift: No such module 'X' (module not found)

Xcode can’t find a Swift package, pod or framework you import.