Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lsp - The least significant pager
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3821
Location: Rasi, Finland

PostPosted: Thu Jan 02, 2025 4:09 pm    Post subject: lsp - The least significant pager Reply with quote

Hi.

I decided to start a general support/tip topic about app-text/lsp.

I have version 0.5.0_rc4, and whatever I do I get
Code:
lsp_init_screen: Could not change color.
... error message. Even if I supply --no-colors switch.

I invited lsp maintainer here also, so we can iron out the bugs. :)
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
dgouders
n00b
n00b


Joined: 29 Jan 2024
Posts: 8

PostPosted: Thu Jan 02, 2025 9:46 pm    Post subject: Reply with quote

Thank you for starting this topic and of course for spending your time to look at lsp.

This triggers me to update the ebuild to a more recent commit within the next days.

Concerning the error you triggered:

I think I should use can_change_color() before trying to change colors; thanks for telling me
that the foot teminal emulator triggers this problem so I can use it to test all that.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3821
Location: Rasi, Finland

PostPosted: Thu Jan 02, 2025 10:39 pm    Post subject: Reply with quote

If you can get the live/9999 version of lsp on ::guru, I could act as your guinea pig. ;D

Although, I could also just create one on my own overlay.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3821
Location: Rasi, Finland

PostPosted: Fri Jan 03, 2025 9:41 am    Post subject: Reply with quote

I did few tests:
  • Code:
    $ env -i - TERM=xterm lsp README.adoc
    lsp_init_screen: Could not change color.
  • Code:
    env -i - TERM=xterm-256color lsp README.adoc
    • Works as expected.

_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
dgouders
n00b
n00b


Joined: 29 Jan 2024
Posts: 8

PostPosted: Fri Jan 03, 2025 8:04 pm    Post subject: Reply with quote

Today, I spent some time to do some cleanup and push several commits that I didn't push
for a longer period; now, github is in sync with my local stuff.
Next, I will create a 9999 ebuild as you suggested.

Thanks for "waking me up" so that I re-focus to real problems ;-)

Thanks for the tests that helped me to analyze the color-problem
I'm now going to commit two fixes (I guess).

Prior to that I want to ask if it is OK to add Reported-By or Tested-By similar to what is done
in the Linux kernel. If so, should I use nicknames or real ones (if I know them)?
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3821
Location: Rasi, Finland

PostPosted: Sat Jan 04, 2025 6:12 pm    Post subject: Reply with quote

Hi. I tested 9999 version, but the problem persists.
The problem occurs when running lsp inside tmux:
Code:
$ echo $TERM; lsp README.adoc
tmux-256color
lsp_init_screen: Could not change color.
While if I'm outside tmux in "raw" foot terminal things work ok.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
dgouders
n00b
n00b


Joined: 29 Jan 2024
Posts: 8

PostPosted: Sat Jan 04, 2025 7:37 pm    Post subject: Reply with quote

Yes, sorry for the confusion.

I didn't commit the color-fixes, because I was waiting for an answer if I am allowed to
give you credit. Anyway, thanks a lot for all the testing!

To stay on the safe side, I now commited the fixes without giving you explicit credit.

So, now your tests should show other results...

Regards,

Dirk
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum