Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vaadin 24.4.alpha25 project gets stuck in an infinite reload loop with VS Code #19280

Open
Tracked by #5012
marcushellberg opened this issue Apr 29, 2024 · 4 comments
Open
Tracked by #5012

Comments

@marcushellberg
Copy link
Member

Description of the bug

When starting a new Vaadin 24.4.alpha25 application in VS Code, it gets stuck in an infinite reload cycle caused by:

Change set: [/Users/mhellber/Desktop/my-app/target/classes [/Users/mhellber/Desktop/my-app/target/classes/META-INF/resources/images/empty-plant.png (MODIFY), /Users/mhellber/Desktop/my-app/target/classes/META-INF/resources/icons/icon.png (MODIFY), /Users/mhellber/Desktop/my-app/target/classes/banner.txt (MODIFY)]]

Running VS Code extension bisect, I could identify the extension causing the issue as the RedHat Java plugin.
Screenshot 2024-04-25 at 11 43 58

Expected behavior

The application should start normally.

Minimal reproducible example

An application downloaded with https://start.vaadin.com/dl?preset=react&preset=partial-prerelease using alpha25.
Starting the app with VS Code running (either by running Application.java or with mvn) causes the app to reload constantly.

Versions

@mshabarov
Copy link
Contributor

I couldn't reproduce it.
Tried running the app by running Application.java and mvn.
Also tried disable/enabled the extension, works without restarts.

My configuration:

VS Code Version: 1.88.1 (also tried with 1.87)
Chromium: 120.0.6099.291
Node.js: 18.18.2
OS: Darwin x64 22.3.0
JDK 21
Language Support for Java(TM) by Red Hat v1.30.0

@mcollovati mcollovati changed the title Vaadin 24.4.beta25 project gets stuck in an infinite reload loop with VS Code Vaadin 24.4.alpha25 project gets stuck in an infinite reload loop with VS Code Apr 30, 2024
@manolo
Copy link
Member

manolo commented Apr 30, 2024

I cannot reproduce this either, with the same setup, except that my operating system is ventura 13.1 i7

@AlainaFaisal
Copy link
Contributor

I reproduced this case and it stuck in an infinite loop for me as well.
However, after looking at the error logs, I saw some deprecated packages. These changes worked for me:
Change this to latest in package-lock.json:
"@jridgewell/sourcemap-codec": "latest",

(Also check if node.js is installed or not, you can install it from https://nodejs.org/)
After that ensure your versions are up to date using:
npm install -g npm@latest

These steps resolved the issue on my side.

@codercodingthecode
Copy link

See this temporary solution vaadin/hilla#2573 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔎 Investigation
Status: 🪵Product backlog
Development

No branches or pull requests

5 participants