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 92995 915
New
caslu
I want to open this thread for you all to discuss and help those who really like Ash but are still hesitant to use it in a real project. ...
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
GES233
I’m posting this in response to Jose’s recent tweet (Cr. link) : People are sleeping on Elixir for a coding harness: Hot-code swappi...
New
_mfierro
Hello, I wrote Stop My Hand, a Scattergories-like web application using Phoenix/LiveView as my learning project for Elixir (after readin...
New
nseaSeb
AcmeScript — Writing JS hooks as if I were still using Elixir I’ve been having fun building a little something over the last few days: Ac...
New
marciol
It would be helpful to have a list of companies worldwide that hire engineers without prior experience in Elixir. Often, it can be quite ...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
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
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
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
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews