Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 06:00
    krader1961 edited #958
  • 04:22
    krader1961 commented #924
  • 04:01
    krader1961 commented #937
  • 04:00
    krader1961 synchronize #937
  • 03:52
    krader1961 commented #623
  • 03:11
    krader1961 commented #316
  • 00:26

    xiaq on master

    pkg/eval: ComposeExceptionsFrom… (compare)

  • 00:13

    xiaq on master

    pkg/eval: Simplify API for outp… (compare)

  • Apr 09 20:01

    xiaq on master

    pkg/eval: Remove Frame.srcRange… pkg/eval: Remove Frame.{eval,Ca… (compare)

  • Apr 09 12:19
    zzamboni commented #921
  • Apr 09 08:54
    SitiSchu commented #921
  • Apr 09 04:16
    krader1961 commented #219
  • Apr 09 04:05
    krader1961 synchronize #937
  • Apr 09 03:14
    krader1961 commented #941
  • Apr 09 02:40
    krader1961 edited #958
  • Apr 09 02:33
    krader1961 commented #947
  • Apr 09 02:17
    krader1961 synchronize #937
  • Apr 09 01:42
    krader1961 opened #959
  • Apr 08 20:36
    xiaq commented #937
  • Apr 08 19:53
    xiaq milestoned #532
mesajor
@mesajor
〚Ian‖telegram〛 If I hit ^R it'll print db error: reading body gob: type mismatch in decoder: want struct type store.Cmd; got non-struct, but the HISTORY prompt is still open.
〚Ian‖telegram〛 If I hit ^C I go back to a normal prompt, if I hit Enter it'll crash.
〚xiaqqaix‖telegram〛 @krader1961 the problem with a pure-text format is that anything that is not append can require rewriting the entire file
〚xiaqqaix‖telegram〛 ok, the crash log is a symptom not the cause
〚Ian‖telegram〛 I was assuming that would be the case.
Kurtis Rader
@krader1961
True, but that shouldn't be a problem in practice since even a very large history will be a few tens of KB.
mesajor
@mesajor
〚xiaqqaix‖telegram〛 @krader1961 my db is 2.0MB
〚Ian‖telegram〛 Hmm, on my main system its 8MB.
Kurtis Rader
@krader1961
Just the strings? Or the raw db size? Mine is 256 KB (raw) and 46K KB (strings only). My fish history which spans several years is only 65 KB.
mesajor
@mesajor
〚xiaqqaix‖telegram〛 the raw db size. fish, like other shells, has a limit on the number of history entries it keeps, no?
Kurtis Rader
@krader1961
Yes
mesajor
@mesajor
〚xiaqqaix‖telegram〛 Ian i'm running out of ideas, so i'm going to ask your elvish version and where you got the binary :)
〚xiaqqaix‖telegram〛 @krader1961 i personally appreciate the fact that using a real database allows elvish to keep my shell history forever :)
〚Ian‖telegram〛 elvish -buildinfo
Version: v0.13.1-238-gf7f2a27
Go version: go1.14.1
Reproducible build: true
〚Ian‖telegram〛 Built it via my update module which just does a go get
〚Paradox460‖telegram〛 fish uses an LRU and has 256k uniques max
〚xiaqqaix‖telegram〛 hmm, that's a recent elvish version built a recent go compiler...
〚Ian‖telegram〛 It's why I made that update module in the first place, got sick of accidentally running something old. Now my terminal yells at me if that's the case 😄 .
mesajor
@mesajor
〚xiaqqaix‖telegram〛 is there anything special about the operating system - custom kernel, security hardening?
〚Ian‖telegram〛 It's a pretty stock Ubuntu 18.04 system, there's a chance work admins have done something surprising but it's not obvious.
〚xiaqqaix‖telegram〛 the error seems to come from the rpc client code that talks to the daemon: https://github.com/elves/elvish/blob/f7f2a271b66b66b48c139f3698076d5387a34a10/pkg/daemon/client.go#L150
〚Ian‖telegram〛 hmm, I did install go with a snap on this system
〚Ian‖telegram〛 That's the only thing that I can think of that might be "weird"
〚xiaqqaix‖telegram〛 if you cd /tmp/elvish-(id -u), do you see several files starting with daemon.log-?
〚xiaqqaix‖telegram〛 aha (re @Ian: hmm, I did install go with a snap on this system)
〚Ian‖telegram〛 ...uh oh
〚xiaqqaix‖telegram〛 can you try this prebuilt binary? https://dl.elv.sh/linux-amd64/elvish-HEAD.tar.gz
〚xiaqqaix‖telegram〛 ... and see if you can still reproduce it, i mean
〚Ian‖telegram〛 yup
〚Ian‖telegram〛 that works fine
〚Ian‖telegram〛 Well, I shouldn't be surprised, every time I've tried to be lazy and use a snap it's backfired in really weird and obscure ways.
〚xiaqqaix‖telegram〛 i wonder what's funny with the snap version of the go compiler
mesajor
@mesajor
〚xiaqqaix‖telegram〛 does it happen to be... 32-bit?
〚xiaqqaix‖telegram〛 mismatch of payload size is something that could cause errors that you saw
〚Ian‖telegram〛 Not sure...I already uninstalled it but let me try and find out.
mesajor
@mesajor
〚Ian‖telegram〛 Doesn't seem to be better with the PPA vs the snap. How weird
〚xiaqqaix‖telegram〛 i wonder if the PPA build was built with Go from snap
〚xiaqqaix‖telegram〛 :)
〚Ian‖telegram〛 lol
〚Ian‖telegram〛 An Ubuntu 18.04 system at home has the PPA and works fine with ^R.
mesajor
@mesajor
〚xiaqqaix‖telegram〛 i guess there is some subtle difference in the OS setup then...
Kurtis Rader
@krader1961
Output of ulimit -a? Are there any unusual limits? Such as the max file size not being unlimited.
mesajor
@mesajor
〚Ian‖telegram〛 It doesn't seem like ulimit is installed? On either Ubuntu 18.04 system.
mesajor
@mesajor
〚xiaqqaix‖telegram〛 ulimit is a normally a builtin, which elvish has not yet implemented...
〚xiaqqaix‖telegram〛 try bash -c ulimit
Kurtis Rader
@krader1961
The UNIX process model requires ulimit be a builtin for the same reason cd has to be a builtin: child processes can't affect the environment of their parent.
mesajor
@mesajor
〚thegrizzlysmit‖telegram〛 What are the available colours for styled and styled-segment, also styled doesn't seem to take background colours any more
Kurtis Rader
@krader1961
See also elves/elvish#596 which points out that it is easy to create a corruputed command history boltdb file.
Kurtis Rader
@krader1961
@zzamboni, I was wondering why my prompt changed its colors every time I started a new elvish session. Even when nothing in my environment was changed. I had copied most of your elvish config; at least as published on github. Then I noticed this in the documentation: session (a glyph with a unique color for the current session, based on its PID). Which caused me to read your -session-color function.
Do you actually use the session style? I can appreciate it from a “what if” perspective. But it seems to me to be completely unusable with respect to producing usable results. That is, prompts that are readable.