ESP8266: Custom `env_dir` and section `.text' will not fit in region `iram1_0_seg'

I can succesfully build my projects. Now I try to set environment variable PLATFORMIO_ENVS_DIR or set envs_dir in platformio.ini to
I can not build any project :

c:/users/myname/.platformio/packages/toolchain-xtensa/bin/…/lib/gcc/xtensa-lx106-elf/4.8.2/…/…/…/…/xtensa-lx106-elf/bin/ld.exe: G:\PlatformIO\envs_dir\nodemcuv2\firmware.elf section .text' will not fit in regioniram1_0_seg’
collect2.exe: error: ld returned 1 exit status
scons: *** [G:\PlatformIO\envs_dir\nodemcuv2\firmware.elf] Error 1

Duplicate of:

Thank you.
In windows I can not create a folder .pioenvs but my workaround was to copy the folder from the project directory.

Why do you need to override this folder?

Because I have my projects in a dropbox folder and each time I build a project it synchronizes all the files. There are moments that sync and build are run together and folder is locked resulting in access denied to reading writing to .pioenvs folder.

Just move src_dir to DropBox and keep project on the host machine.