cfernandomaciel

cfernandomaciel

SweetXml Dependency Renders Unknown Function/4 at ParallelCompiler

I’ve got SweetXml bundled with my project, which [aparently] acts as a dependency for ex_aws lib.
They both are currently set up with the following versions:

defp deps do
   [
    ...
    {:ex_aws, "~> 1.0.0-rc3"},
    {:sweet_xml, "~> 0.5"}
    ...
   ]

In this case, I’m also trying to take advantage of this SweetXml lib, so I’ve injected it onto my application at mix.exs as well, like so:

def application do
[mod: {ElixirConslogv1, []},
 applications: [:phoenix, :phoenix_pubsub, :phoenix_html, :cowboy, :logger, :gettext,
                :phoenix_ecto, :mariaex, :ex_aws, :hackney, :poison, :sweet_xml]]
end

At the moment, I’m just running a few ‘getting-to-know-it’ tests at my code, which is kind of stuck at compile time because of this error I keep getting:

== Compilation error on file lib/s3_migration.ex ==
** (SyntaxError) lib/s3_migration.ex:18: syntax error before: 1
    (elixir) lib/kernel/parallel_compiler.ex:117: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1

Before I was getting this error only at the very method I was actually calling this SweetXml method, like so:

def parse_xml({:ok, %{body: xml_value}}) do
	import SweetXml

	xml_result = xml_value
	|> xpath(~x"//Bucket/Name/text()"1)

	IO.puts "++++++++"
	IO.inspect xml_result
	IO.puts "++++++++"
end

But then after injecting that lib onto my application, it started showing up at compile time.

After doing some research, I’ve come across a few git issues at the lib’s repo thereof which stated that it was some compatibility issues. But I’ve only found that for the SweetXml version 4.0.

I’m unsure on how to proceed from here, since I’m just beginning to get my feet dirty on Elixir world.

Here’s a link of that aforementioned git issue:

https://github.com/CargoSense/ex_aws/issues/81

Any ideas?

Where Next?

Popular in Discussions Top

CharlesO
Erlang :list.nth simple, but 1 - based nth(1, [H|_]) -> H; nth(N, [_|T]) when N > 1 -> nth(N - 1, T). Elixir Enum.at … coo...
New
mmport80
I have put far too much effort into Dialyzer over the last year or so - and basically - I doubt it’s worth the effort. It’s not as easy ...
New
tmbb
This is a post to discuss the new Phoenix LiveView functionality. From Chris’s talk, it appears that they generate all HTML on the serve...
342 18243 126
New
Markusxmr
Since Drab has been developed for a while in the open, introducing the Liveview functionality in a way it happend appears to undermine th...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39467 209
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
cvkmohan
The upcoming Phoenix 1.6 release looks very interesting. Became a habit to watch the commits - and - what they are bringing in. phx.gen...
New
Rustixir
Hi everyone, im working on find best language/framework/system for high concurrency, high performance and stable performance after wor...
New
AstonJ
Can you believe the first professionally published Elixir book was published just 8 years ago? Since then I think we’ve seen more books f...
New
100phlecs
Are there any downsides, like perf issues, to putting all functional components in CoreComponents as long as you prefix it with the conte...
New

Other popular topics Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 43487 311
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement