Warning during compilation

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mackowiakp
Normal user
Posts: 527
Joined: 07 Jun 2018, 06:47
Location: Gdynia/Poland

Warning during compilation

#1 Post by mackowiakp » 28 Nov 2019, 12:59

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.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Warning during compilation

#2 Post by TD-er » 28 Nov 2019, 14:26

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.

mackowiakp
Normal user
Posts: 527
Joined: 07 Jun 2018, 06:47
Location: Gdynia/Poland

Re: Warning during compilation

#3 Post by mackowiakp » 28 Nov 2019, 15:08

Yep. "Anticipation is very difficult, especially for the future" - Niels Bohr

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Warning during compilation

#4 Post by ThomasB » 19 Dec 2019, 20:14

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

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Warning during compilation

#5 Post by TD-er » 19 Dec 2019, 21:52

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?

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Warning during compilation

#6 Post by ThomasB » 19 Dec 2019, 22:05

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

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Warning during compilation

#7 Post by TD-er » 19 Dec 2019, 22:19

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.

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Warning during compilation

#8 Post by ThomasB » 19 Dec 2019, 23:01

You seem to have the golden touch. I reverted platformio.ino and built normal_ESP8266_4M1M. The warning appears.

- Thomas

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Warning during compilation

#9 Post by TD-er » 19 Dec 2019, 23:19

I checked and this is what I am using:

PIO:
Home 3.1.0-beta.6
Core 4.1.1b5

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Warning during compilation

#10 Post by ThomasB » 19 Dec 2019, 23:28

Thanks for the info. I suspect this warning will go away after my installation receives the official (non-beta) VSCode/PIO updates.
- Thomas

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 24 guests