{"action":"created","issue":{"url":"https://api.github.com/repos/platformio/platform-ststm32/issues/223","repository_url":"https://api.github.com/repos/platformio/platform-ststm32","labels_url":"https://api.github.com/repos/platformio/platform-ststm32/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/platformio/platform-ststm32/issues/223/comments","events_url":"https://api.github.com/repos/platformio/platform-ststm32/issues/223/events","html_url":"https://github.com/platformio/platform-ststm32/issues/223","id":420380709,"node_id":"MDU6SXNzdWU0MjAzODA3MDk=","number":223,"title":"Crash during build when framework is not defined","user":{"login":"me21","id":807120,"node_id":"MDQ6VXNlcjgwNzEyMA==","avatar_url":"https://avatars1.githubusercontent.com/u/807120?v=4","gravatar_id":"","url":"https://api.github.com/users/me21","html_url":"https://github.com/me21","followers_url":"https://api.github.com/users/me21/followers","following_url":"https://api.github.com/users/me21/following{/other_user}","gists_url":"https://api.github.com/users/me21/gists{/gist_id}","starred_url":"https://api.github.com/users/me21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/me21/subscriptions","organizations_url":"https://api.github.com/users/me21/orgs","repos_url":"https://api.github.com/users/me21/repos","events_url":"https://api.github.com/users/me21/events{/privacy}","received_events_url":"https://api.github.com/users/me21/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-03-13T08:50:55Z","updated_at":"2019-09-20T08:08:43Z","closed_at":"2019-03-18T20:15:16Z","author_association":"NONE","body":"I'm building a bootloader for STM32 which doesn't use any framework. So my `platformio.ini` looks like\r\n\r\n```\r\n[env:esp32-autotag]\r\nplatform = ststm32\r\nboard = genericSTM32F103C8\r\nbuild_flags = -DTARGET_GENERIC_F103_NO_LED_OR_BUTTON -Istm32_lib -Iusb_lib -Wl,-Tstm32_lib/c_only_md_high_density.ld -DXTAL12M\r\nsrc_filter = +<*> -<sketch_combiner/> -<stm32_lib/c_only_startup_user.s>\r\n```\r\n\r\nNotice there's no framework set.\r\n\r\nI get the following crash during build:\r\n\r\n```\r\nError: Traceback (most recent call last):\r\n  File \"c:\\.platformio\\penv\\lib\\site-packages\\platformio\\__main__.py\", line 120, in main\r\n    cli(None, None, None)\r\n  File \"c:\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 700, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"c:\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 680, in main\r\n    rv = self.invoke(ctx)\r\n  File \"c:\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1027, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"c:\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 873, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"c:\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 508, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"c:\\.platformio\\penv\\lib\\site-packages\\click\\decorators.py\", line 16, in new_func\r\n    return f(get_current_context(), *args, **kwargs)\r\n  File \"c:\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\run.py\", line 107, in cli\r\n    result = (envname, ep.process())\r\n  File \"c:\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\run.py\", line 207, in process\r\n    result = self._run()\r\n  File \"c:\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\run.py\", line 313, in _run\r\n    return p.run(build_vars, build_targets, self.silent, self.verbose)\r\n  File \"c:\\.platformio\\penv\\lib\\site-packages\\platformio\\managers\\platform.py\", line 353, in run\r\n    self.configure_default_packages(variables, targets)\r\n  File \"C:\\.platformio\\platforms\\ststm32\\platform.py\", line 28, in configure_default_packages\r\n    if \"arduino\" in variables.get(\"pioframework\") and build_core == \"maple\":\r\nTypeError: argument of type 'NoneType' is not iterable\r\n```\r\n\r\nThis happens in platform versions 5.2.0 and 5.3.0. Version 5.1.0 builds my firmware just fine."},"comment":{"url":"https://api.github.com/repos/platformio/platform-ststm32/issues/comments/533454671","html_url":"https://github.com/platformio/platform-ststm32/issues/223#issuecomment-533454671","issue_url":"https://api.github.com/repos/platformio/platform-ststm32/issues/223","id":533454671,"node_id":"MDEyOklzc3VlQ29tbWVudDUzMzQ1NDY3MQ==","user":{"login":"aster94","id":21184718,"node_id":"MDQ6VXNlcjIxMTg0NzE4","avatar_url":"https://avatars1.githubusercontent.com/u/21184718?v=4","gravatar_id":"","url":"https://api.github.com/users/aster94","html_url":"https://github.com/aster94","followers_url":"https://api.github.com/users/aster94/followers","following_url":"https://api.github.com/users/aster94/following{/other_user}","gists_url":"https://api.github.com/users/aster94/gists{/gist_id}","starred_url":"https://api.github.com/users/aster94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aster94/subscriptions","organizations_url":"https://api.github.com/users/aster94/orgs","repos_url":"https://api.github.com/users/aster94/repos","events_url":"https://api.github.com/users/aster94/events{/privacy}","received_events_url":"https://api.github.com/users/aster94/received_events","type":"User","site_admin":false},"created_at":"2019-09-20T08:08:43Z","updated_at":"2019-09-20T08:08:43Z","author_association":"NONE","body":"Thanks @valeros 😀 I thought it was almost the same problem so i didn't opened a new one since i was just giving the suggestion of more verbose error messages for the users"}}
{"actor":{"display_login":"aster94"}}