PlatformIO Community

Changing from #feature/stage to normal results in error


#1

I’ve tried modifying
platform = https://github.com/platformio/platform-espressif32.git#feature/stage
to
platform = https://github.com/espressif/arduino-esp32.git

The change resulted in the inability to build a project:

Processing esp32doit-devkit-v1 (framework: arduino; platform: https://github.com/espressif/arduino-esp32.git; board: esp32dev)
--------------------------------------------------------------------------------
Error: Traceback (most recent call last):
  File "/home/george/.platformio/penv/local/lib/python2.7/site-packages/platformio/__main__.py", line 120, in main
    cli(None, None, None)
  File "/home/george/.platformio/penv/local/lib/python2.7/site-packages/click/core.py", line 700, in __call__
    return self.main(*args, **kwargs)
  File "/home/george/.platformio/penv/local/lib/python2.7/site-packages/click/core.py", line 680, in main
    rv = self.invoke(ctx)
  File "/home/george/.platformio/penv/local/lib/python2.7/site-packages/click/core.py", line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/george/.platformio/penv/local/lib/python2.7/site-packages/click/core.py", line 873, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/george/.platformio/penv/local/lib/python2.7/site-packages/click/core.py", line 508, in invoke
    return callback(*args, **kwargs)
  File "/home/george/.platformio/penv/local/lib/python2.7/site-packages/click/decorators.py", line 16, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/george/.platformio/penv/local/lib/python2.7/site-packages/platformio/commands/run.py", line 107, in cli
    result = (envname, ep.process())
  File "/home/george/.platformio/penv/local/lib/python2.7/site-packages/platformio/commands/run.py", line 207, in process
    result = self._run()
  File "/home/george/.platformio/penv/local/lib/python2.7/site-packages/platformio/commands/run.py", line 305, in _run
    p = PlatformFactory.newPlatform(self.options['platform'])
  File "/home/george/.platformio/penv/local/lib/python2.7/site-packages/platformio/managers/platform.py", line 250, in newPlatform
    _instance = platform_cls(join(platform_dir, "platform.json"))
  File "/home/george/.platformio/penv/local/lib/python2.7/site-packages/platformio/managers/platform.py", line 460, in __init__
    self._manifest = util.load_json(manifest_path)
  File "/home/george/.platformio/penv/local/lib/python2.7/site-packages/platformio/util.py", line 185, in load_json
    with open(file_path, "r") as f:
IOError: [Errno 2] No such file or directory: '/home/george/.platformio/platforms/arduino-esp32/platform.json'

============================================================

An unexpected error occurred. Further steps:

* Verify that you have the latest version of PlatformIO using
  `pip install -U platformio` command

* Try to find answer in FAQ Troubleshooting section
  https://docs.platformio.org/page/faq.html

* Report this problem to the developers
  https://github.com/platformio/platformio-core/issues

============================================================

The terminal process terminated with exit code: 1

#2

This is not PlatformIO platform, but Espressif’s Arduino core for the ESP32. You probably want platform = https://github.com/platformio/platform-espressif32.git or just platform = espressif32 with framework = arduino to use PlatformIO’s Arduino-Core releases, as seen in https://github.com/platformio/platform-espressif32/releases


#3

You are very right indeed.
I didn’t pay enough attention.

I actually had platform = https://github.com/platformio/platform-espressif32.git#feature/stage before this screw-up.
I saw that arduino-esp-core got updated and I wanted to get that new release.