We are currently planning to migrate to a different platform for the forum. We will announce this fact both here and on Twitter, once we have settled on a solution.

Unable to open existing directory

edited December 2020 in General

Unable to open existing directory

I just upgraded to 1.8.1 and am unable to open an existing project/directory. Looking through the log, I observe FSAL Removing path /Users/may/Projects/coletti-personal/zettelkasten, as it does no longer exist., which is false because that path DOES exist. And is writeable. It then complains Could not open new root file /Users/may/Projects/coletti-personal/zettelkasten! when I try to open it; again, that directory does exists.

Here is a dump of the log:

[13:36:13]  こんにちは! Booting Zettlr at Fri Dec 11 2020 13:36:13 GMT-0500 (Eastern Standard Time).
[13:36:13]  Performing environment check ...
[13:36:13]  Added DevTools extension: Vue.js devtools
[13:36:13]  Environment check complete.
[13:36:13]  Registering custom protocol safe-file
[13:36:13]  Log provider booting up ...
[13:36:13]  Config provider booting up ...
[13:36:13]  [Config Provider] Loading configuration file from /Users/may/Library/Application Support/zettlr/config.json ...
[13:36:13]  [Config Provider] Successfully loaded configuration
[13:36:13]  Migrating from 1.7.5 to 1.8.1!
[13:36:13]  Appearance provider booting up ...
[13:36:13]  Citeproc provider booting up ...
[13:36:13]  Dictionary provider booting up ...
[13:36:13]  Recent documents provider booting up ...
[13:36:13]  Tag provider booting up ...
[13:36:13]  Target provider booting up
[13:36:13]  CSS provider booting up ...
[13:36:13]  Translation provider booting up ...
[13:36:13]  Update provider booting up ...
[13:36:13]  Notification provider booting up ...
[13:36:13]  FSAL booting up ...
[13:36:13]  Clearing the FSAL cache ...
[13:36:13]  Cache cleared!
[13:36:13]  [Citeproc Provider] Loading CSL locale file at /Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/native_modules/locales-en-US.xml ...
[13:36:13]  FSAL Removing path /Users/may/Projects/coletti-personal/zettelkasten, as it does no longer exist.
[13:36:13]  Loaded all roots in 0.276 seconds
[13:36:14]  Trying to run command through Application: get-tags
[13:36:14]  Trying to run command through Application: get-tags-database
[13:36:14]  Trying to run command through Application: get-paths
[13:36:14]  Trying to run command through Application: citeproc-get-ids
[13:36:14]  Trying to run command through Application: set-active-file
[13:36:16]  Trying to run command through Application: workspace-open
[13:36:22]  Could not open new root file /Users/may/Projects/coletti-personal/zettelkasten!
[13:36:39]  Trying to run command through Application: workspace-open
[13:36:42]  Could not open new root file /Users/may/Projects/coletti-personal/zettelkasten!
[13:38:03]  Trying to run command through Application: get-preferences
[13:38:22]  Trying to run command through Application: update-user-dictionary
[13:38:22]  Trying to run command through Application: update-config
[13:38:24]  Trying to run command through Application: workspace-open
[13:38:28]  Could not open new root file /Users/may/Projects/coletti-personal/zettelkasten!
[13:42:17]  Trying to run command through Application: workspace-open
[13:42:20]  Could not open new root file /Users/may/Projects/coletti-personal/zettelkasten!
[13:53:24]  Trying to run command through Application: get-sponsors

Debugging info:

General Information
Zettlr Version: 1.8.1

System: darwin 10.14.6 (architecture: x64)

Build Dependencies
This build was compiled using

Node.js v12.16.3
Electron v10.1.5
Chrome v85.0.4183.121
v8 engine v8.5.210.26-electron.0
Zlib v1.2.11
OpenSSL v1.1.0
Current System Load
CPU Load: 0.2 %
Resident Set Size: 524.92 MB
C++ memory for JS Objects: 42.84 MB
Heap: 26.67 from 27.59 MB (Limit: 4194.05 MB)
Renderer flags
/Applications/Zettlr.app/Contents/Frameworks/Zettlr Helper (Renderer).app/Contents/MacOS/Zettlr Helper (Renderer)
--type=renderer
--field-trial-handle=1718379636,7311473729231377240,3503414936039154050,131072
--enable-features=WebComponentsV0Enabled
--disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess
--lang=en-US
--app-path=/Applications/Zettlr.app/Contents/Resources/app.asar
--node-integration
--no-sandbox
--no-zygote
--background-color=#fff
--enable-spellcheck
--enable-websql
--disable-electron-site-instance-overrides
--num-raster-threads=4
--enable-zero-copy
--enable-gpu-memory-buffer-compositor-resources
--enable-main-frame-before-activation
--renderer-client-id=4
--no-v8-untrusted-code-mitigations
--shared-files
Environment Variables
TMPDIR: /var/folders/91/wqw6v_2x1t9_x7hflyc0955x47kzhv/T/
__CF_USER_TEXT_ENCODING: 0x48797E1B:0x0:0x0
HOME: /Users/may
SHELL: /bin/zsh
Apple_PubSub_Socket_Render: /private/tmp/com.apple.launchd.mlYBYly13j/Render
SSH_AUTH_SOCK: /private/tmp/com.apple.launchd.vdB1I7vBMs/Listeners
PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/TeX/texbin:xelate
LOGNAME: may
DISPLAY: /private/tmp/com.apple.launchd.J2jh3oYMzt/org.macosforge.xquartz:0
XPC_SERVICE_NAME: com.electron.zettlr.64416
USER: may
XPC_FLAGS: 0x0
ORIGINAL_XDG_CURRENT_DESKTOP: undefined
Tagged:

