[Desktop - MacOS] Plugin dist sporadically freezes in cache
See original GitHub issueDescription
Occasionally plugin dist ‘freezes’ in Electron cache of Headlamp.
Impact
Bad development experience, inability to see the changes in Headlamp runtime.
Environment and steps to reproduce
- Set-up: Headlamp
- Task: Observe the changes in runtime made to the plugin code
- Action(s):
a. Stop the running server
b. Make change to the code, for example change
console.log('headlamp-myplugin initialized');
toconsole.log('headlamp-myplugin initialized123123');
c. Runrm -rf $HOME/Library/Application\ Support/Headlamp/plugins/headlamp-myplugin/main.js; rm -rf dist/
d. Run npm start e. See that change isn’t displayed in Headlamp, i.e. in the console is loggedheadlamp-myplugin initialized
instead ofheadlamp-myplugin initialized123123
- Error: Can’t observe the changes even during hot reload
Workaround
Wiping the Electron cache of the Headlamp solved the issue:
rm -rf $HOME/Library/Application\ Support/Headlamp/
Issue Analytics
- State:
- Created a year ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
macOS randomly freezing - it just never s… - Apple Community
macOS randomly freezing - it just never stops. I can't take this constant freeze, start, freeze, start, - and repeat.
Read more >How to Unfreeze a Mac and What to Do if it Keeps Freezing
A frozen Mac can be a real nuisance, stopping you from getting anything done. Here, we look at how to unfreeze your Mac....
Read more >How to Stop Your Mac From Freezing | Digital Trends
Select the app you want to close, then click Force Quit (or Relaunch if Finder has frozen), then click Force Quit on the...
Read more >How to Fix Frozen Mac - Setapp
FIX: Click the Quit All icon in the menu bar > Settings > View background processes > Quit All. If you notice your...
Read more >Directories used by the IDE to store settings, caches, plugins ...
macOS : Configuration (idea.config.path): ~/Library/Application Support/JetBrains/IntelliJIdea2022.2; Plugins (idea.plugins.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@joaquimrocha for a couple of days of usage of 0.8 version - the issue is not observed, so far. I’m doing Headlamp plugin development with my common behavioural patterns (like using hibernation, not shutting down npm serve or Headlamp etc.).
Hi.
sorry, this was replaced by makeCustomResourceClass