Skip to content
#

Elixir

elixir logo

Elixir leverages the Erlang VM, known for running low-latency, distributed and fault-tolerant systems, while also being successfully used in web development, and the embedded software domain.

Here are 5,508 public repositories matching this topic...

lud
lud commented Jan 4, 2020
  • Elixir version (elixir -v): Elixir 1.9.4 (compiled with Erlang/OTP 22)
  • Phoenix version (mix deps): 1.4.11
  • Jason : 1.1.2
  • Operating system: MacOs
  • config :phoenix, :json_library, Jason

Hello, I'm sure it is a known issue but I could not find a duplicate.

With this command: `mix phx.gen.json Content Version versions changelog_id:references:changelogs datamap:map metamap:ma

lk-geimfari
lk-geimfari commented Aug 30, 2019

Well, we need to check all the projects and remove outdated ones.

We declare this in the readme:

However, keep in mind that we don't accept mammoth's shit. Only active and interesting projects with good documentation are added. Dead and abandoned projects will be removed.

But, sadly at this moment, this project looks like a mammoth shit itself.

We really need to fix it. I think

Stratus3D
Stratus3D commented Feb 10, 2019

Steps to reproduce

Run asdf. In help output a line is printed for the asdf env command:

asdf env <command> [executable]      Prints or runs an executable under a command environment

I would assume <command> is an arbitrary command. But from what I can tell needs to be a plugin name or a shim name? I'm also not sure how this differs from executing the shim directly.

FY

anthonator
anthonator commented Nov 13, 2017

There should be a rule that handles naming modules based on whether the parent directory is plural or singular.

The most notable example of this is Phoenix. If you look at how Phoenix structures controllers you can see that it follows a different naming convention than what is specified in the style guide.

For example, a controller at the following path `my_app/controllers/home_controller.ex

schabou
schabou commented Dec 18, 2018

Looking into tracking the delay between when a change in the data happens and the eventual publish_subscription broadcast that sends a message out to each subscribed user, there's currently no easy way to retrieve that information.

Being able to measure how long it takes for the system to process an update and push it out to subscribed users would be nice to have from a performance benchmarki

PragTob
PragTob commented Oct 17, 2019

First thanks for the great project and the great documentation! 👏 💃

The docs for migrations describe a pretty good approach. However, to the best of my search ability the docs seem not to mention how to do rollbacks of migrations which to me is an integral part of any deployment that I wouldn't want to launch without.

kritik
kritik commented Jan 19, 2019

Ijust learn elixir and got in stuck in topic Documentation I run code in iex like in example but cannot get same result

iex(27)> defmodule Greeter do
...(27)>   @moduledoc """
...(27)>   Provides a function `hello/1` to greet a human
...(27)>   """
...(27)> 
...(27)>   def 
evnu
evnu commented Dec 12, 2019

enif_send returns a flag, indicating if the send succeeded or not. From the documentation:

Returns true if the message is successfully sent. Returns false if the send operation fails, that is:

  • *to_pid does not refer to an alive local process.
  • The currently executing process (that is, the sender) is not alive.

Functions such

Cohen-Carlisle
Cohen-Carlisle commented Jan 16, 2017

Getting {:error, %HTTPoison.Error{id: nil, reason: :timeout}} in about 6 seconds with my options set as [timeout: 30_000]. After much digging and confusion, it seems that the timeout is stemming from recv_timeout being too low. I found this confusing for 2 reasons:

  1. reason: :timeout is reported, which suggests that the timeout is the appropriate option to adjust.
  2. The docs around
DaneWeber
DaneWeber commented Oct 3, 2018

I'm new to Elixir and using these koans. First of all: thanks! I really appreciate them.

For the 04_atoms koans, I wasn't clear what was expected. For example, assert true == ___ and assert false == ___ can be most easily completed by simply repeating true and false.

I was guessing that perhaps it should be completed with assert true == :true.

Another thought is that these could

critch
critch commented Jun 22, 2018

