Skip to content

SDK should always print absolute path of discovered programs #70

Description

@lilioid

Hi, I'm trying to develop an app but have run into an issue that was very hard to debug due to the SDK printing discovered program very confusingly.

For example, I have arm-none-eabi-gcc in my $PATH and am getting the following log output:

> pebble build
Setting top to                           : /home/lilly/Projects/pebble2fox
Setting out to                           : /home/lilly/Projects/pebble2fox/build
Checking for program 'webpack'           : /home/lilly/.pebble-sdk/SDKs/current/node_modules/.bin/webpack
Found Pebble SDK for emery in:           : /home/lilly/.pebble-sdk/SDKs/current/sdk-core/pebble/emery
Checking for program 'gcc, cc'           : arm-none-eabi-gcc

Notice how the arm-none-eabi-gcc is printed as-is without a full path. However when the SDK actually tries to execute arm-none-eabi-gcc it uses the path to the binary inside the SDK directory. Crucially, that binary is not the same as the one in my $PATH but because of the above output it looks like the SDK would use the gcc binary from $PATH.

Wanted Solution

For clarity the SDK should always print the full path of discovered programs.

As far as I can tell this happens in Configure.py:224 (def find_program(self,filename,**kw)) but I was not able to find the source of the SDK on GitHub to properly link it here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions