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 NicoHood (NicoHood) - Thursday, 13 May 2021, 09:13 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To NicoHood (NicoHood)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
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

Closed by  NicoHood (NicoHood)
Thursday, 13 May 2021, 09:13 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 1.8.14-1
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).
Comment by Josh McCullough (joshm) - Wednesday, 13 January 2021, 20:32 GMT
On Manjaro I had to install `arduino-avr-core` separately to get the IDE to start.

Loading...