elixir-iex Questions

4

I want to use IEx.pry to go step by step in my elixir code, like byebug in ruby or debug point in Java. I tried looking into the documentation here : https://github.com/elixir-lang/elixir/blob/4f68...
Spicebush asked 18/10, 2015 at 21:51

1

Getting error when installing Elixir dependencies, all Mix command are throwing same exception 23:31:44.447 [notice] Application ssl exited: exited in: :ssl_app.start(:normal, []) ** (EXIT) an exc...
Buss asked 6/8, 2023 at 5:44

2

Setup new project with command mix new project_name it setup everything without any error or warning message, cd to project and ran command iex -S mix it throws error lib/helloworld.ex defmodule H...
Dementia asked 7/8, 2023 at 3:12

5

Solved

How to automatically recompile and reload my iex + mix application every time I modify the source code? If there's no way for iex + mix combination to do that, what's the easiest alternative? I've...
Trixie asked 12/9, 2015 at 15:47

1

Solved

Is there a vim mode available for iex? That is, something like set -o vi in bash. Here's my version info: IEx 1.13.0 (compiled with Erlang/OTP 24) I'm running it on Linux Mint 20.2 Uma.
Sisto asked 28/12, 2021 at 14:24

4

Solved

With IEx (Elixir's REPL), I'd like to be able to save my command history. For example: I can open up a new IEx session and execute a command. After executing the command I can press the up arrow...
Raspings asked 30/7, 2017 at 21:54

4

Solved

I'm just learning Phoenix and Elixir and I'm coming from Ruby/Rails where I work in the REPL using pry to inspect my database and application state. I'm trying to figure out how to interact with m...
Chesty asked 26/10, 2015 at 15:23

2

Solved

To get a list of all functions on a module in IEx I can run: Map.__info__(:functions) # or Enum.__info__(:functions) Using the {Module}.__info__(:functions) format. How can I get a list of a...
Shaughn asked 19/10, 2019 at 7:44

2

Solved

I can't figure out how to view my current context in IEx. I want to see a list of all the variable that have been defined in the shell. Is this possible? Thanks.
Divinadivination asked 7/2, 2017 at 1:47

2

Solved

I am trying to round a Float in elixir to 2 decimal places. If I have the number 12.555, I would like my rounding function to return 12.56 I originally thought that the Float.round was what I wa...
Symmetrical asked 8/4, 2019 at 19:10

2

Solved

Running a phoenix server in iex session via mix, like: iex -S mix phx.server Will sometimes give a list of warnings like: Compiling 1 file (.ex) warning: variable "user" is unused lib/app_web...
Croon asked 17/9, 2018 at 3:56

1

Solved

In Elixir, is there a way to call a module function directly from the shell, without necessarily needing to start an iex -S mix session? Let me illustrate with a scenario: As part of my Phoenix ap...
Advanced asked 4/4, 2018 at 16:21

2

Solved

How to sleep / wait for one second? Best I could find was something like this (in iex): IO.puts "foo" ; :timer.sleep(1); IO.puts "bar" But both of my puts happen with no delay.
Bellyful asked 9/5, 2016 at 1:17

1

Say I'm writing a new module, the code isn't ready yet and I want to test something in the repl. I run iex -S mix and it fails because of compilation errors I didn't intend to fix yet. I presume t...
Humpage asked 15/1, 2018 at 11:0

1

Solved

When I run Elixir code with my debugger, Pry, then it always confronts me with Allow? [Yn] Can I pass a configuration option to always allow this? Thus, by default? Why is this question asked? W...
Birdsong asked 27/11, 2017 at 16:8

5

Solved

I know we can exit the IEX console with control-C. I'm curious if there's a command to type into the console that would also do the same thing.
Houri asked 6/5, 2015 at 18:59

2

Solved

I know several ways to quit iex but I'd love to use ctrl-D like in other REPLs (e.g., node, irb.) How can I customize iex to do this?
Miltie asked 20/6, 2016 at 17:55

2

Solved

I just started learning elixir yesterday. I have a file User.exs. It looks like this: defmodule User do @moduledoc """ Defines the user struct and functions to handle users. """ # functions a...
Timid asked 28/2, 2017 at 8:59

1

I'm new to Elixir/Phoenix and I was wondering if there was a way to essentially require IEx for the purpose of IEx.pry in the same manner that in Ruby/Rails you can add something like group :test...
Socinus asked 6/1, 2017 at 20:18

1

When typing () in IEx 1.2.4, the cursor would "jumping" to the matching parenthesis for 1s and move back. Even though it's not really jumping but it's kinda annoying to the eye. Is there a way to d...
Stratfordonavon asked 15/4, 2016 at 18:43

1

Solved

I am on a remote machine, it has a running Erlang VM node on it. I'm trying to connect to Erlang VM node via iex but get an error back: $ iex --name [email protected] --remsh [email prot...
Mehitable asked 4/11, 2016 at 16:26

1

Solved

If I start an IEx session in the following manner the cookie is set correctly. $ iex --name [email protected] --cookie mycookie -S mix ... iex([email protected])1> :erlang.get_cookie ...
Brenna asked 1/11, 2016 at 9:58

3

Solved

I don't get what exactly means the equal sign in Elixir. What is unclear is that it looks like a mix between assignment and a pattern matching operation. iex(1)> x=4 4 iex(2)> y=5 5 iex(3)...
Cyrilla asked 24/6, 2016 at 14:23

1

Solved

I have an elixir/OTP application running in production, that was started with mix phoenix.server. It has several processes that hold state. One of these is a stash, implemented as Agent, that curre...
Worthen asked 20/7, 2016 at 22:3

1

Solved

I have a worker which creates database queries, like that: defmodule MyApp.Periodically do use GenServer def start_link do GenServer.start_link(__MODULE__, %{}) end def init(state) do sche...
Winona asked 5/7, 2016 at 6:3

© 2022 - 2024 — McMap. All rights reserved.