Page 1 of 1

Warning during compilation

Posted: 28 Nov 2019, 12:59
by mackowiakp
During compilation custom_ESP8266_4M1M using mega-20191127 I got such warning:

Code: Select all

warning: Calling missing SConscript without error is deprecated.
Transition by adding must_exist=0 to SConscript calls.
Missing SConscript 'pre_custom_esp82xx.py'
File "/home/maciek/.platformio/penv/lib64/python3.7/site-packages/platformio/builder/main.py", line 149, in <module>
Is it issue or not? Compilation finished successfully.

Re: Warning during compilation

Posted: 28 Nov 2019, 14:26
by TD-er
I think that's not yet an issue, but will be if I don't change something in the platformio.ini file.
Although I'm not sure yet what soon-to-be deprecated call I'm using.

Re: Warning during compilation

Posted: 28 Nov 2019, 15:08
by mackowiakp
Yep. "Anticipation is very difficult, especially for the future" - Niels Bohr

Re: Warning during compilation

Posted: 19 Dec 2019, 20:14
by ThomasB
Just to add my name to the list, I'm getting the compile warning as follows (Release mega-20191208):

Code: Select all

warning: Calling missing SConscript without error is deprecated.
Transition by adding must_exist=0 to SConscript calls.
Missing SConscript 'pre_default_check.py'
File "C:\users\tom\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 149, in <module>
main.py, Line 148-149:

Code: Select all

for item in env.GetExtraScripts("pre"):
    env.SConscript(item, exports="env")
EDIT: The warning was resolved by editing platformio.ini. In the [common] section, I comment out this line:

Code: Select all

;extra_scripts             = pre:pre_default_check.py
Maybe the OP would find a similar solution by editing platformio_esp82xx_envs.ini. Edit the extra_scripts line under [env:custom_ESP8266_4M1M] section.

But be forewarned that I don't know how this affects the firmware build. @TD-er will surely know if this workaround is a bad idea.

- Thomas

Re: Warning during compilation

Posted: 19 Dec 2019, 21:52
by TD-er
The default checks are not adding anything to the build configuration, but are just a check for me to stop building if something in the platformio.ini (and included .ini files) got mixed up resulting in an empty list of defines.

What PIO and Python version do you use?

Re: Warning during compilation

Posted: 19 Dec 2019, 22:05
by ThomasB
What PIO and Python version do you use?
PIO V1.10.1. (Home 3.0.1, Core 4.1.0.)
VS Code 1.41.1
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32

As far as I know these are the latest versions.

- Thomas

Re: Warning during compilation

Posted: 19 Dec 2019, 22:19
by TD-er
Python is not the latest, but 3.7 should not make any difference here compared to 3.8.

I just made a "normal" build on my PC and it does not show these deprecate warnings.

Re: Warning during compilation

Posted: 19 Dec 2019, 23:01
by ThomasB
You seem to have the golden touch. I reverted platformio.ino and built normal_ESP8266_4M1M. The warning appears.

- Thomas

Re: Warning during compilation

Posted: 19 Dec 2019, 23:19
by TD-er
I checked and this is what I am using:

PIO:
Home 3.1.0-beta.6
Core 4.1.1b5

Re: Warning during compilation

Posted: 19 Dec 2019, 23:28
by ThomasB
Thanks for the info. I suspect this warning will go away after my installation receives the official (non-beta) VSCode/PIO updates.
- Thomas