Foam: Daily note not resolved by VSCode

Created on 25 Jul 2020  路  8Comments  路  Source: foambubble/foam

For some reason, using Alt + D or "Open Daily Note" with 0.3.0 leads to the following error:

d:%5CFoamWorkspaces%5CFirstFoamWorkspace%5C2020-07-25.md. Detail: Unable to resolve resource d:%5CFoamWorkspaces%5CFirstFoamWorkspace%5C2020-07-25.md

Note that the file _is_ created but that VSCode cannot locate it. In settings, I've made the path "." to no avail:

"foam.openDailyNote.directory": "."
bug

Most helpful comment

Thanks for reporting and fixing @MehraAkshay 馃檱

All 8 comments

Same problem here.

@MehraAkshay weird! Can you provide system information (VS Code version, operating system)? Looks like you're on Windows, and there's something funky going on with the way we resolve paths (the error message has URI encoded path separators, which doesn't look normal).

@ricalamino could you also provide system info.

If that is indeed the case, I don't have a Windows box at hand so can't test myself right now, but hopefully one of our other contributors can!

@jevakallio Definitely!

Here's the partial "about" output from VSCode:

Version: 1.47.2 (user setup)
OS: Windows_NT x64 10.0.18363

Merged #167 and released 0.3.1 https://github.com/foambubble/foam/releases/tag/v0.3.1

FYI @MehraAkshay @ricalamino @d2s -- can you please test. I'll close this once the fix has been verified!

@jevakallio Just installed 0.3.1 on my windows VSCode and Alt+D/"Open Daily Note" works as expected! Same for Mac. I can't speak to operation on a Linux machine.

Thank you!

Working perfectly now in the new version!

Thank you!

Can confirm on Windows box: didn't work on v0.3.0 (it could create note, but could not open it; in error message backslashes in file path were replaced with %5C), works on v0.3.1.

Thanks for reporting and fixing @MehraAkshay 馃檱

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jsjoeio picture jsjoeio  路  6Comments

jsjoeio picture jsjoeio  路  5Comments

SpaceForever picture SpaceForever  路  6Comments

fmagin picture fmagin  路  7Comments

WoutV picture WoutV  路  5Comments