Environment

  • Erlang version (20):

  • Elixir version (1.6.2):

  • Operating system: Debian 8.6

  • Nerves Environment Info:
    Pkg: nerves_system_br
    Vsn: 1.2.2
    Type: system_platform
    BuildRunner: nil

    Pkg: nerves_system_orangepi_pcplus
    Vsn: 0.0.52
    Type: system
    BuildRunner: {Nerves.Artifact.BuildRunners.Local, []}

    Pkg:

onegrx
onegrx commented Aug 25, 2017

The Overview section shows example of Article factory:

  def article_factory do
    %MyApp.Article{
      title: "Use ExMachina!",
      # associations are inserted when you call `insert`
      author: build(:user),
    }
  end

However, in Ecto Associations section there is following snippet:

def article_factory do
  %Article{
    title: "Use ExM
doomspork
doomspork commented Mar 10, 2019

In order to provide the best support for location support and mapping companies/jobs/freelancers, we should encode locations into lat/lon. To properly store this we should look at using PostGIS in this project and adding a point to the company table to store the exact location of the company.

How do we handle companies would multiple locations? Do we even bother supporting that or require a s

nkmanolovsumup
nkmanolovsumup commented Apr 10, 2019

Steps to reproduce

iex> t1 = "2019-04-03T21:07:45Z" |> Timex.parse!("{ISO:Extended:Z}") |> Timex.to_datetime("Europe/Berlin")
#DateTime<2019-04-03 23:07:45+02:00 CEST Europe/Berlin>
iex> Timex.day(t1)
93
iex> t2 = "2019-04-03T22:07:45Z" |> Timex.parse!("{ISO:Extended:Z}") |> Timex.to_datetime("Europe/Berlin")
#DateTime<2019-04-04 00:07:45+02:00 CEST Europe/Berlin>
iex> Timex.
omidbachari
omidbachari commented Dec 26, 2018

FYI
Readme says:

def deps do
  [{:coherence, "~> 0.6"}]
end

However, in https://hex.pm/packages/coherence it only has version 0.5.2. Users get this error:

➜  path-to-project git:(master) ✗ mix deps.get
** (Mix) No matching version for coherence ~> 0.6 (from: mix.exs) in registry

The latest version is: 0.5.2

See screenshot. Thank you!

![screen s

tbhavs
tbhavs commented Aug 30, 2019

I am getting random {:error, :closed} from :hackeny.send_body/2 and Tesla.client crashes with following stack trace.

 {:EXIT, #PID<0.23655.28>, {{:badmatch, {:error, :closed}}, [{
Tesla.Adapter.Hackney, :"-request_stream/5-fun-0-", 3, [file: 'lib/tesla/adapter/hackney.ex', line: 74]}, 
{Enum, :"-reduce/3-anonymous-2-", 3, [file: 'lib/enum.ex', line: 3015]}, 
{Stream, :do_transform_e
kenny-evitt
kenny-evitt commented Nov 15, 2019

Precheck

I didn't find any existing issues (open or closed) that cover this.

I think my Dialyzer and Erlex are up-to-date but I could be wrong – please let me know.

Environment

$ elixir --version
Erlang/OTP 21 [erts-10.2.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]

Elixir 1.8.0 (compiled with Erlang/OTP 20)
$ cat mix.lock | grep dialyxir
  "dia
asummers
asummers commented Mar 11, 2019

Turns out this is a whitelist that defaults to []. We just got bit pretty hard by this behavior being hidden, so it's worth calling out in the docs. Effectively we had a bunch of plugs all acting on the presence of query params and were very confused why they never seemed to actually trip. This whitelist behavior was very unexpected.

Seems to have been added quite a while back in https://git

mlaythe
mlaythe commented Aug 29, 2017

Manager timeout occurred {GenServer, :call, [Exq.Stats, {:cleanup_host_stats, "exq", "2cd99162-71e7-4411-9637-e1ba53f2b103"}, 5000]}

I keep getting this error every time our server starts up. I noticed on ExqUI we're starting to build up quite a few busy processes... like over 100k. Is there anyway to clear all of them? I can't even view all the busy processes on ExqUI, because it crashes our

Created by José Valim

Released September 8, 2014

Organization
elixir-lang
Website
elixir-lang.org
Wikipedia
Wikipedia

Related Topics

erlang language ruby
You can’t perform that action at this time.