dustinblackman / oatmeal

Terminal UI to chat with large language models (LLM) using different model backends, and integrations with your favourite editors!
https://dustinblackman.com/posts/oatmeal/
MIT License
487 stars 23 forks source link

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

Closed GregDeMare closed 9 months ago

GregDeMare commented 9 months ago

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

dustinblackman commented 9 months ago

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?

Thanks!

GregDeMare commented 9 months ago

Hi,

I have updated the issue with the requested version numbers.

/Greg

On Sun, Dec 3, 2023 at 3:47 AM Dustin Blackman @.***> wrote:

Hey there! Thanks for giving Oatmeal a try.

So 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!

— Reply to this email directly, view it on GitHub https://github.com/dustinblackman/oatmeal/issues/9#issuecomment-1837316521, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDV35VZ65ZET75KWVH4U7LYHPR2VAVCNFSM6AAAAABAEJHB5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGMYTMNJSGE . You are receiving this because you authored the thread.Message ID: @.***>

-- Hälsningar,

Greger Samuel Sandström Sernemar http://www.google.com/profiles/117777012816363585200#

dustinblackman commented 9 months ago

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?

GregDeMare commented 9 months ago

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?

dustinblackman commented 9 months ago

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?

GregDeMare commented 9 months ago

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

dustinblackman commented 9 months ago

Good stuff! Glad it works :)