Error map
Ambiguous use of 'init' / trailing closure error: ambiguous use of 'init(content:)'
iOS · layer 1, On your device
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.
Directly related (12)
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.
error: Type 'User' does not conform to protocol 'Decodable'
A type doesn't satisfy a protocol's requirements.
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.
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.
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 '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 branches.
The branch name you gave matches several refs.
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.
error: Missing return in a function expected to return 'Int'
A code path in your function ends without returning a value.
error: Switch must be exhaustive / add missing case: '.pending'
A `switch` doesn't cover every enum case.
error: Cannot find 'viewModel' in scope
The name isn't visible where you use it.
error: Use of unresolved identifier 'ProfileView'
Older compilers' wording for "cannot find in scope".
Two steps away (33)
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.
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…
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…
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.
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 header
Git received garbage instead of a pack, from a proxy or broken server.
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.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.
kotlin.UninitializedPropertyAccessException: lateinit property adapter has not been initialized
A `lateinit var` was read before anything assigned it.
kotlinx.coroutines.JobCancellationException: StandaloneCoroutine was cancelled; job=StandaloneCoroutine{Cancelling}@a1b2c3
A coroutine was cancelled, usually because its scope ended.
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.
error: 'nil' requires a contextual type
Swift can't infer the type of a bare `nil`.
java.lang.ClassCastException: class A cannot be cast to class B
An object was cast to a type it isn’t.
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.
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.
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 'v1.0.0' already exists
A tag with that name exists already.
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.
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.
(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.
(behavior) fixup! commits left in place after rebase -i --autosquash
Fixup commits weren't matched to their targets.
Fatal error: Unexpectedly found nil while unwrapping an Optional value
Swift force-unwrapped (`!`) an optional that was nil, crashing the app.
error: Missing argument for parameter 'id' in call
A call doesn't match the function's signature.
error: cannot use instance member 'x' as a default parameter
Default parameter values can't reference `self`.
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`.
warning: result of call to 'foo()' is unused
A function returns a value you ignore.
error: 'init' is inaccessible due to 'internal' protection level
A type's initializer isn't visible to the caller's module.
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.
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.
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.
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.
Swift: Could not cast value of type 'X' to 'Y'
A force cast (as!) failed because the object isn’t the expected type.
Swift: No such module 'X' (module not found)
Xcode can’t find a Swift package, pod or framework you import.