dustinblackman/oatmeal

Oatmeal failes with: Device not configured (os error 6)

GregDeMare opened this issue · 7 comments

I think oatmeal is great!
But I have a problem on my MacOs Sonoma Version 14.1.1 (23B81)
Terminal App: terminal: 2.14 ; iterm2: 3.4.22 ; zellij: 0.39.2
Shell: zsh
Neovim version: 0.9.4

When I select code in neovim and send it to oatmeal with <´, ´>!Oatmeal
I get the following error:

Oh no! Oatmeal has failed with the following app version and error.
Version: 0.5.4
Commit: 67f5df6 Error: Device not configured (os error 6)

0: anyhow::backtrace::capture::Backtrace::capture
1: anyhow::error::<impl core::convert::From for anyhow::Error>::from
2: <tokio::future::poll_fn::PollFn as core::future::future::Future>::poll
3: oatmeal::main::{{closure}}.14890
4: oatmeal::main
5: std::sys_common::backtrace::__rust_begin_short_backtrace
6: _main

Hey there! Thanks for giving Oatmeal a try.

That error I haven't seen before. A quick search through google looks to be something related to the terminal emulator you're using. Would you mind proving me the following please?

  • Terminal App
  • Shell (zsh/bash/fish)
  • Neovim version

Thanks!

Ah I have a repro! I'm unfamiliar with prefixing ! before Oatmeal in your visual selection command. What is the expected use case you're trying?

I'm just trying your example, but I can't do :<´, ´>Oatmeal
I get an error 'E492: not a edtingcommand: <´, ´>Oatmeal'
I'm running neovim but I'm a beginner with neovim so maybe I miss something when invoking the visual selection command
I select the lines with the mouse, then I type :
Neovim then present :<´, ´> at the bottum of the screen, I type Oatmeal and Return, then I get te error
Am I doing something wrong?

I wouldn't call myself an expert in any way either, but it feels like you may be doing something wrong. Lemme try to walk you through it and tell me if you're still experiencing problems. Make sure you have the latest version of the extension installed. https://github.com/dustinblackman/oatmeal.nvim

First, I have the following code block:

function sayHi() {
  console.log("hello world!");
}

I do the following:

  1. Move my cursor to the first line.
  2. Press SHIFT+V to enter selection mode
  3. Press j twice to select the following two lines
  4. Press : to open the command prompt, followed by Oatmeal
  5. Hit enter.

Does that get you there?

It works now, I had not installed the oatmeal plugin for neovim! My bad.
I have learned new things about neovim:)

Good stuff! Glad it works :)