ncurses was broken with tabbar

Open
#2,226 2 comments 2 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Domain
backend

Research direction

The report points to tabbar redraw calling LEM-SERVER::CHANGE-VIEW-TO-HTML with a LEM/TABBAR::TABBAR-WINDOW while using ncurses. Start by tracing the tabbar window redraw path and how ncurses views are handled. Done means tabbar no longer triggers the reported view type error and ncurses works with tabbar enabled.

Written by the indexing model from the issue text.

Description

error:
The value #<LEM-NCURSES/VIEW:VIEW {1205C95F83}> is not of type LEM-SERVER/VIEW:VIEW
Backtrace for: #<SB-THREAD:THREAD tid=196411 "editor" RUNNING {1204F5B8D3}>
0: (LEM-SERVER::VIEW-ID-HASH #<LEM-NCURSES/VIEW:VIEW {1205C95F83}>)
1: (LEM-SERVER::CHANGE-VIEW-TO-HTML #<LEM/TABBAR::TABBAR-WINDOW {1205C92673}> #<(SIMPLE-ARRAY CHARACTER (4027)) <style>
/* ===== Theme tokens ===== */
:root {
--tab-bg: #181818;
--tab-bg-hover: #252525;
--tab-bg-active: #2d2d2d;
--tab-fg: #8b8b8b;
--tab-fg-active: #e0e0e0;
--tab-border: #2a2a2... {120633800F}>)
2: ((:METHOD LEM-CORE:WINDOW-REDRAW (LEM/TABBAR::TABBAR-WINDOW T)) #<LEM/TABBAR::TABBAR-WINDOW {1205C92673}> #) [fast-method]
3: (LEM-CORE:REDRAW-DISPLAY :FORCE NIL)
4: (LEM-CORE::COMMAND-LOOP-BODY)
5: (LEM-CORE:COMMAND-LOOP)
6: (LEM-CORE::TOPLEVEL-COMMAND-LOOP #<FUNCTION (LAMBDA NIL :IN LEM-CORE::RUN-EDITOR-THREAD) {1205B2C10B}>)
7: ((LAMBDA NIL :IN LEM-CORE::RUN-EDITOR-THREAD))
8: ((LAMBDA NIL :IN LEM-CORE::RUN-EDITOR-THREAD))
9: ((FLET BT2::RUN-FUNCTION :IN BT2::ESTABLISH-DYNAMIC-ENV))
10: ((LABELS BT2::%ESTABLISH-DYNAMIC-ENV-WRAPPER :IN BT2::ESTABLISH-DYNAMIC-ENV))
11: ((FLET SB-UNIX::BODY :IN SB-THREAD::RUN))
12: ((FLET "WITHOUT-INTERRUPTS-BODY-" :IN SB-THREAD::RUN))
13: ((FLET SB-UNIX::BODY :IN SB-THREAD::RUN))
14: ((FLET "WITHOUT-INTERRUPTS-BODY-" :IN SB-THREAD::RUN))
15: (SB-THREAD::RUN)
16: ("foreign function: call_into_lisp_")
17: ("foreign function: funcall1")

i disable tabbar in ncurses in ~/.config/lem/init.isp
(unless (typep (lem:window-view (current-window)) 'lem-server/view:view) (setf lem/tabbar:*enable-tabbar-on-startup* #NIL))
then ncursee can work.

Dominant language
Common Lisp
Stars
3.1k
Forks
261
Avg merge
1d 6h
Merged PRs (30d)
133

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lem-project/lem

All issues in lem-project/lem

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.