Can't find file: arduino_cache

Compilation worked fine an hour ago. Fiddled around with modifying Marlin.ino for my 3D printer and now I get this error:

FindFirstFile C:\Users\Roger\AppData\Local\Temp\arduino_cache_706330

What is this file? I don't see any "arduino_cache" files anywhere in the Users area of my computer.

Caching of compiled files is done to make subsequent compilations faster. The idea is to only recompile the files that have changed.

In the chance it will provide some helpful information, please do this:
Please do this:

  • File > Preferences > Show verbose output during: > compilation (check) > OK
  • Sketch > Verify/Compile
  • After the compilation fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
  • Paste the error messages in a reply here using code tags (</> button on the forum toolbar).

If the length of the output exceeds the forum's 9000 character limit, save it in a txt file and post it here as an attachment. If you click the "Reply" button you'll see the "Attachments and other options" link.

Arduino: 1.8.6 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\arduino_IDE_1.8\arduino-builder -dump-prefs -logger=machine -hardware C:\arduino_IDE_1.8\hardware -hardware C:\Users\Roger\AppData\Local\Arduino15\packages -tools C:\arduino_IDE_1.8\tools-builder -tools C:\arduino_IDE_1.8\hardware\tools\avr -tools C:\Users\Roger\AppData\Local\Arduino15\packages -built-in-libraries C:\arduino_IDE_1.8\libraries -libraries R:\Arduino projects\projects\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10806 -build-path C:\Users\Roger\AppData\Local\Temp\arduino_build_26849 -warnings=none -build-cache C:\Users\Roger\AppData\Local\Temp\arduino_cache_706330 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\Roger\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Roger\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.avrdude.path=C:\Users\Roger\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino14 -verbose C:\Users\Roger\Downloads\MarlinTarantula-EasyConfig-2.0.x\Marlin for MKS Gen L\Marlin\Marlin.ino
FindFirstFile C:\Users\Roger\AppData\Local\Temp\arduino_cache_706330: The system cannot find the file specified.

Error compiling for board Arduino/Genuino Mega or Mega 2560.

It's actually not a file but a directory.

What usually should solve the problem is to close the IDE and open it again. You will loose the cached files in that case but a new cache will be created so it's a once-off.

You might have noticed that a first verify is always slower than consecutive verifies; that's the result of the cache not being populated yet at the first verify.

Please restart the Arduino IDE, compile, then post the verbose output. Since that compilation will likely pass, you will need to click in the black console window, select all via Ctrl+A, then copy via Ctrl+C.

Maybe this is correct, but I haven't watched much verbose compilation before. Anyway, now, with a different sketch, I've lost a library, even though this sketch (Marlin) seems to have compiled OK. (and yes, I have noticed that the second compilation is faster, generally speaking). [OK, had to delete many lines in the middle in order to fit in the 9000 byte limit]

C:\arduino_IDE_1.8\arduino-builder -dump-prefs -logger=machine -hardware C:\arduino_IDE_1.8\hardware -hardware C:\Users\Roger\AppData\Local\Arduino15\packages -tools C:\arduino_IDE_1.8\tools-builder -tools C:\arduino_IDE_1.8\hardware\tools\avr -tools C:\Users\Roger\AppData\Local\Arduino15\packages -built-in-libraries C:\arduino_IDE_1.8\libraries -libraries R:\Arduino projects\projects\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10806 -build-path C:\Users\Roger\AppData\Local\Temp\arduino_build_172430 -warnings=none -build-cache C:\Users\Roger\AppData\Local\Temp\arduino_cache_383216 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\Roger\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Roger\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.avrdude.path=C:\Users\Roger\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino14 -verbose C:\Users\Roger\Downloads\MarlinTarantula-EasyConfig-2.0.x\Marlin for MKS Gen L\Marlin\Marlin.ino
C:\arduino_IDE_1.8\arduino-builder -compile -logger=machine -hardware C:\arduino_IDE_1.8\hardware -hardware C:\Users\Roger\AppData\Local\Arduino15\packages -tools C:\arduino_IDE_1.8\tools-builder -tools C:\arduino_IDE_1.8\hardware\tools\avr -tools C:\Users\Roger\AppData\Local\Arduino15\packages -built-in-libraries C:\arduino_IDE_1.8\libraries -libraries R:\Arduino projects\projects\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10806 -build-path C:\Users\Roger\AppData\Local\Temp\arduino_build_172430 -warnings=none -build-cache C:\Users\Roger\AppData\Local\Temp\arduino_cache_383216 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\Roger\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Roger\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.avrdude.path=C:\Users\Roger\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino14 -verbose C:\Users\Roger\Downloads\MarlinTarantula-EasyConfig-2.0.x\Marlin for MKS Gen L\Marlin\Marlin.ino
Using board 'mega' from platform in folder: C:\arduino_IDE_1.8\hardware\arduino\avr
...
...
C:\Users\Roger\AppData\Local\Temp\arduino_build_172430\sketch\src\gcode\temperature\M105.cpp.o
Using previously compiled file: C:\Users\Roger\AppData\Local\Temp\arduino_build_172430\sketch\src\gcode\temperature\M106_M107.cpp.o
Using previously compiled file: C:\Users\Roger\AppData\Local\Temp\arduino_build_172430\sketch\src\gcode\sdcard\M20-M30_M32-M34_M524_M928.cpp.o
...
...
...

Using library LiquidCrystal at version 1.0.7 in folder: C:\arduino_IDE_1.8\libraries\LiquidCrystal 
"C:\\Users\\Roger\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\5.4.0-atmel3.6.1-arduino2/bin/avr-size" -A "C:\\Users\\Roger\\AppData\\Local\\Temp\\arduino_build_172430/Marlin.ino.elf"
Sketch uses 146588 bytes (57%) of program storage space. Maximum is 253952 bytes.
Global variables use 4708 bytes (57%) of dynamic memory, leaving 3484 bytes for local variables. Maximum is 8192 bytes.

Did the problem go away?