cfernandomaciel

cfernandomaciel

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? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 94592 917
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New
axelson
Hi there! :wave: @frigidcode and I (but mostly him) have been running an Elixir Book club, we’re almost done with Designing Elixir Syste...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
georgeguimaraes
Just published claude-code-elixir, a plugin marketplace for Claude Code with Elixir support. These are the plugins I’ve been using for my...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews