Skip to content

LSP was unable to start #286

@3gregor4

Description

@3gregor4

Felows

  1. Problem Identification
    Error: [Project ] Failed to initialize: {:function_clause, [{IO, :chardata_to_string, [nil], ...}, {Path, :basename, 1, ...}]} Location: XPForge.Project.name/1 calling Path.basename/1. Component: "Expert" Language Server (binary distribution).
Image
  1. WorkAround (failed)
    Clear Cache: Delete the .expert directory in mcp-doe-frugal/.
    Restart LSP: Reload the IDE window or restart the extension process.
    Verify: Check if the error persists.

  2. Root Cause.

  • Hypothesis A (Most Likely): The LS maintains a cache in the .expert/ directory. If this cache is corrupted (e.g., storing a nil path), the initialization reads this invalid state and crashes.
  • Hypothesis B: The project structure has an anomaly (e.g., a file or dependency path) that the XPForge parser does not handle, resulting in a nil value being propagated.

--E

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions