title: Error with pyspark in local when I execute pytest in VS Code from Git Bash
body: <p>I have the Error with pyspark in local when I execute pytest in VS Code from Git Bash.</p>
  
  <p>If I execute pytest from gitbash console:</p>
  
  <p><img src="https://i.stack.imgur.com/bZHx4.png" alt="enter image description here"></p>
  
  <p>I try to debug my code when I create the spark Dataframe in Visual code, show me: </p>
  
  <blockquote>
    <p>Java gateway process exited before sending its port number</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/y1WZS.png" alt="enter image description here"></p>
  
  <p>I have configured all environment of variables in my PC:</p>
  
  <p><img src="https://i.stack.imgur.com/8GhOL.png" alt="enter image description here"></p>
  
  <p>I have seen this error can be my variable Java is not configured really well, but I have checked it is properly.</p>