Skip to content

Hotswapper is unaware of stored sessions #19973

Closed

Description

@Artur-

Description of the bug

When you start a new project as "Debug using Hotswap Agent" in IntelliJ, hotswapping works and the open view is updated.
However, if you stop the server and start it again, then the view is never updated anymore after a change. A manual refresh updates the view.

The cause seems to be that Hotswapper relies on SessionInitEvent events to track open sessions but no such event is fired for the session that already exists in the server / was persisted during restart.

Expected behavior

It always works

Minimal reproducible example

  1. New project
  2. "Debug using Hotswap Agent" in IntelliJ
  3. Edit code
  4. Stop the server
  5. "Debug using Hotswap Agent" in IntelliJ
  6. Edit code

Versions

Hilla: 24.5-SNAPSHOT
Flow: 24.5-SNAPSHOT
Vaadin: 24.5-SNAPSHOT
Copilot: 24.5-SNAPSHOT
Frontend Hotswap: Disabled, using pre-built bundle
OS: aarch64 Mac OS X 14.6.1
Java: JetBrains s.r.o. 21.0.3
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Java Hotswap: false
IDE Plugin: ☑ 1.0.0.eap42

Activity

  1. moved this to 🔖 High Priority (P1) in Vaadin Flow bugs & maintenanceon Sep 18, 2024
  2. self-assigned this
    on Sep 18, 2024
  3. added a commit that references this issue on Sep 18, 2024
    b4de147
  4. moved this from 🔖 High Priority (P1) to ✅ Closed in Vaadin Flow bugs & maintenanceon Sep 19, 2024
  5. added a commit that references this issue on Sep 20, 2024
    e7ac185
  6. vaadin-bot commented on Sep 25, 2024

    @vaadin-bot
    Collaborator

    This ticket/PR has been released with Vaadin 24.5.0.beta2 and is also targeting the upcoming stable 24.5.0 version.

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

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions