Fernando
Hello, im new to elixir and new to linux(using ubuntu 14.04 now), started this week. Im following this http://elixir-lang.org/getting-started/modules.html i feel like is a fool question but how i create a file? or where i have tu put? i created one with sublime text 2 but can’t compile in the terminal. Also if you have any advices of learning, would be great! .Thx.
Trending in Questions
Hey guys,
I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly
Do you guys have any suggestions what is the best prac...
New
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
Anyone here using Honeybadger?
My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of
Bandit.HTTPError...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
Other Trending Topics
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
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
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
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
Aludel - LLM Evaluation Workbench
Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #ai
- #elixirconf-us
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
ejc123
I found that reading this part of the guide and then using mix to create a new project was helpful.
NobbZ
To give you the best help on this we need to know how exactly you created that file using sublime and how you tried to compile it. Both including full path of where saved and where run the commands to compile.
AstonJ
You can simply save files with the .ex or .exs extension.
.exs is scripted mode, and does not need to be compiled - have a look here in the guide.
Fernando
I write on sublime(have elixir bundle) and save it like .exs in documents, the open terminal and put: $ elixir math.exs . No file named appears, so i think i have to put in another path but dont know where.
Fernando
I will read that, thx.
NobbZ
Then you’ll have to check where sublime saved the file on disk, open a terminal
cdto that path and try elixir command again. If this sentence means nothing to you, you should start out with a Linux tutorial. I don’t have on at hand, I was guided through my first Linux steps 20 years ago, long before we had internet at home by a friend of my father. Before that I’ve grown up with DOS so some concepts were already known to me.AstonJ
Are you on OS X? If so open a terminal window and enter
cd desktopwhich will take you to the desktop, then make sure your file is on the desktop, then simply use the command to run the file, e.g.elixir my_file.exs.NobbZ
Nope, he isn’t
According to the starting post he uses Ubuntu 14.04 LTS and is new to linux and elixir as well.
AstonJ
Ah right sorry
The same thing should work though - navigate to the folder where the file is and run the Elixir command from there. Alternatively, if you can get to your file you can usually just drag it into a terminal window and location will show, which you can then just prefix with
elixir, e.g:NobbZ
Oh and if that file is really named
math.exs, tryfind ~ -name 'math.exs'in an open terminal, it might take quiiiiite a whiiiiiile… Go drink acupcan of coffeeSomewhere in that output there should be a line showing you the path to the file.
Another way (assuming Unity) is to enter the name of the file in the opened dashboard. If I do recall correctly it might show you exactly that file you created then. You can rightclick this and “open filemanager at path” or depending on your config even “open terminal at path” or something along that lines. Also this does only work if
zeitgeist(indexing demon) is installed and enabled[1]. Also it is about 3 years ago I used Unity the last time, memory is fading and things could have changed.[1] It is both by default since it is a hard dependency of Unity, but since it can be a real CPU, HDD and RAM hogger, many people do some tricks to “deactivate” it.