dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.69k stars 253 forks source link

Fresh install has issue initializing #1000

Open kim-ds opened 3 years ago

kim-ds commented 3 years ago

Please select the area your Bug applys to. (Multiple selections are Possible)

Describe the bug

Initializing a fresh install of Dendron failed on macOS 10.15.7 and VSCode 1.58.2.

To Reproduce

Steps to reproduce the behavior:

  1. Install Dendron from VSCode Marketplace
  2. Try to Initialize a Workspace

Expected behavior

Creates a new workspace.

Screenshots

image

Desktop (please complete the following information)

Additional context

First noticed that Markdown Preview Enhanced (Open Preview on Side) wasn't working, and then tried a fresh install of Dendron. Get "

Dendron Log file

{"level":30,"time":1626684207229,"pid":6469,"hostname":"C02DP11AMD6N","name":"dendron","ctx":"Logger:configure","msg":"exit","logLevel":"info"} {"level":30,"time":1626684207284,"pid":6469,"hostname":"C02DP11AMD6N","name":"dendron","ctx":"_activate","stage":"prod","isDebug":false,"logPath":"/Users/l014880/Library/Application Support/Code/logs/20210719T013632/exthost6/dendron.dendron","logLevel":"info","extensionPath":"/Users/l014880/.vscode/extensions/dendron.dendron-0.50.0","extensionUri":{"$mid":1,"fsPath":"/Users/l014880/.vscode/extensions/dendron.dendron-0.50.0","path":"/Users/l014880/.vscode/extensions/dendron.dendron-0.50.0","scheme":"file"},"storagePath":"/Users/l014880/Library/Application Support/Code/User/workspaceStorage/8ffec7104128f9354e8900ec361b648f/dendron.dendron","workspaceFile":{"$mid":1,"fsPath":"/Users/l014880/Dendron_Tutorial/dendron.code-workspace","external":"file:///Users/l014880/Dendron_Tutorial/dendron.code-workspace","path":"/Users/l014880/Dendron_Tutorial/dendron.code-workspace","scheme":"file"},"workspaceFolders":[{"uri":{"$mid":1,"fsPath":"/Users/l014880/Dendron_Tutorial/vault","external":"file:///Users/l014880/Dendron_Tutorial/vault","path":"/Users/l014880/Dendron_Tutorial/vault","scheme":"file"},"name":"vault","index":0}]} {"level":30,"time":1626684207286,"pid":6469,"hostname":"C02DP11AMD6N","name":"dendron","ctx":"DendronWorkspace","msg":"initialized"} {"level":30,"time":1626684207385,"pid":6469,"hostname":"C02DP11AMD6N","name":"SegmentClient","msg":"user telemetry setting: enabled by config"} {"level":30,"time":1626684207385,"pid":6469,"hostname":"C02DP11AMD6N","name":"SegmentClient","msg":"telemetry initializing"} {"level":30,"time":1626684207385,"pid":6469,"hostname":"C02DP11AMD6N","name":"SegmentClient","msg":"using existing id"} {"level":30,"time":1626684207385,"pid":6469,"hostname":"C02DP11AMD6N","name":"dendron","msg":"Telemetry is disabled? false"} {"level":30,"time":1626684207386,"pid":6469,"hostname":"C02DP11AMD6N","name":"dendron","ctx":"_activate","config":{"version":1,"vaults":[{"fsPath":"vault"}],"useFMTitle":true,"useNoteTitleForLink":true,"noAutoCreateOnDefinition":true,"noLegacyNoteRef":true,"noXVaultWikiLink":true,"lookupConfirmVaultOnCreate":false,"autoFoldFrontmatter":true,"journal":{"dailyDomain":"daily","name":"journal","dateFormat":"y.MM.dd","addBehavior":"childOfDomain","firstDayOfWeek":1},"site":{"copyAssets":true,"siteHierarchies":["root"],"siteRootDir":"docs","usePrettyRefs":true,"title":"Dendron","description":"Personal knowledge space","duplicateNoteBehavior":{"action":"useVault","payload":["vault"]}},"initializeRemoteVaults":true},"configMigrated":false,"msg":"read dendron config"} {"level":30,"time":1626684207391,"pid":6469,"hostname":"C02DP11AMD6N","name":"dendron","ctx":"_activate","installStatus":"INITIAL_INSTALL","currentVersion":"0.50.0","previousWorkspaceVersion":"0.0.0","previousGlobalVersion":"0.50.0","platform":"darwin","extensions":[{"id":"dendron.dendron-paste-image","version":"1.0.4","active":false},{"id":"dendron.dendron-markdown-shortcuts","version":"0.12.1","active":true},{"id":"dendron.dendron-markdown-preview-enhanced","version":"0.10.47","active":false}],"vaults":[{"fsPath":"vault"}]} {"level":30,"time":1626684207393,"pid":6469,"hostname":"C02DP11AMD6N","name":"dendron","ctx":"startServer","logLevel":"info"} {"level":30,"time":1626684207396,"pid":6469,"hostname":"C02DP11AMD6N","name":"api-server","ctx":"appModule:start","dirPath":"/Users/l014880/.vscode/extensions/dendron.dendron-0.50.0/dist"} {"level":30,"time":1626684207398,"pid":6469,"hostname":"C02DP11AMD6N","name":"dendron","ctx":"_activate","msg":"post-start-server","port":49758,"durationStartServer":112} {"level":30,"time":1626684207400,"pid":6469,"hostname":"C02DP11AMD6N","name":"logger","ctx":"FileStorageV2","wsRoot":"/Users/l014880/Dendron_Tutorial","vaults":[{"fsPath":"vault"}],"level":"info"} {"level":30,"time":1626684207400,"pid":6469,"hostname":"C02DP11AMD6N","name":"dendron","ctx":"dendron.reloadIndex:run","msg":"pre-execute"} {"level":30,"time":1626684207401,"pid":6469,"hostname":"C02DP11AMD6N","name":"dendron","ctx":"ReloadIndex.execute","msg":"enter"} {"level":50,"time":1626684207404,"pid":6469,"hostname":"C02DP11AMD6N","name":"dendron","ctx":"dendron.reloadIndex:run","error":{"stack":"Error: no data\n\tat c.init (/Users/l014880/.vscode/extensions/dendron.dendron-0.50.0/dist/extension.js:110:24439)\n\tat async d.execute (/Users/l014880/.vscode/extensions/dendron.dendron-0.50.0/dist/extension.js:94:41713)\n\tat async d.run (/Users/l014880/.vscode/extensions/dendron.dendron-0.50.0/dist/extension.js:9:109891)\n\tat async /Users/l014880/.vscode/extensions/dendron.dendron-0.50.0/dist/extension.js:9:80439\n\tat async S._executeContributedCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:84:120577)\n\tat async q.reloadWorkspace (/Users/l014880/.vscode/extensions/dendron.dendron-0.50.0/dist/extension.js:9:82166)\n\tat async w (/Users/l014880/.vscode/extensions/dendron.dendron-0.50.0/dist/extension.js:166:29156)\n\tat async S (/Users/l014880/.vscode/extensions/dendron.dendron-0.50.0/dist/extension.js:166:34599)","message":"no data","isComposite":false,"status":"unknown","payload":"{}"}} {"level":50,"time":1626684207406,"pid":6469,"hostname":"C02DP11AMD6N","name":"dendron","ctx":"_activate","msg":"issue initializing Dendron"} {"level":30,"time":1626684208641,"pid":6469,"hostname":"C02DP11AMD6N","name":"connector","ctx":"EngineConnector:init","msg":"enter","opts":{}} {"level":30,"time":1626684208641,"pid":6469,"hostname":"C02DP11AMD6N","name":"connector","ctx":"EngineConnector:createServerWatcher","msg":"enter","opts":{}} {"level":30,"time":1626684211649,"pid":6469,"hostname":"C02DP11AMD6N","name":"connector","ctx":"EngineConnector:_connect","portCreated":1626684207401,"wsActivation":1626684207387} {"level":30,"time":1626684211650,"pid":6469,"hostname":"C02DP11AMD6N","name":"connector","ctx":"EngineConnector:_connect","msg":"initFromExistingFile","port":49758} {"level":30,"time":1626684211651,"pid":6469,"hostname":"C02DP11AMD6N","name":"connector","ctx":"EngineConnector:tryToConnect","port":49758,"msg":"enter"} {"level":50,"time":1626684211658,"pid":6469,"hostname":"C02DP11AMD6N","name":"connector","msg":null} {"level":30,"time":1626684211658,"pid":6469,"hostname":"C02DP11AMD6N","name":"connector","ctx":"EngineConnector:tryToConnect","msg":"connected"} {"level":30,"time":1626684211658,"pid":6469,"hostname":"C02DP11AMD6N","name":"connector","ctx":"EngineConnector:connectAndInit","msg":"checking for engine"} {"level":30,"time":1626684211658,"pid":6469,"hostname":"C02DP11AMD6N","name":"connector","ctx":"EngineConnector:connectAndInit","msg":"found engine"} {"level":30,"time":1626684211658,"pid":6469,"hostname":"C02DP11AMD6N","name":"connector","ctx":"EngineConnector:initEngine","msg":"enter","port":49758} {"level":50,"time":1626684211659,"pid":6469,"hostname":"C02DP11AMD6N","name":"connector","msg":null} {"level":30,"time":1626684484885,"pid":6469,"hostname":"C02DP11AMD6N","name":"dendron","ctx":"dendron.dev.openLogs:run","msg":"pre-execute"} {"level":30,"time":1626684484886,"pid":6469,"hostname":"C02DP11AMD6N","name":"dendron","ctx":"execute","opts":{}} {"level":30,"time":1626684484897,"pid":6469,"hostname":"C02DP11AMD6N","name":"dendron","ctx":"dendron.dev.openLogs:run","msg":"post-execute"}

kim-ds commented 3 years ago

Update -- tried with Version 0.51.0 and still encountering the same issue.

kevinslin commented 3 years ago

Hmm, can you walk me through when your encountering this? Is it when you run Dendron: Initialize Workspace and select a new folder?

kim-ds commented 3 years ago

That's right. Installation of Dendron + extensions works fine, but this is triggered when I try to initialize and select a folder (In this case it's just ~/Dendron/

notbalanced commented 3 years ago

Hi, I had a similar failure on Windows 10. Same thing--removed all extensions, but when I try to initialize and open a workspace I get the error.

Log file

{"level":30,"time":1628175517952,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"Logger:configure","msg":"exit","logLevel":"info"}
{"level":30,"time":1628175518064,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"_activate","stage":"prod","isDebug":false,"logPath":"c:\\Users\\208012651\\AppData\\Roaming\\Code\\logs\\20210805T105615\\exthost1\\dendron.dendron","logLevel":"info","extensionPath":"c:\\Users\\208012651\\.vscode\\extensions\\dendron.dendron-0.53.0","extensionUri":{"$mid":1,"fsPath":"c:\\Users\\208012651\\.vscode\\extensions\\dendron.dendron-0.53.0","_sep":1,"path":"/c:/Users/208012651/.vscode/extensions/dendron.dendron-0.53.0","scheme":"file"},"storagePath":"c:\\Users\\208012651\\AppData\\Roaming\\Code\\User\\workspaceStorage\\df065128caffd8d46a03562be200e8df\\dendron.dendron","workspaceFile":{"$mid":1,"fsPath":"c:\\Users\\208012651\\Dendron\\dendron.code-workspace","_sep":1,"external":"file:///c%3A/Users/208012651/Dendron/dendron.code-workspace","path":"/c:/Users/208012651/Dendron/dendron.code-workspace","scheme":"file"},"workspaceFolders":[{"uri":{"$mid":1,"fsPath":"c:\\Users\\208012651\\Dendron\\vault","_sep":1,"external":"file:///c%3A/Users/208012651/Dendron/vault","path":"/c:/Users/208012651/Dendron/vault","scheme":"file"},"name":"vault","index":0}]}
{"level":30,"time":1628175518066,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"DendronWorkspace","msg":"initialized"}
{"level":30,"time":1628175518158,"pid":9040,"hostname":"MOYER","name":"SegmentClient","msg":"user telemetry setting: enabled by config"}
{"level":30,"time":1628175518158,"pid":9040,"hostname":"MOYER","name":"SegmentClient","msg":"telemetry initializing"}
{"level":30,"time":1628175518158,"pid":9040,"hostname":"MOYER","name":"SegmentClient","msg":"using existing id"}
{"level":30,"time":1628175518158,"pid":9040,"hostname":"MOYER","name":"dendron","msg":"Telemetry is disabled? false"}
{"level":30,"time":1628175518161,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"_activate","config":{"version":1,"vaults":[{"fsPath":"vault"}],"useFMTitle":true,"useNoteTitleForLink":true,"noAutoCreateOnDefinition":true,"noLegacyNoteRef":true,"noXVaultWikiLink":true,"lookupConfirmVaultOnCreate":false,"mermaid":true,"useKatex":true,"autoFoldFrontmatter":true,"dev":{"enablePreviewV2":true},"journal":{"dailyDomain":"daily","name":"journal","dateFormat":"y.MM.dd","addBehavior":"childOfDomain","firstDayOfWeek":1},"scratch":{"name":"scratch","dateFormat":"y.MM.dd.HHmmss","addBehavior":"asOwnDomain"},"site":{"copyAssets":true,"siteHierarchies":["root"],"siteRootDir":"docs","usePrettyRefs":true,"title":"Dendron","description":"Personal knowledge space","duplicateNoteBehavior":{"action":"useVault","payload":["vault"]}},"initializeRemoteVaults":true},"configMigrated":false,"msg":"read dendron config"}
{"level":30,"time":1628175518168,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"_activate","installStatus":"INITIAL_INSTALL","currentVersion":"0.53.0","previousWorkspaceVersion":"0.0.0","previousGlobalVersion":"0.53.0","platform":"win32","extensions":[{"id":"dendron.dendron-paste-image","version":"1.0.4","active":false},{"id":"dendron.dendron-markdown-shortcuts"},{"id":"dendron.dendron-markdown-preview-enhanced"}],"vaults":[{"fsPath":"vault"}]}
{"level":30,"time":1628175518173,"pid":9040,"hostname":"MOYER","name":"execServer","state":"enter"}
{"level":30,"time":1628175518185,"pid":9040,"hostname":"MOYER","name":"execServer","state":"post:exec.node"}
{"level":30,"time":1628175518801,"pid":9040,"hostname":"MOYER","name":"execServer","state":"message","message":"51014"}
{"level":30,"time":1628175518801,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"WSUtils.handleServerProcess","msg":"subprocess running","pid":4520}
{"level":30,"time":1628175518801,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"_activate","msg":"post-start-server","port":51014,"durationStartServer":734}
{"level":30,"time":1628175518804,"pid":9040,"hostname":"MOYER","name":"logger","ctx":"FileStorageV2","wsRoot":"c:\\Users\\208012651\\Dendron","vaults":[{"fsPath":"vault"}],"level":"info"}
{"level":30,"time":1628175518804,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"dendron.reloadIndex:run","msg":"pre-execute"}
{"level":30,"time":1628175518805,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"ReloadIndex.execute","msg":"enter"}
{"level":50,"time":1628175518819,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"dendron.reloadIndex:run","error":{"stack":"Error: no data\n\tat u.init (c:\\Users\\208012651\\.vscode\\extensions\\dendron.dendron-0.53.0\\dist\\extension.js:107:64437)\n\tat processTicksAndRejections (internal/process/task_queues.js:93:5)\n\tat async l.execute (c:\\Users\\208012651\\.vscode\\extensions\\dendron.dendron-0.53.0\\dist\\extension.js:238:90893)\n\tat async l.run (c:\\Users\\208012651\\.vscode\\extensions\\dendron.dendron-0.53.0\\dist\\extension.js:9:113591)\n\tat async c:\\Users\\208012651\\.vscode\\extensions\\dendron.dendron-0.53.0\\dist\\extension.js:9:81429\n\tat async S._executeContributedCommand (c:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\vs\\workbench\\services\\extensions\\node\\extensionHostProcess.js:84:120577)\n\tat async H.reloadWorkspace (c:\\Users\\208012651\\.vscode\\extensions\\dendron.dendron-0.53.0\\dist\\extension.js:9:83156)\n\tat async O (c:\\Users\\208012651\\.vscode\\extensions\\dendron.dendron-0.53.0\\dist\\extension.js:490:202244)\n\tat async C (c:\\Users\\208012651\\.vscode\\extensions\\dendron.dendron-0.53.0\\dist\\extension.js:490:207636)","message":"no data","isComposite":false,"status":"unknown","payload":"{}"}}
{"level":50,"time":1628175518824,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"showInitProgress","msg":"issue initializing Dendron"}
{"level":30,"time":1628175538542,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"dendron.dev.openLogs:run","msg":"pre-execute"}
{"level":30,"time":1628175538542,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"execute","opts":{}}
{"level":30,"time":1628175538554,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"dendron.dev.openLogs:run","msg":"post-execute"}
{"level":30,"time":1628175744677,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"dendron.configureUI:run","msg":"pre-execute"}
{"level":30,"time":1628175744679,"pid":9040,"hostname":"MOYER","name":"dendron","ctx":"dendron.configureUI:run","msg":"post-execute"}