question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Desktop - MacOS] Plugin dist sporadically freezes in cache

See original GitHub issue

Description

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

  1. Set-up: Headlamp
  2. Task: Observe the changes in runtime made to the plugin code
  3. Action(s): a. Stop the running server b. Make change to the code, for example change console.log('headlamp-myplugin initialized'); to console.log('headlamp-myplugin initialized123123'); c. Run rm -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 logged headlamp-myplugin initialized instead of headlamp-myplugin initialized123123
  4. 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:closed
  • Created a year ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
andrii-batiukcommented, Apr 11, 2022

@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.).

1reaction
illumecommented, Apr 8, 2022

Hi.

sorry, this was replaced by makeCustomResourceClass

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found