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.

Popped up command window without saving

See original GitHub issue

Description

One or more command windows pops up randomly, even when not coding / not saving and while gatsby develop is running.

Steps to reproduce

This bug is hard to reproduce in itself as it is highly random, I have tried to observe it but have failed to understand the logic, I am still trying to analyze it. Cmder seem to not being the cause as I have tried with Windows Default command and still occurring. https://github.com/Coffee-Up/bug-repro (it is a very simple repo i have just added gatsby-plugin-mdx, but the bug is still present in it)

Actual result

A window pops up randomly and you loose the focus on the window you were for 1 second then you get the focus back again. Sometimes there are 3 windows simultaneously popping up for 1 sec then it closed instantaneously.

More

  • This bug occurred when I upgrade for gatbsy 2.26.1.
  • After running a gatsby develop → shutting down the local server → another gatsby develop gatsby inform you that you have already something running on localhost/8000 but when i check my ports list it is closed/not opened. edit: it is not always the case i just have experienced so maybe it is not relevant.

Environment

Window Command: Cmder.exe Version 1.3.16.1035 VScode: Version: 1.51.1 (user setup) Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f Date: 2020-11-10T23:34:32.027Z Electron: 9.3.3 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Windows_NT x64 10.0.19041 System: OS: Windows 10 10.0.19041 CPU: (4) x64 Intel® Core™ i5-5200U CPU @ 2.20GHz Binaries: Node: 12.18.4 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.6 - C:\Program Files\nodejs\npm.CMD Languages: Python: 3.7.7 Browsers: Chrome: 87.0.4280.66 Edge: Spartan (44.19041.423.0), Chromium (87.0.664.41) npmPackages: gatsby: ^2.26.1 => 2.26.1 gatsby-image: ^2.4.20 => 2.5.0 gatsby-plugin-image: ^0.2.0 => 0.2.0 gatsby-plugin-manifest: ^2.4.33 => 2.6.0 gatsby-plugin-mdx: 1.5.0 => 1.5.0 gatsby-plugin-netlify: 2.5.0 => 2.5.0 gatsby-plugin-offline: ^3.2.30 => 3.4.0 gatsby-plugin-page-progress: ^2.1.1 => 2.1.1 gatsby-plugin-react-helmet: ^3.3.12 => 3.4.0 gatsby-plugin-scroll-reveal: ^0.0.7 => 0.0.7 gatsby-plugin-sharp: ^2.6.38 => 2.8.0 gatsby-plugin-sitemap: ^2.4.17 => 2.6.0 gatsby-plugin-styled-components: ^3.3.14 => 3.4.0 gatsby-remark-images: ^3.3.33 => 3.5.1 gatsby-source-filesystem: ^2.3.32 => 2.5.0 gatsby-transformer-sharp: ^2.6.0 => 2.6.0 npmGlobalPackages: gatsby-cli: 2.14.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
piehcommented, Nov 25, 2020

Hey @Coffee-Up fix for the issue I found and could reproduce went out in gatsby@2.27.3, as mentioned in previous comment I acknowledge that might not be only case of it (the issue is pretty generic), so I addressed instance that I could reproduce, please open new issue if after upgrading you still experience those command prompt showing up

1reaction
axeldaguerrecommented, Nov 24, 2020

That’s weird - are you 100% sure this happens only when running gatsby? Another question - what version did you use before upgrade? That might gives a clue to at least limit the changes that happened between that version and 2.26.1

i was on 2.24.67. i was thinking the same as you but this occured exactly after the upgrades i did because I had a lot of complains and couldn’t even start a gatsby develop. on reddit someone ask for the same bug than so I am confident it is bug’s gatsby. kyle Mathew ask me to write an issue so I did.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Stop Command Prompt From Popping up on Windows ...
Command Prompt Keeps Popping Up; Solution 1: Check for the Bad Sectors; Solution 2: Run Windows Clean Boot; Solution 3: Disable MS Office ......
Read more >
7 Ways to Fix a Windows Command Prompt That Randomly ...
1. Disable the CMD Startup Status on the Task Manager · Press Ctrl + Shift + Esc to open the Task Manager. ·...
Read more >
How to avoid command window popping on cmd.exe
Step 2: Click on the drop-down menu under Run. Step 3: Select "Minimized," then click the OK button.
Read more >
[Solved] Command Prompt keeps popping up? Stop it!
Command Prompt window keeps popping up · Method 1. Getting rid of viruses or malware · Method 2. Try SFC · Method 3....
Read more >
Command Prompt Pops Up and Closes on Windows 11 ...
Since it's in no way essential to the Office suite, you can simply disable it via Task Scheduler to take care of the...
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