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

plugin reloading is broken on non cluster pages (like settings) #3040

Open
illume opened this issue Mar 27, 2025 · 2 comments
Open

plugin reloading is broken on non cluster pages (like settings) #3040

illume opened this issue Mar 27, 2025 · 2 comments
Labels
app bug Something isn't working frontend Issues related to the frontend headlamp-plugin Related to the headlamp-plugin NPM package. plugins

Comments

@illume
Copy link
Collaborator

illume commented Mar 27, 2025

Describe the bug

For me reloading with "npm start" is broken except on the home page.

Note, only seems to happen only on non-cluster pages that don't do backend requests.

To Reproduce

Steps to reproduce the bug:

  • Open headlamp app (in dev mode or with compiled app)
  • Go to a non home page (eg settings)
  • cd plugins/examples/podcounter/ && npm i && npm start
  • Note how the app doesn't reload
  • Make a change to plugin, note how it doesn't reload

Environment (please provide info about your environment):

WSL ubuntu, running the app

@illume illume added the bug Something isn't working label Mar 27, 2025
@illume illume added plugins app regression Bugs for things that used to work in previous releases. headlamp-plugin Related to the headlamp-plugin NPM package. and removed regression Bugs for things that used to work in previous releases. labels Mar 27, 2025
@illume illume changed the title plugin reloading is broken except on home page plugin reloading is broken on non cluster pages (like settings) Mar 27, 2025
@illume illume added the frontend Issues related to the frontend label Mar 27, 2025
@illume
Copy link
Collaborator Author

illume commented Mar 27, 2025

This also affects backend lists of clusters I think. Similar problem.

@rajdama
Copy link

rajdama commented Mar 31, 2025

Headlamp caches plugins in the ~/.config/Headlamp/plugins directory, which means that even if you modify the source code, it continues to use the previously built version instead of automatically updating. Additionally, Vite’s hot reloading doesn’t work in this setup because Headlamp isn't monitoring changes in the dist/ folder where the plugin is built. As a result, any updates to the plugin require manually deleting the cached version and restarting Headlamp to see the changes.

I can work on this issue..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app bug Something isn't working frontend Issues related to the frontend headlamp-plugin Related to the headlamp-plugin NPM package. plugins
Projects
Development

No branches or pull requests

2 participants