Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67452 - [arduino] should depend on arduino-avr-core

Attached to Project: Community Packages
Opened by Albert Vaca Cintora (elvaka) - Friday, 31 July 2020, 16:53 GMT
Last edited by freswa (frederik) - Friday, 31 July 2020, 20:17 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To NicoHood (NicoHood)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 2
Private No

Details

Description:

The Arduino IDE won't start if `arduino-avr-core` is not installed, so it should be a hard dependency and not a soft one.

I was affected by this and found the solution on a forum, which got to the same conclusion:

https://forum.manjaro.org/t/freshly-installed-arduino-ide-will-not-start-null-pointer-exception/155505/4

Steps to reproduce:

- Install `arduino`
- Execute `arduino`, you get a null pointer exception.
This task depends upon

Comment by freswa (frederik) - Friday, 31 July 2020, 20:18 GMT
Confirmed on archlinux.
Comment by NicoHood (NicoHood) - Saturday, 01 August 2020, 06:58 GMT
The Arduino IDE should handle this case with no core installed. The package is optional to decide if you want to use the official avrcore with their avr-gcc or if you want to use the archlinux package with upstream avr-gcc. The archlinux solution might be the "better" way, however there were problems sometimes. Thatswhy i left the choice to the user. Also you do not essentially need to use arduino for avr boards, thatswhy this should be kept optional anyways.

The installation if the additional package is explained in the wiki:
https://wiki.archlinux.org/index.php/Arduino#AVR_Boards

The issue should not happen though. I've opened a bugreport: https://github.com/arduino/Arduino/issues/10580
Comment by Albert Vaca Cintora (elvaka) - Saturday, 01 August 2020, 13:24 GMT
I think there should be a way to indicate that this is a requirement. Eg: `arduino` _depends on_ `avr` and both `avr-gcc` and `arduino-avr-core` _provide_ `avr` (so both satisfy the requirement, but at least one must be installed).

As a user, it's weird that I can install a program that doesn't work (plus, the Arduino IDE error message doesn't even point me in the right direction).

Loading...