Skip to content

Tell a window not reloaded since an engine upgrade to reload #198

Open

Description

@srbaker

After an engine upgrade, any VS Code window that was not reloaded still runs the previous GemDB Code against a database the new engine now owns. Nothing tells that window the engine changed underneath it.

How it happens

  1. Several windows are open running GemDB Code 1.9.0 (engine a5).
  2. The extension updates to 1.10.0 and one window reloads.
  3. That window upgrades the database to a8 in place. With Stop a stone the previous engine started with that engine, and ask before forcing it for an upgrade #195 it can stop the a5 stone even while the other windows hold sessions, using Stop Anyway.
  4. The other windows still run 1.9.0 with a5's GCI library and pin.

Expected (not yet measured)

The next login from a stale window, whether a notebook cell or its EXTENSION_OWNER session, probably fails with 4045 ("Gem and dbf versions are incompatible"). The error names neither the cause nor the cure. Worse, that window's auto-start may try to bring up an a5 stone on the upgraded extent.

This needs measuring before anything is built: reload one of two windows, upgrade, then use the other.

Proposal

When a window finds that the stone's engine differs from its own pin, say so and offer a reload. It should neither attempt the login nor start anything. Two candidate signals: the gslist version that startedByAnotherEngine already reads, or the stamp the upgrade writes.

Follows from #195.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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