Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

git-referenced library causes endless rebuild loop #356

Closed
joscha opened this issue Apr 11, 2017 · 7 comments
Closed

git-referenced library causes endless rebuild loop #356

joscha opened this issue Apr 11, 2017 · 7 comments
Labels

Comments

@joscha
Copy link

joscha commented Apr 11, 2017

  • IDE: 2.0.0-beta.2
  • Core: 3.4.0a4

When rebuilding a project after updating to 2.0.0-beta.2 from 1.7, the rebuild window spins up an endless number of times, each time setting off an additional Python process that downloads the atmelsam framework.

Came across it due to trying out the fix for: platformio/platform-atmelsam#10

pio

can only get out with:
killall python2.7 and killall Atom

ini looks like:

[env:sodaq_one]
platform = atmelsam
board = sodaq_one
framework = arduino
build_flags = -D ARDUINO_ARCH_SAMD -D DEBUG
;    -D DISABLE_LOGGING
extra_script = extra_script.py

lib_deps =
    Adafruit [email protected]
    [email protected]
    DHT sensor [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    https://github.com/SodaqMoja/SodaqOne-UniversalTracker-v2.git
@joscha
Copy link
Author

joscha commented Apr 11, 2017

After a pio run on CMD it seems to build, however Atom still seems to think it needs rebuilding:

pio2

@joscha
Copy link
Author

joscha commented Apr 11, 2017

It also seems to re-generate .travis.yml in every single invocation.

@joscha
Copy link
Author

joscha commented Apr 11, 2017

Disabling automatic rebuilding seems to help:

settings_ ___development_wala_wala-sodaqone_3

Haven't found out yet what causes it.

@joscha
Copy link
Author

joscha commented Apr 11, 2017

Removing the git-referenced library seems to fix it, e.g.

lib_deps =
    https://github.com/SodaqMoja/SodaqOne-UniversalTracker-v2.git

Changing it to a short notation with fixed sha doesn't seem to make a difference:

lib_deps =
    SodaqMoja/SodaqOne-UniversalTracker-v2#4b6b52fee10c7f4d31016acb6c34b188cd3a0d71

even on command line it seems to re-download/clone the repository every single build run.

@joscha joscha changed the title Rebuild spawns an endless stream of Python processes Rebuild with git-referenced library spawns an endless stream of Python processes Apr 11, 2017
@joscha joscha changed the title Rebuild with git-referenced library spawns an endless stream of Python processes git-referenced library causes endless rebuild loop Apr 11, 2017
@joscha
Copy link
Author

joscha commented Apr 11, 2017

Using a version number, e.g.: SodaqMoja/SodaqOne-UniversalTracker-v2#v4.4 doesn't seem to change anything either.

@ivankravets
Copy link
Member

Should be fixed in the latest PIO Core. Could you reproduce it again?

@ivankravets
Copy link
Member

Please install the latest PIO IDE 2.0 Beta 3. Should be fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants