# Pijul log shows nothing; should it?

**URL:** <https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691>\
**Category:** Question\
**Created:** [December 16, 2020, 6:50pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691 "2020-12-16T18:50:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![FrankDMartinez](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@FrankDMartinez](https://discourse.pijul.org/u/FrankDMartinez)\
**Post date:** [December 16, 2020, 6:50pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/1 "2020-12-16T18:50:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [December 16, 2020, 8:13pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/2 "2020-12-16T20:13:20Z")

</div>

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](http://nest.pijul.com), but you’re welcome to report bugs and host your repositories on [nest.pijul.com/pijul/pijul](http://nest.pijul.com/pijul/pijul)

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

---

<div class="post-metadata">

**Author:** ![FrankDMartinez](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@FrankDMartinez](https://discourse.pijul.org/u/FrankDMartinez)\
**Post date:** [December 16, 2020, 10:04pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/3 "2020-12-16T22:04:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![FrankDMartinez](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@FrankDMartinez](https://discourse.pijul.org/u/FrankDMartinez)\
**Post date:** [December 17, 2020, 1:49am UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/4 "2020-12-17T01:49:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [December 17, 2020, 7:19am UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/5 "2020-12-17T07:19:27Z")

</div>

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`?

---

<div class="post-metadata">

**Author:** ![FrankDMartinez](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@FrankDMartinez](https://discourse.pijul.org/u/FrankDMartinez)\
**Post date:** [December 17, 2020, 2:24pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/6 "2020-12-17T14:24:33Z")

</div>

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 %

---

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [December 17, 2020, 2:37pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/7 "2020-12-17T14:37:43Z")

</div>

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"`?

---

<div class="post-metadata">

**Author:** ![FrankDMartinez](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@FrankDMartinez](https://discourse.pijul.org/u/FrankDMartinez)\
**Post date:** [December 17, 2020, 2:59pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/8 "2020-12-17T14:59:35Z")

</div>

Sure, coming right up…

---

<div class="post-metadata">

**Author:** ![FrankDMartinez](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@FrankDMartinez](https://discourse.pijul.org/u/FrankDMartinez)\
**Post date:** [December 17, 2020, 3:14pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/9 "2020-12-17T15:14:56Z")

</div>

I have placed the output [here](https://rentry.co/8ffro) 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](https://rentry.co/8ffro/raw).

---

<div class="post-metadata">

**Author:** ![FrankDMartinez](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@FrankDMartinez](https://discourse.pijul.org/u/FrankDMartinez)\
**Post date:** [December 17, 2020, 3:18pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/10 "2020-12-17T15:18:23Z")

</div>

In case those pages are ever taken down, respective archives of those pages can be found [here](https://archive.is/FxTwx) and [here](https://archive.is/uOylf).

---

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [December 17, 2020, 4:56pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/11 "2020-12-17T16:56:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [December 17, 2020, 4:57pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/12 "2020-12-17T16:57:27Z")

</div>

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](mailto:pe@pijul.org).

---

<div class="post-metadata">

**Author:** ![FrankDMartinez](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@FrankDMartinez](https://discourse.pijul.org/u/FrankDMartinez)\
**Post date:** [December 17, 2020, 5:13pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/13 "2020-12-17T17:13:49Z")

</div>

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 =

---

<div class="post-metadata">

**Author:** ![FrankDMartinez](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@FrankDMartinez](https://discourse.pijul.org/u/FrankDMartinez)\
**Post date:** [December 20, 2020, 3:47pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/14 "2020-12-20T15:47:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tae](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/tae/32/81_2.png) [@tae](https://discourse.pijul.org/u/tae)\
**Post date:** [August 16, 2021, 8:40pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/15 "2021-08-16T20:40:37Z")

</div>

@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?

```auto
$ 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:

```auto
[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)

```

---

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [August 16, 2021, 9:03pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/16 "2021-08-16T21:03:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tae](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/tae/32/81_2.png) [@tae](https://discourse.pijul.org/u/tae)\
**Post date:** [August 16, 2021, 9:18pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/17 "2021-08-16T21:18:00Z")

</div>

[Here is the repo](https://www.icloud.com/iclouddrive/0OA5-Ub3-b43-kFki4N99hIFw#pijul-playground). And here is `less --version`:

```auto
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

```

---

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [August 17, 2021, 9:14am UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/18 "2021-08-17T09:14:13Z")

</div>

Here’s what I see on Linux:

```nohighlight
> 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:

```auto
        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.

---

<div class="post-metadata">

**Author:** ![tae](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/tae/32/81_2.png) [@tae](https://discourse.pijul.org/u/tae)\
**Post date:** [August 17, 2021, 6:45pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/19 "2021-08-17T18:45:20Z")

</div>

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) 🤔

---

<div class="post-metadata">

**Author:** ![tae](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/tae/32/81_2.png) [@tae](https://discourse.pijul.org/u/tae)\
**Post date:** [August 27, 2021, 7:28pm UTC](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691/20 "2021-08-27T19:28:49Z")

</div>

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

```auto
$ 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

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

```

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

[Next page](https://discourse.pijul.org/t/pijul-log-shows-nothing-should-it/691.md?page=2)
