{"action":"created","issue":{"url":"https://api.github.com/repos/erlang/rebar3/issues/1768","repository_url":"https://api.github.com/repos/erlang/rebar3","labels_url":"https://api.github.com/repos/erlang/rebar3/issues/1768/labels{/name}","comments_url":"https://api.github.com/repos/erlang/rebar3/issues/1768/comments","events_url":"https://api.github.com/repos/erlang/rebar3/issues/1768/events","html_url":"https://github.com/erlang/rebar3/issues/1768","id":317820099,"number":1768,"title":"Compile Error: Uncaught error: undef","user":{"login":"enkoder","id":989096,"avatar_url":"https://avatars2.githubusercontent.com/u/989096?v=4","gravatar_id":"","url":"https://api.github.com/users/enkoder","html_url":"https://github.com/enkoder","followers_url":"https://api.github.com/users/enkoder/followers","following_url":"https://api.github.com/users/enkoder/following{/other_user}","gists_url":"https://api.github.com/users/enkoder/gists{/gist_id}","starred_url":"https://api.github.com/users/enkoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enkoder/subscriptions","organizations_url":"https://api.github.com/users/enkoder/orgs","repos_url":"https://api.github.com/users/enkoder/repos","events_url":"https://api.github.com/users/enkoder/events{/privacy}","received_events_url":"https://api.github.com/users/enkoder/received_events","type":"User","site_admin":false},"labels":[{"id":422608376,"url":"https://api.github.com/repos/erlang/rebar3/labels/plugin","name":"plugin","color":"c2e0c6","default":false},{"id":147617136,"url":"https://api.github.com/repos/erlang/rebar3/labels/wontfix","name":"wontfix","color":"ffffff","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-04-25T22:48:05Z","updated_at":"2018-05-04T00:47:15Z","closed_at":"2018-05-04T00:47:15Z","author_association":"NONE","body":"## Description\r\nI am getting a compliation error which started happening last night. I was able to reproduce this by making a new mix project then add the following dep to mix.es. Run `mix dep.get && DEBUG=1 mix deps.compile` to trigger the error.  \r\n```\r\n      {:fast_xml, \"~> 1.1\"}\r\n```\r\n\r\n\r\n### Environment ###\r\n\r\n```\r\nelixir --version\r\nErlang/OTP 20 [erts-9.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false]\r\n\r\nElixir 1.5.2\r\n```\r\n\r\n```\r\n$ rebar3 report \"mix deps.compile\"\r\n...\r\nRebar3 report\r\n version 3.3.6\r\n generated at 2018-04-25T22:36:14+00:00\r\n=================\r\nPlease submit this along with your issue at https://github.com/erlang/rebar3/issues (and feel free to edit out private information, if any)\r\n-----------------\r\nTask: mix\r\nEntered as:\r\n  mix deps.compile\r\n-----------------\r\nOperating System: x86_64-unknown-linux-gnu\r\nERTS: Erlang/OTP 20 [erts-9.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:0] [hipe] [kernel-poll:false]\r\nRoot Directory: /usr/lib/erlang\r\nLibrary directory: /usr/lib/erlang/lib\r\n-----------------\r\nLoaded Applications:\r\nbbmustache: 1.3.0\r\ncertifi: 0.4.0\r\ncf: 0.2.2\r\ncommon_test: 1.15.2\r\ncompiler: 7.1.2\r\ncrypto: 4.1\r\ncth_readable: 1.2.4\r\ndialyzer: 3.2.2\r\nedoc: 0.9.1\r\nerlware_commons: 1.0.0\r\neunit: 2.3.4\r\neunit_formatters: 0.3.1\r\ngetopt: 0.8.2\r\ninets: 6.4.2\r\nkernel: 5.4\r\nproviders: 1.6.0\r\npublic_key: 1.5\r\nrelx: 3.22.3\r\nsasl: 3.1\r\nsnmp: 5.2.7\r\nssl_verify_fun: 1.1.1\r\nstdlib: 3.4.2\r\nsyntax_tools: 2.1.3\r\ntools: 2.11\r\n\r\n-----------------\r\nEscript path: /root/.mix/rebar3\r\nProviders:\r\n  app_discovery as clean compile compile cover ct deps dialyzer do edoc escriptize eunit get-deps help install install_deps list lock new path pkgs release relup report shell state tar tree unlock update upgrade upgrade upgrade version xref\r\n```\r\n\r\n### Current behaviour ###\r\n\r\nDuring a `mix deps.compile` I am getting an uncaught error in rebar core. \r\n```\r\n===> Uncaught error: undef\r\n===> Stack trace to the error location:\r\n[{rebar_string,chr,[\"c_src/fxml.c\",36],[]},\r\n {pc_port_specs,expand_env,2,\r\n                [{file,\"/discord/discord_push/deps/fast_xml/_build/default/plugins/pc/src/pc_port_specs.erl\"},\r\n                 {line,182}]},\r\n {pc_port_specs,'-get_port_spec/3-fun-0-',3,\r\n                [{file,\"/discord/discord_push/deps/fast_xml/_build/default/plugins/pc/src/pc_port_specs.erl\"},\r\n                 {line,154}]},\r\n {pc_port_specs,'-get_port_spec/3-lists^flatmap/1-0-',2,\r\n                [{file,\"/discord/discord_push/deps/fast_xml/_build/default/plugins/pc/src/pc_port_specs.erl\"},\r\n                 {line,152}]},\r\n {pc_port_specs,get_port_spec,3,\r\n                [{file,\"/discord/discord_push/deps/fast_xml/_build/default/plugins/pc/src/pc_port_specs.erl\"},\r\n                 {line,152}]},\r\n {pc_port_specs,'-construct/1-lc$^1/1-1-',2,\r\n                [{file,\"/discord/discord_push/deps/fast_xml/_build/default/plugins/pc/src/pc_port_specs.erl\"},\r\n                 {line,67}]},\r\n {pc_port_specs,construct,1,\r\n                [{file,\"/discord/discord_push/deps/fast_xml/_build/default/plugins/pc/src/pc_port_specs.erl\"},\r\n                 {line,67}]},\r\n {pc_prv_compile,'-do/1-lc$^0/1-0-',2,\r\n                 [{file,\"/discord/discord_push/deps/fast_xml/_build/default/plugins/pc/src/pc_prv_compile.erl\"},\r\n                  {line,52}]}]\r\n\r\n** (Mix) Could not compile dependency :fast_xml, \"/root/.mix/rebar3 bare compile --paths \"/discord/discord_push/_build/dev/lib/*/ebin\"\" command failed. You can recompile this dependency with \"mix deps.compile fast_xml\", update it with \"mix deps.update fast_xml\" or clean it with \"mix deps.clean fast_xml\"\r\n``` \r\n\r\nWhen running the rebar3 compile I am getting a different error.  \r\n```\r\nDEBUG=1 /root/.mix/rebar3 bare compile --paths \"/discord/discord_push/_build/dev/lib/*/ebin\"\r\n===> Expanded command sequence to be run: []\r\n===> Expanded command sequence to be run: [{default,app_discovery},\r\n                                                  {bare,compile}]\r\n===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump\r\n===> Uncaught error: {badmatch,[]}\r\n===> Stack trace to the error location:\r\n[{rebar_prv_bare_compile,do,1,\r\n                         [{file,\"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_bare_compile.erl\"},\r\n                          {line,45}]},\r\n {rebar_core,do,2,\r\n             [{file,\"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_core.erl\"},\r\n              {line,153}]},\r\n {rebar_prv_do,do_tasks,2,\r\n               [{file,\"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_prv_do.erl\"},\r\n                {line,68}]},\r\n {rebar_core,do,2,\r\n             [{file,\"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar_core.erl\"},\r\n              {line,153}]},\r\n {rebar3,main,1,\r\n         [{file,\"/home/tristan/Devel/rebar3/_build/default/lib/rebar/src/rebar3.erl\"},\r\n          {line,66}]},\r\n {escript,run,2,[{file,\"escript.erl\"},{line,759}]},\r\n {escript,start,1,[{file,\"escript.erl\"},{line,277}]},\r\n {init,start_em,1,[]}]\r\n```\r\n\r\nThis seems related to https://github.com/erlang/rebar3/issues/1767, but I am not entirely sure. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/erlang/rebar3/issues/comments/386478685","html_url":"https://github.com/erlang/rebar3/issues/1768#issuecomment-386478685","issue_url":"https://api.github.com/repos/erlang/rebar3/issues/1768","id":386478685,"user":{"login":"ferd","id":111141,"avatar_url":"https://avatars2.githubusercontent.com/u/111141?v=4","gravatar_id":"","url":"https://api.github.com/users/ferd","html_url":"https://github.com/ferd","followers_url":"https://api.github.com/users/ferd/followers","following_url":"https://api.github.com/users/ferd/following{/other_user}","gists_url":"https://api.github.com/users/ferd/gists{/gist_id}","starred_url":"https://api.github.com/users/ferd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferd/subscriptions","organizations_url":"https://api.github.com/users/ferd/orgs","repos_url":"https://api.github.com/users/ferd/repos","events_url":"https://api.github.com/users/ferd/events{/privacy}","received_events_url":"https://api.github.com/users/ferd/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T00:47:15Z","updated_at":"2018-05-04T00:47:15Z","author_association":"CONTRIBUTOR","body":"Thanks for the update!"}}
{"actor":{"display_login":"ferd"}}