Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I stop my server from freezing when powershell is in 'select' mode?

I didn't believe this until I tested it a few times, but it's really happening.

  1. Start rails server and app from powershell: 'rails s'
  2. open a web page from that server
  3. note how long the page took to get served up
  4. now in powershell, select some text
  5. reload the webpage from step 2
  6. note that the webpage is taking forever to load
  7. set up the windows so that you can see the powershell window and web page at the same time
  8. go back to powershell and hit 'Enter' (so that the selected text is copied)
  9. note that the web page loads as soon as the powershell window leaves select mode

TLDR: Rails server started via powershell won't serve pages while powershell is in 'Select' mode.

Is there some setting in powershell that will stop it from doing this? I can see it being helpful when selecting text in the middle of a bat run but when it stops my server it's flipping obnoxious.

like image 404
jcollum Avatar asked Nov 15 '11 17:11

jcollum


People also ask

How do I stop PowerShell?

Closing the PowerShell console with exit If you open a PowerShell console session and type exit, the console session will terminate.

How do I stop a PowerShell script from closing?

Using PowerShell NoExit Switch PowerShell -NoExit switch prevents the console window from closing after the script finishes running.

How do I disable PowerShell in Windows 11?

Disable PowerShell From Running at StartupStep 1: Press Ctrl + Shift + Esc shortcut on your keyboard to launch the Task Manager. Step 2: Head over to the Startup tab, select PowerShell, and click on the Disable option at the top.


1 Answers

Open a powershell window that you would normally start rails in. Open the properties dialog for the window and deselect QuickEdit Mode on the Options tab.

like image 186
Greg Wojan Avatar answered Oct 01 '22 22:10

Greg Wojan