Pijul log shows nothing; should it?

Installed on MacOS, I created a repository, added a file, and recorded a change. I then ran pijul log and nothing was displayed in the console. Shouldn’t there be something output to screen?

Thanks in advance.

This is strange, can you give me the exact list of steps you followed?
Also, if you run into bugs, I don’t know if you’re already aware of nest.pijul.com, but you’re welcome to report bugs and host your repositories on nest.pijul.com/pijul/pijul

There’s even a baby CI being tested on a few repositories, and hopefully available.

Thanks. While I did see the bug-tracking ability, I presume I am somehow doing something wrong. Here is what I did:

  • Initialize the pijul repository
  • Create a new file
  • pijul add fileName
  • pijul record -a -m "initial commit"
  • Modified the file
  • pijul record -a -m "next commit"
  • pijul log

I received no output to my command console.

Some additional information: when I clone the Pijul repository itself (1) I needed to run it in sudo mode because the regular pijul clone resulted in an error about “Changeset”, saying “No such file or directory” and (2) after cloning in sudo mode, I was able to see the pijul log with sudo pijul log, though not with pijul log itself and (3) after running chown -R frankdmartinez pijul on that cloned repository, pijul log now works just fine in that repository, though not on my original one.

I don’t know how much of a difference that makes. Any advice would be appreciated.

This does sounds like a bug. Does the second record give you what you expect, i.e. just the changes of your “Modified the file” step?
Can you paste the output of RUST_LOG="pijul=debug,libpijul=debug" pijul log?

Unfortunately, I get nothing at all; text from z-shell:

(base) frankdmartinez@MacBook-Pro-2 pijulTest % pijul log
(base) frankdmartinez@MacBook-Pro-2 pijulTest %

As far as the requested output goes, it looks like this:

(base) frankdmartinez@MacBook-Pro-2 pijulTest % RUST_LOG=“pijul=debug,libpijul=debug” pijul log
[2020-12-17T14:23:48Z DEBUG pijul::repository] “/Users/frankdmartinez/Documents/pijulTest/.pijul”
(base) frankdmartinez@MacBook-Pro-2 pijulTest %

Alright. Can you give me the outputs of each of the commands you type (pijul init, pijul record and pijul log), on the most basic text files and changes you can (i.e. modifying just adds one line), all prefixed by RUST_LOG="libpijul=debug,pijul=debug"?

Sure, coming right up…

I have placed the output here so as to not overwhelm this page with a wall of text. For exportation purposes, a raw form of the posting can be found here.

In case those pages are ever taken down, respective archives of those pages can be found here and here.

Thanks! So, everything is happening as expected, except the log. Would you mind telling me what .pijul/config looks like?

Another thing that would be pretty useful is, make a tarball of the entire repository (including the .pijul and all the files), and send it to pe@pijul.org.

Thanks. I’ll get that tarball off right away. As for the content of that file, it looks like so:

current_channel = “main”

[remotes]

[hooks]
record =

I can confirm alpha 24 resolves this issue; thanks for all the help!

@pmeunier I didn’t want to open a new thread, but looks like there’s a regression. I crated a new repo and recorded some changes, and yet the log is empty, but things seem to be recorded, though?

$ tree .pijul/changes/
.pijul/changes/
├── 2G
│   └── WXM7GTLAZAUI54ZCAPP2ZF5E2WQOSEKRUXQUBTQTNUCCDMQKWAC.change
├── H7
│   └── QHMQM533PV6JPLRDTUDHIZWT7SYVP5T2X2SODPVWGNHNFMJBJQC.change
└── Y4
    └── Q2ZGYTTCUI4HVBKGQTROF24DU2M6MB752DZZIDHH4UBJP5ZUEQC.change

I’m running 1.0.0-alpha.53 installed from Nixpkgs on macOS. This is the debug output:

[2021-08-16T20:41:17Z DEBUG pijul::repository] "/Users/tae/pijul-playground/.pijul"
[2021-08-16T20:41:17Z DEBUG libpijul::small_string] onpage_size [4, 109, 97, 105, 110]
[2021-08-16T20:41:17Z DEBUG libpijul::small_string] onpage_size [4, 109, 97, 105, 110]
[2021-08-16T20:41:17Z DEBUG libpijul::pristine::sanakirja] load_channel: "main" SerializedChannel { graph: L64(36864), changes: L64(86016), revchanges: L64(40960), states: L64(73728), tags: L64(77824), apply_counter: L64(3), last_modified: L64(1629145653), id: RemoteId([79, 34, 165, 6, 253, 153, 164, 143, 55, 233, 0, 189, 67, 150, 242, 181]) }
[2021-08-16T20:41:17Z DEBUG libpijul::pristine::sanakirja] get_external ChangeId(Y4Q2ZGYTTCUI4)
[2021-08-16T20:41:17Z DEBUG libpijul::pristine::sanakirja] get_external ChangeId(H7QHMQM533PV6)
[2021-08-16T20:41:17Z DEBUG libpijul::pristine::sanakirja] get_external ChangeId(2GWXM7GTLAZAU)

Might be a “less strikes again” kind of thing, can you send me a tarball of your repo (pe@pijul.org)? Also, I’m interested in the output of less --version.

Here is the repo. And here is less --version:

less 487 (POSIX regular expressions)
Copyright (C) 1984-2016  Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Homepage: http://www.greenwoodsoftware.com/less

Here’s what I see on Linux:

> pijul log
Change Y4Q2ZGYTTCUI4HVBKGQTROF24DU2M6MB752DZZIDHH4UBJP5ZUEQC
Author: BB9aMq7HXRMAty1CEyZAVJ5X6cTPBa3LbbvePQjwxMVr
Date: 2021-08-16 20:27:40.962779 UTC

    Tercer commit

Change H7QHMQM533PV6JPLRDTUDHIZWT7SYVP5T2X2SODPVWGNHNFMJBJQC
Author: BB9aMq7HXRMAty1CEyZAVJ5X6cTPBa3LbbvePQjwxMVr
Date: 2021-08-16 20:23:12.858887 UTC

    Second commit

Change 2GWXM7GTLAZAUI54ZCAPP2ZF5E2WQOSEKRUXQUBTQTNUCCDMQKWAC
Author: BB9aMq7HXRMAty1CEyZAVJ5X6cTPBa3LbbvePQjwxMVr
Date: 2021-08-16 20:19:00.422707 UTC

    Primer commit

I wonder why it doesn’t work anymore on OSX. If you can, adding a line before line 126 of pijul/src/commands/mod.rs, so that it looks like:

        if let Some(caps) = regex.captures(&less.stdout) {
            debug!("{:?}", caps);
            if std::str::from_utf8(&caps[1])

Then, RUST_LOG="pijul=debug" pijul log should give you extra info about the issue, this would be very useful for me.

I’m having troubles compiling on macOS once again, but in the meanwhile maybe this helps? pijul log works on the repos I’ve cloned (pijul and manual) :thinking:

@pmeunier here is the output I get after making the change you suggested, I don’t think it adds that much though

$ RUST_LOG="pijul=debug" ~/Projects/pijul/target/debug/pijul log
[2021-08-27T19:27:41Z DEBUG pijul::repository] "/Users/tae/pijul-playground/.pijul"
[2021-08-27T19:27:41Z DEBUG pijul::repository] max_files = 16
[2021-08-27T19:27:41Z DEBUG pijul::commands] Captures({0: Some("less 487"), 1: Some("487")})

I just noticed pijul diff shows the escape sequences

ESC[0mESC[32m+ use ::log::*;

You mentioned maybe less is the issue, so it could be related?