SeriousBug
03/15/2022, 9:37 PMxg
03/15/2022, 9:41 PMDaniel Silverstone
03/15/2022, 10:24 PMaleksey
03/16/2022, 1:42 AMSeriousBug
03/16/2022, 1:50 AMhikchoi
03/16/2022, 1:54 AMSeriousBug
03/16/2022, 2:00 AMcodeluggage
03/16/2022, 2:18 AMsrc/models/routine.ts
The file has a class Routine
with comments above it.
The class has function start(offsetSeconds: number)
with comments above it.
It generates: models.routine.md
with ## class Routine
that has ### function start
, with the comments as the content within each header.
This would open for many things, one of the most exciting ones being:
- Predictable "dendron-note-to-generated-note" linking
- Guarding against comment rot through dendron discovering missing references after pod export run
- Guarding against inverse documentation rot through dendron discovering missing references to notes from inside the generated markdown
For comment rot:
Given that text in r.routines.lifecycle.md
referred to the code with [[Routine model|models.routines#routine]]
, the missing link detection would identify if src/models/routines.ts
or its (top level) signatures are renamed or removed.
For "inverse documentation rot":
Given that a comment in src/models/routine.ts
said something like The full routine lifecycle is visualized in [[r.routines.lifecycle#visualized]]
, the missing link detection would identify if r.routines.lifecycle.md
or the visualized
header, are renamed or removed.user
03/16/2022, 2:42 AMenableWebUI: true
to my dendron.yml file.
Any help would be greatly appreciated.kevins8
03/16/2022, 2:47 AMhikchoi
03/16/2022, 11:50 AMGander7
03/16/2022, 4:14 PMgit init
each vault (NOT the workspace) and then push it?
Is there a best practice way to track the root files such as dendron.yml
or should that be different per computer and "local-first"?kevins8
03/16/2022, 4:19 PMGander7
03/16/2022, 4:22 PM.gitignore
and my vault wasn't listed but I added it. I might have set up the vault wrong then 😛kevins8
03/16/2022, 4:24 PMvault add
command. but this is why plaintext & git is nice - you have full autonomy to make your own actions 🙂Gander7
03/16/2022, 4:31 PMvault
so I renamed the folder to work-brain
. Dendron failed and I facepalmed remembering there was a command to rename the vault. So I changed it back. Now I don't think Dendron is initializing since all I get is this when I open the workspace:Gander7
03/16/2022, 4:31 PMGander7
03/16/2022, 4:33 PMjson
{"level":30,"time":1647448186625,"pid":9760,"hostname":"hostname","name":"dendron","ctx":"Logger:configure","msg":"exit","logLevel":"info"}
{"level":30,"time":1647448186676,"pid":9760,"hostname":"hostname","name":"dendron","ctx":"_activate","stage":"prod","isDebug":false,"logLevel":"info","logPath":"c:\\Users\\zacha\\AppData\\Roaming\\Code\\logs\\20220316T132729\\exthost4\\dendron.dendron","extensionPath":"c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1","extensionUri":"c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1","workspaceFolders":["c:\\repos\\work-brain"]}
{"level":30,"time":1647448186677,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"No cache path for Segment specified. Failed event uploads will not be retried."}
{"level":30,"time":1647448186680,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"user telemetry setting: enabled by config"}
{"level":30,"time":1647448186680,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"telemetry initializing"}
{"level":30,"time":1647448186680,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"using existing id"}
{"level":30,"time":1647448186681,"pid":9760,"hostname":"hostname","name":"dendron","ctx":"DendronExtension","msg":"initialized"}
{"level":30,"time":1647448186746,"pid":9760,"hostname":"hostname","name":"dendron","ctx":"_activate","msg":"initializeWorkspace","wsType":"NATIVE","currentVersion":"0.86.1","previousWorkspaceVersion":"0.86.1","previousGlobalVersion":"0.86.1","extensionInstallStatus":"NO_CHANGE"}
Gander7
03/16/2022, 4:34 PMjson
{"level":30,"time":1647448186787,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"user telemetry setting: enabled by config"}
{"level":30,"time":1647448186787,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"telemetry initializing"}
{"level":30,"time":1647448186787,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"using existing id"}
{"level":30,"time":1647448186788,"pid":9760,"hostname":"hostname","name":"dendron","msg":"Telemetry is disabled? false"}
{"level":30,"time":1647448186788,"pid":9760,"hostname":"hostname","name":"dendron","msg":"Segment Residual Cache Path is at c:\\Users\\zacha\\AppData\\Roaming\\Code\\User\\globalStorage\\dendron.dendron\\segmentresidualcache.log"}
{"level":30,"time":1647448186788,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"Attempting to flush residual segment data from file."}
{"level":50,"time":1647448186822,"pid":9760,"hostname":"hostname","name":"dendron","stack":"TypeError: i.ConfigUtils.getVaults(...).filter is not a function\n at w.syncVaults (c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1\\dist\\extension.js:2:468196)\n at w.initialize (c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1\\dist\\extension.js:2:458835)\n at Ui (c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1\\dist\\extension.js:8:3223078)","type":"Error","msg":"i.ConfigUtils.getVaults(...).filter is not a function"}
{"level":30,"time":1647448304004,"pid":9760,"hostname":"hostname","name":"dendron","ctx":"dendron.dev.openLogs:run","msg":"pre-execute"}
{"level":30,"time":1647448304004,"pid":9760,"hostname":"hostname","name":"dendron","ctx":"execute","opts":{}}
{"level":30,"time":1647448304039,"pid":9760,"hostname":"hostname","name":"dendron","ctx":"dendron.dev.openLogs:run","msg":"post-execute"}
SeriousBug
03/16/2022, 5:04 PMdendron.yml
file, you just need to change the name under the vaults section:
vaults:
- fsPath: vault # change this to work-brain
ScriptAutomate
03/16/2022, 5:13 PMdendron.code-workspace
file, in addition to the dendron.yml
file mentioned above. Then probably doing a reload window command to bring Dendron back upGander7
03/16/2022, 5:22 PMmd
# dendron.code-workspace
{
"folders": [
{
"path": "vault"
}
],
...
}
md
# dendron.yml
workspace:
vaults:
-fsPath: vault
I opened and closed vscode and tried the Developer: Reload Window
but received the same empty json error both times.Gander7
03/16/2022, 5:37 PMsegmentresidualcache.log
file help?
json
{"level":30,"time":1647448186788,"pid":9760,"hostname":"hostname","name":"dendron","msg":"Segment Residual Cache Path is at c:\\Users\\zacha\\AppData\\Roaming\\Code\\User\\globalStorage\\dendron.dendron\\segmentresidualcache.log"}
{"level":30,"time":1647448186788,"pid":9760,"hostname":"hostname","name":"SegmentClient","msg":"Attempting to flush residual segment data from file."}
{"level":50,"time":1647448186822,"pid":9760,"hostname":"hostname","name":"dendron","stack":"TypeError: i.ConfigUtils.getVaults(...).filter is not a function\n at w.syncVaults (c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1\\dist\\extension.js:2:468196)\n at w.initialize (c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1\\dist\\extension.js:2:458835)\n at Ui (c:\\Users\\zacha\\.vscode\\extensions\\dendron.dendron-0.86.1\\dist\\extension.js:8:3223078)","type":"Error","msg":"i.ConfigUtils.getVaults(...).filter is not a function"}
kevins8
03/16/2022, 5:40 PMGander7
03/16/2022, 6:02 PMDaniel Silverstone
03/16/2022, 8:06 PMSeriousBug
03/16/2022, 8:07 PMDaniel Silverstone
03/16/2022, 8:08 PMDaniel Silverstone
03/16/2022, 8:10 PMSeriousBug
03/16/2022, 8:11 PM