Hey, what could be the problem when changes in not...
# questions
a
Hey, what could be the problem when changes in note are delayed in Preview? Currently I type block of text and then see how changes are propagated in Preview.. the delay is around 1min or more.. Electron process is on 100% and inside preview I'm getting this error from time to time:
Copy code
Error{"stack":"Error: Network Error\n    at e.exports (https://file+.vscode-resource.vscode-cdn.net/Users/user/.vscode-oss/extensions/dendron.dendron-0.96.0/dist/static/js/index.bundle.js:2:2507574)\n    at XMLHttpRequest.p.onerror (https://file+.vscode-resource.vscode-cdn.net/Users/user/.vscode-oss/extensions/dendron.dendron-0.96.0/dist/static/js/index.bundle.js:2:2506543)","message":"Network Error","config":{}}
k
hmm, that looks like a bad link. the markdown preview is a vscode webview. any links need to be converted into a webview uri but that looks like a bad link
do you see the same issue when running a new workspace? what about when using vscode vs vscodium?
a
Thanks for jumping in into this. Sorry, I'm using vscodium (do not have vscode at all). Currently I have tried to disable all of the addons except dendron. It only got back to normal when I disabled dendron too. Going to try creating another workspace and see what happens
Restarted vscodium and enabled single addon - Dendron, CPU got back to ~30%
Going to create a new workspace now
So I have disabled all addons by default
in the new workspace enabled dendron only for the workspace
and it keeps CPU around 30% too
Preview is slow too
just typed one sentence and still waiting for it to be propagated inside Preview
I'm not so technical, but I could do my best helping to troubleshoot this issue, in case you could have more ideas how to investigate it
only two extensions enabled
all the rest - disabled
k
so vscodium has been known to have high cpu usage (in general, this is been an issue with their git implementation) - https://github.com/VSCodium/vscodium/issues/718
a
ah, so then using vscode shoud work well, right?
k
it will help us narrow down if its the same issue or a different issue 😅
a
Okey, downloading then 🙂 3mins left
But if git is the root cause, it should be using CPU also when Dendron is disabled too
p.s. I use multi-vault (self-contained) environment with lots of docs in some vaults (asset folder)
and I also use git too - single repo across all of them
k
yeah, this is whats weird about this. but doesn't hurt to check
a
Looks like it's the same with vscode:
the same lag with the Preview
k
and this is with an empty workspace?
a
I have opened a new window and opened folder of my root notes. It asked me if I would want to open a workspace that is in the folder and I refused. So I suppose it's a blank workspace 🙂 (not really sure)
k
ah - what i mean is to start off fresh. so if you run "> Launch Tutorial" for example, this will start you in a new owrkkspace
a
okey, on it
With this new workspace it works as expected
instant changes in preview, no CPU usage in top 5
I type as fast as I can and can't beat preview refresh 😄 so it looks good
so this means that the root cause in my workspace.. how could I troubleshoot?
k
in your original workspace, can you run
> Diagnostics Report
and dm me the output?
a
sure, on it