Watching files(?) message at IDE2 start

As soon as the IDE loads, it gives me this message: "Unable to watch for file changes in this large workspace. Please follow the instructions link to resolve this issue."
Clicked the link and got something about 524,288 limit on number of watched files in Visual Basic on Linux. Makes no sense to me, the sketch only has 81 lines and compiles nicely on IDE1. Also compiles on IDE2 if I click "x" to close the message. And I use Windows...
There is about a 7-second delay between compilation and uploading, which seems odd, IDE1 doesn't do that.

Hi @nicechocolate Thanks for giving the beta Arduino IDE 2.x a try!

This "Unable to watch for file changes in this large workspace" warning is caused by a bug in the IDE, which is tracked here:

The lead developer for the Arduino IDE 2.x informed me that this is a bug in the Theia IDE framework used by the IDE 2.x:

So it will need to first be fixed in Theia, then that fix will be pulled into Arduino IDE 2.x.

Until then, please ignore this spurious "Unable to watch for file changes in this large workspace. Please follow the instructions link to resolve this issue." message. It does not indicate any actual problem. All Windows users are getting this from time to time.

I've just 'installed' the zip version under Windows10. When one clicks the instructions button, one is taken to Running Visual Studio Code on Linux ; why to Linux?

I have no clue. I suspect this is something in the Theia code, rather than in the Arduino IDE specific-code. Of course, the Theia code can always be modified, but that incurs a maintenance burden that will make it more difficult for the developers to continue to make progress with the Arduino IDE itself.

I think the idea is that, in this beta phase, it's better to just wait for the bug to be fixed rather than polishing the user experience related to the bug. I think that's reasonable at the current moment. If the bug is still around once the time comes to make a production release, I think it will be necessary to suppress the spurious error altogether.