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 91561 914
New
byu
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project. My initial shotgu...
New
arcanemachine
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
AstonJ
Just a general thread to post chat/news/info relating to AI/ML stuff that may be relevant for Nx now or in the future. Got anything to sh...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New

Other Trending Topics Top

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
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
mudasobwa
While I am working on the Language Agnostic Code Audit SaaS, which uses MetaAST (spoiler: I am expecting it to be in a good shape for ann...
New

We're in Beta

About us Mission Statement