Comments

  • Also seeing in log when trying to open directory:

    Unknown command received: dir-open

  • I have tried un-installing and re-installing to no avail. Worse yet, I cannot create new files because zettlr wants a directory, and I'm unable to open any directory. So now zettlr is unusable.

  • I ran the application from the command line so that I could invoke --clear-cache to see if that would help. Nope. But I did get this output:

    ./MacOS/Zettlr --clear-cache
    (node:46528) ExtensionLoadWarning: Warnings loading extension at /Users/may/Library/Application Support/zettlr/extensions/nhdogjmejiglipccpnnnanhbledajbpd: Unrecognized manifest key 'browser_action'. Unrecognized manifest key 'update_url'. Permission 'contextMenus' is unknown or URL pattern is malformed. Cannot load extension with file or directory name _metadata. Filenames starting with "_" are reserved for use by the system.
    5 ms: Loaded file /Users/may/Projects/coletti-personal/zettelkasten/Evolutionary Computation/20201009151049.md
    265 ms: Loaded file /Users/may/Projects/coletti-personal/zettelkasten/Evolutionary Computation/20201009152303.md
    2 ms: Loaded file /Users/may/Projects/coletti-personal/zettelkasten/Evolutionary Computation/20201120104441.md
    4 ms: Loaded file /Users/may/Projects/coletti-personal/zettelkasten/Evolutionary Computation/asynchronous_algo.md
    TypeError: Cannot read property 'toLowerCase' of null
        at e.exports (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:101:95313)
        at Array.sort (<anonymous>)
        at Object.e.exports [as default] (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:47:92415)
        at S (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:101:90251)
        at O (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:101:91816)
        at async O (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:101:91792)
        at async Object.t.parse (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:101:92369)
        at async x._loadDir (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:101:42946)
        at async x.loadPath (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:101:43619)
        at async t.default.init (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:101:12665)
    TypeError: Cannot read property 'toLowerCase' of null
        at e.exports (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:101:95313)
        at Array.sort (<anonymous>)
        at Object.e.exports [as default] (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:47:92415)
        at S (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:101:90251)
        at O (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:101:91816)
        at async Object.t.parse (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:101:92369)
        at async x._loadDir (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:101:42946)
        at async x.loadPath (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:101:43619)
        at async t.default.init (/Applications/Zettlr.app/Contents/Resources/app.asar/.webpack/main/index.js:101:12665)
    
  • I have a similar issue in 1.8.1

    I clicked "close all tabs" after working for hours and now I can't open anything except for directly opening .md files.

    BTW I am using Zettlr as a Zettelkasten, if it matters.

  • I had a similar thing happen (1.8.1 and then tried 1.8.2 without seeing a change).

    It turned out that in one particular note, I had a YAML front matter with a title: field that was blank. As soon as I added text to that field, everything would load in Zettlr again. If I remove the text, Zettlr won't load any files or folders and just displays a blank screen.

    I found this out because my whole folder/file structure disappeared from within Zettlr and I got the message you had about being unable to open existing directory. I tried completely removing everything, including my settings, and starting fresh but that didn't help. So I thought there might be a problem with something in my notes. I gradually re-added one directory after another and Zettlr worked again, until I narrowed it down to the one particular note that caused the whole thing to fail to load every time. By the way, I'm using Manjaro Linux... not sure if that's useful to know or not here.

  • It turned out that in one particular note, I had a YAML front matter with a title: field that was blank. As soon as I added text to that field, everything would load in Zettlr again

    There we finally got the bug! I hate YAML frontmatters

  • Yeah, not sure how I feel about them... was experimenting and forgot that I'd done that. :-) I guess it was useful in an unexpected way.

  • edited December 2020

    very recently installed 1.8.3 on osx10.14.6, and had been working on several note files without YAML. I reset the general preferences to show files in a separately pane (preparing for use as an IDE), and restarted to have .css files recognized. However, first a .css file did not open or import, and I then noticed almost the same effect as described above: my single directory/workspace reappeared in the side-paneed, but did not show any files at all, even tho they are all still on my drive. After I read this page of commentary, I closed the one .md file that did have YAML, even there was data in the YAML block and I’d only been reading the file, and even tho it had re-opened automatically(!) as the sole file I’d opened outside of my directory/workspace. I manually reopened all the individual files I’d created and restarted yet again: yet – tho all individual files reopened, and the directory/workspace reappeared as before – the directory/workspace still showed none of the files on my drive as being in it… Truly odd.

Sign In or Register to comment.