Not able to upload code, get error : processing.app.debug.RunnerException

Hi,

Please notice that i am a beginner…

I am trying to Upload this code(see below) through Arduino IDE,(was first try with VisualMicro), and i cannot upload it on my Arduino/Uno and Longrunner CNC shield (driver A4988).

It seem that my last sketch still use the serial port .
I was using Grbl controller to control manually my stepper motor; these are the motors I installed for my DIY telescope motorization.

The error seem to point Java…(see error code down the page)

// Visual Micro is in vMicro>General>Tutorial Mode
//
/*
    Name:       Filterwheelarduino.ino
    Created:	2019-09-09 08:56:35
    Author:     DESKTOP-DUGTL0G\Regor
*/

// Define User Types below here or use a .h file
//
int CurrentFilter = 0;


// Define Function Prototypes that use User Types below here or use a .h file
//


// Define Functions below here or use other .ino or cpp files
//

// The setup() function runs once each time the micro-controller starts
void setup()
{
  Serial.begin(57600);
  Serial.flush();

}

// Add the main program code into the continuous loop() function
void loop()
{
  String cmd;

  if (Serial.available() > 0) {
    cmd = Serial.readStringUntil('#');
    if (cmd == "GETFILTER") {
      Serial.print(CurrentFilter): Serial.prntln("#");
      }
      else if (cmd == "FILTER0") MoveFilter(0);
      else if (cmd == "FILTER1") MoveFilter(1);
      else if (cmd == "FILTER2") MoveFilter(2);
      else if (cmd == "FILTER3") MoveFilter(3);
    }
  }

  void MoveFilter(int pos) {
  //do stepper motor stuff
  delay(2000);
  CurrentFilter = pos;
}

Error code

processing.app.debug.RunnerException
	at cc.arduino.Compiler.callArduinoBuilder(Compiler.java:317)
	at cc.arduino.Compiler.loadPreferences(Compiler.java:216)
	at cc.arduino.Compiler.build(Compiler.java:175)
	at processing.app.SketchController.build(SketchController.java:664)
	at processing.app.Editor$BuildHandler.run(Editor.java:1647)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Cannot run program "C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\arduino-builder": CreateProcess error=2, Le fichier spécifié est introuvable
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
	at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
	at cc.arduino.Compiler.callArduinoBuilder(Compiler.java:297)
	... 5 more
Caused by: java.io.IOException: CreateProcess error=2, Le fichier spécifié est introuvable
	at java.lang.ProcessImpl.create(Native Method)
	at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
	at java.lang.ProcessImpl.start(ProcessImpl.java:137)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
	... 7 more

Try reinstalling the Arduino IDE. This time, try not using the Windows App Store version. You can get the normal version of the Arduino IDE by clicking either the "Windows Installer, for Windows XP and up" or the "Windows ZIP file for non admin install" links (NOT the "Get" button) on this page: