GithubHelp home page GithubHelp logo

platformio_version_increment's People

Contributors

dependabot[bot] avatar pfeerick avatar sblantipodi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

platformio_version_increment's Issues

Add #include "Version.h"

It is worth mentioning in the readme that one have to include #include "Version.h" in the code beginning

TypeError on project load

TypeError: expected str, bytes or os.PathLike object, not NoneType:
  File "/home/stijn/.platformio/penv/lib/python3.10/site-packages/platformio/builder/main.py", line 180:
    env.SConscript(env.GetExtraScripts("post"), exports="env")
  File "/home/stijn/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 612:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/home/stijn/.platformio/packages/tool-scons/scons-local-4.7.0/SCons/Script/SConscript.py", line 279:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "/home/stijn/CLionProjects/wbs/platformio_version_increment/esp32_create_factory_bin_post.py", line 32:
    variants_dir = join(FRAMEWORK_DIR, "variants", "luciferin")
  File "/usr/lib/python3.10/posixpath.py", line 76:
    a = os.fspath(a)

Script not working properly because of error

This command:
Import("env")
at line 5 of the pre script and line 4 of the post script are causing errors which keeps these scripts from doing what they intended.
I am using MacOS Big Sur (11.6.2) with PlatformIO with latest upgrades installed.
They error is:
"Import" is not defined Pylance(reportUndefinedVariable)
This in turn makes env undefined.

Do you have a solution for this problem.
Thanks,
Ed

Warning error question

Hi thought I would build your watch winder project but have ran in to the following issues below when building the code.
Is it normal or have I over looked something ?
Thanks in advance

warning: Calling missing SConscript without error is deprecated.
Transition by adding must_exist=False to SConscript calls.
Missing SConscript 'platformio_version_increment\version_increment_pre.py'
File "C:\Users\paulw.platformio\penv\lib\site-packages\platformio\builder\main.py", line 181, in

warning: Ignoring missing SConscript 'platformio_version_increment\version_increment_post.py'
File "C:\Users\paulw.platformio\penv\lib\site-packages\platformio\builder\main.py", line 195, in

.pio\libdeps\watchwinder_1\PubSubClient\src\PubSubClient.cpp: In member function 'boolean PubSubClient::publish_P(const char*, const uint8_t*, unsigned int, boolean)':
.pio\libdeps\watchwinder_1\PubSubClient\src\PubSubClient.cpp:523:16: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
523 | return (rc == expectedLength);

TypeError

Trying the Version increment on an OTA-Project for ESP8266 is crashing compile compeletely with error message:

File C:\Users\guido\Documents\PlatformIO\Projects\XXX\platformio_version_increment\esp32_create_factory_bin_post.py found where directory expected.

This occures in File "C:\Users\guido.platformio\penv\lib\site-packages\platformio\builder\main.py", line 181.

Can it be, this tool is just feasible for ESP32 and just, if programming is done over UAT?

Upload success assumption re: auto increment

This doesn't take into account failed uploads (which I'm not sure is possible, but I thought worth mentioning so it it can either be investigated, or documented).

Another minor assumption (not worth it's own issue) was the absence of an include folder will cause this to fail... found this out when adding to a pre-existing project where I'd deleted all the extraneous folders...

Rebuild times

I have a medium complexity project on ESP32 with quite a few libraries in use.
The problem is, any time the file system changes in the PlatformIO folder structure it rebuilds all the libraries and core. This takes ages. Typically 10 times longer than if only one source file is recompiled.
I have removed all the code that creates and deleted the file .version_no_increment, and cut the build time back to original fast operations.

I recommend that instead of creating and removing the mentioned file, you keep the file system intact, use one static file with changing contents. Write a flag into the file, whether version increment is required or not.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.