← News Release ·2 min read

Pooka 0.5.0: a little less typing

Four new editor actions for imports and class constructors, plus more ways to follow code through a project.

Pooka 0.5.0 gives the language server a few small edits to make. I've started with the ones I keep making by hand.

Give the creature a name

Write a base class with an uninitialized field. Put the cursor on the field and choose Generate constructor from the editor's code actions.

class Creature {
  let name: String
}

The editor fills in the missing constructor.

class Creature {
  let name: String

  new(name: String) {
    self.name = name
  }
}

If there are several uninitialized fields, the parameters follow their declaration order. Fields that already have a value keep it.

Put the imports in order

Add missing import offers the visible modules that export an unresolved name. Organize imports sorts imports and removes exact duplicates. Remove all unused imports uses the compiler's warnings to clear unused modules and selective names in one go.

Each action edits the active file, including its unsaved changes. The language server also supports finding references, renaming supported names, following incoming and outgoing calls, and running a saved test from its code lens.

At the terminal

The compiler now points more clearly at non-callable values, missing members, and assignments to immutable bindings. It also keeps tail calls in more functions that use ?, emits UTF-8 string segments directly in Erlang binary forms, and accepts Rebar dependency overrides that clear plugins.

Download Pooka 0.5.0 · Editor setup