Skip to content

Crash when creating a unified journal with specific name #21

@tomasriveral

Description

@tomasriveral

Steps to reproduce:

  1. launch notewrapper
  2. select a vault
  3. select "Create a new note"
  4. Type a name that doesn't end with .md and that matches journalRegex
  5. Select "unified journal"
  6. The program crashes

Note: the files is still created (with a .md added)

What I think happens:

  1. the program sanitize the file name by adding .md
  2. the program creates the file
  3. the program returns the file path (or name) without .md
  4. so the wrong file is open
[program ERROR -- 21:37:44] From file src/notes.c line 313 function updateJournal:
 (System-level error message: No such file or directory)
/home/tomasr/test//test/journal is not a file and not a directory.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions