ion

ion

is anybody else finding beam.smp to take up 100%+ system resources on macOS when launching Atom editor with the deprecated atom-elixir/language-elixir plugin?

First 10 of 16 Posts Switch mode

mkunikow

mkunikow

I don’t like atom at all :slight_smile: (visual studio code/ spacemacs fan)

OvermindDL1

OvermindDL1

Here the erl process started by atom is using <0.01% CPU in the process list. Atom itself is eating 0.44% while it does nothing… >.>

ion

ion OP

I don’t either. That’s why I’m trying to find/make a quick cheat sheet on common spacemacs commands to get me going efficiently.

Things like:

  • opening windows and closing them
  • opening help documentation and closing them (buffers?)
  • neotree - efficient file/folder traversal, file creation, deletion, renaming
  • split view debugging! oh, this would be lovely.
  • multi-line editing

:smiley:
(haven’t had time to figure out the tern binary not found error)

mkunikow

mkunikow

Tern is for javascript ..
First you need to install it on your system.
Spacemacs js layer

But I prefer visual studio code for js editing

Our spacemacs wiki

OvermindDL1

OvermindDL1

That literally means that the tern binary, the tern program, is not found. Can you run tern on your terminal? :slight_smile:

One of your layers is looking for the tern program and you do not have that program on your path is the reason. :slight_smile:

ion

ion OP

which tern /usr/local/bin/tern

My .spacemacs config file looks a bit ugly, but here it is. Do I need to separate the plugins into a layers file?

mkunikow

mkunikow

Windows users may need to set the variable tern-command in order for emacs to locate and launch tern server successfully. See this open issue for more details. The variable can be set when adding the javascript configuration layer:

(javascript :variables tern-command '(“node” “/path/to/tern/bin/tern”))

You can also try to run emacs GUI from terminal.

ion

ion OP

the problem is with the PATH not finding the tern binary when using spotlight.

but if I use open /Applications/Emacs.app --args --debug-init (fish shell, iterm), it works fine.

which emacs returns /usr/bin/emacs, which isn’t what I installed.

mkunikow

mkunikow

ok so can you just specify tern location in spacemacs config file when you define javascript layer?
I think this should fix problem
(javascript :variables tern-command '("node" "/path/to/tern/bin/tern"))

PS
But any way you won’t find better editor for javascript than visual studio code :smiley:

  • node.js debugging
  • typescript definitions: you can download typescript definition for library for example jquery and then you have documentation, code hints for this library
jackalcooper

jackalcooper

I’ve given up on Atom. Atom on my Mac always got frozen in about 3 minutes and prompt “wait or close”. I’ve tried Emacs, Spacemacs and Vim each for a while. Finally I think VS Code fits me the best and it’s very stable.

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
roeland
Kia ora, We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
rahultumpala
Hello, I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
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
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 &amp; 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
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

We're in Beta

About us Mission Statement