Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Include scanning cache broken for non-arduino boards #230

Closed
Assignees
Labels
conclusion: resolvedIssue was resolved topic: codeRelated to content of the project itself type: imperfectionPerceived defect in any part of project
Milestone
@majenkotech

Description

First compilation works perfectly. Second compilation crashes arduino-builder:

panic: runtime error: index out of range
goroutine 1 [running]:
panic(0x556bc0, 0xc420018130)
	/home/jenkins/go/src/runtime/panic.go:500 +0x1a1
arduino.cc/builder.findIncludesUntilDone(0xc420060400, 0xc4202f5d40, 0x556f40, 0xc4201f90e0, 0xc420381162, 0x18, 0x0, 0x0)
	/home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/container_find_includes.go:321 +0x138f
arduino.cc/builder.(*ContainerFindIncludes).Run(0x64d248, 0xc420060400, 0x41bc3c3c, 0x0)
	/home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/container_find_includes.go:149 +0x5e4
arduino.cc/builder.runCommands(0xc420060400, 0xc42019fad8, 0x22, 0x22, 0x1, 0x0, 0x0)
	/home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/builder.go:191 +0xcd
arduino.cc/builder.(*Builder).Run(0xc42019fd28, 0xc420060400, 0xc420045d88, 0x562240)
	/home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/builder.go:124 +0xb9c
arduino.cc/builder.RunBuilder(0xc420060400, 0xc420045d88, 0x64d248)
	/home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/builder/builder.go:222 +0x35
main.main()
	/home/jenkins/workspace/arduino-builder-all-cross/src/arduino.cc/arduino-builder/main.go:338 +0x99c
/home/matt/Downloads/arduino-1.8.2/arduino-builder returned 2

Environment

Core URL: https://raw.githubusercontent.com/chipKIT32/chipKIT-core/master/package_chipkit_index.json
Test board: chipKIT MAX32
Operating System: Linux (64 bit)
IDE version: 1.8.2

Steps to reproduce

  1. Install the required boards package and select the right board
  2. Install the required library (below)
  3. Paste in the test sketch and compile (succeeds)
  4. Compile again - fails.

Test Sketch

Required library: https://www.dimensionengineering.com/software/SabertoothArduinoLibraries.zip (though any contributed library may do it)

// playing with motor driver
#include <SabertoothSimplified.h>
#define MAIN_LED_PIN 13
SabertoothSimplified ST( Serial1 );
 
void setup()
{
 pinMode( MAIN_LED_PIN, OUTPUT );
 //SabertoothTXPinSerial.begin(38400);
 Serial1.begin( 38400 );
}
void loop()
{
 ST.motor(1, 127); // Go forward at full power.
 ST.motor(2, 127);
 delay( 2000 ); // Wait 2 seconds.
 ST.motor(1, 0); // Stop.
 ST.motor(2, 50);
 delay(2000); // Wait 2 seconds.
 ST.motor(1, -127); // Reverse at full power.
 ST.motor(2, -80 );
 delay(2000); // Wait 2 seconds.
 ST.motor(1, 0); // Stop.
 ST.motor(2, -127 );
 delay(2000);
 ST.motor( 2, 0 );
 delay( 1000 );
 // do heartbeat blink
 digitalWrite( MAIN_LED_PIN, HIGH );
 delay( 500 );
 digitalWrite( MAIN_LED_PIN, LOW );
 delay( 500 );
}

Metadata

Metadata

Labels

conclusion: resolvedIssue was resolved topic: codeRelated to content of the project itself type: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    AltStyle によって変換されたページ (->オリジナル) /