Skip to content

bug: native engine reports version 2.6.0 in codegraph v3.0.0 #305

@carlos-alm

Description

@carlos-alm

Found during dogfooding v3.0.0

Severity: Low
Command: codegraph info

Reproduction

npm init -y && npm install @optave/codegraph@3.0.0
npx codegraph info

Expected behavior

Native version should report 3.0.0 to match the package version.

Actual behavior

Codegraph Diagnostics
====================
  Version       : 3.0.0
  Native engine : available
  Native version: 2.6.0
  Active engine : native (v2.6.0)

The npm package @optave/codegraph-win32-x64-msvc@3.0.0 is correctly versioned at 3.0.0 in npm, but the compiled Rust binary internally reports version 2.6.0.

Root cause

The Cargo.toml version in crates/codegraph-core/ was likely not bumped to 3.0.0 before the release build. The native engine version string is baked into the Rust binary at compile time.

Suggested fix

Update Cargo.toml version to match package.json (3.0.0) and rebuild the native binaries. This is cosmetic but causes confusing diagnostics and may trigger unnecessary full rebuilds when the version mismatch detection in buildGraph() sees 2.6.0 !== 3.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdogfoodFound during dogfooding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions