IDE2.0.0-beta.5 simply stops compilation with "Unknown Error", where IDE 1.8.13 clearly claims a missing .h-file (althoug also being on the wrong way, because a) there is no call to this file, and b) the file exists at the correct place -- but at least it's a message which guides to proper action)
It is possible that file is being called from one of the libraries you are using. This has happened to me and it was a real pain to find.
pert
May 6, 2021, 11:14pm
3
The current user experience with the Arduino IDE 2.x in this situation is really horrible, as is tracked here:
opened 04:02PM - 25 Feb 21 UTC
closed 02:12AM - 16 May 21 UTC
conclusion: duplicate
criticality: low
**Describe the bug**
ne of the most common errors encountered by beginners is c… aused by them trying to compile a sketch they found without installing the library dependencies (all too often the sketch author doesn't even bother to document deps).
Since we don't currently bundle the standard libraries with Arduino IDE 2.0.0 (https://arduino.atlassian.net/browse/ATL-825), this is likely to be even more common.
In the Java IDE, Arduino CLI, and Arduino Web Editor, compiling a sketch with an #include directive for a non-existent header file, for example:
```C
#include <Nonexistent.h>
void setup() {}
void loop() {}
```
will produce an error message that looks like this (even without verbose compilation output enabled):
```
C:\program-files\arduino\cli\arduino-cli_nightly\Foo\Foo.ino:1:10: fatal error: Nonexistent.h: No such file or directory
#include <Nonexistent.h>
^~~~~~~~~~~~~~~
compilation terminated.
Error during build: exit status 1
```
This is all you get with the default non-verbose compilation output setting:
```
Compilation error: Error: 2 UNKNOWN: exit status 1
```
The verbose compilation output is still pretty cryptic
```
Alternatives for Nonexistent.h: []
ResolveLibrary(Nonexistent.h)
-> candidates: []
Compilation error: Error: 2 UNKNOWN: exit status 1
```
You're not going to find many helpful results if you Google these strings, whereas there are zillions for "No such file or directory".
The Java IDE and Arduino Web Editor also highlight the line of the sketch associated with the error:

while Arduino IDE 2.0.0 gives no indication of the source of the error.
**Desktop (please complete the following information):**
- OS: Windows 10
- Version: 2.0.0-beta.2-snapshot.298cc11
- CLI Version: 0.16.0 alpha [c977a238]
[ originally reported by @per1234 ]
You can get an error message by enabling File > Preferences > Show verbose output during: [ ] Compilation , but even then it's not the standard error message we are accustomed to.
Hopefully the situation will be improved in an upcoming release.
system
Closed
September 3, 2021, 11:14pm
4
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.