You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running command Foam: Open Daily Note via VS Code command palette (on a Windows 10 machine), getting an error message with the following text:
Command 'Foam: Open Daily Note' resulted in an error (cannot open c:%5CUsers%5Cusername%5CDocuments%5Cnotes%5C2020-07-26.md. Detail: Unable to resolve resource c:%5CUsers%5Cusername%5CDocuments%5Cnotes%5C2020-07-26.md)
Issue seems to be that for some reason, the file path handling isn't working properly on a Windows machine. It is taking \ character and replacing it with %5C urlencoded character code.
Haven't looked at the Foam code to figure out what could be done to fix this. If someone who has a Windows machine could check if they get the same error message while trying to use the feature, it could help to verify if this is happening on a multiple computers.
Edit: File 2020-07-26.md got created, but it couldn't get opened automatically. So part of the code works.
@d2s thanks for reporting this! It's already been reported as #160, so I'm going to close this as a duplicate and track the issue there.
Looks like a potential Windows issue. I don't have a Windows box available right now, but let me look through the source code and see if I can see anything suspicious!
When running command
Foam: Open Daily Note
via VS Code command palette (on a Windows 10 machine), getting an error message with the following text:Issue seems to be that for some reason, the file path handling isn't working properly on a Windows machine. It is taking
\
character and replacing it with%5C
urlencoded character code.File path urlencoded:
Working path would be (in this example):
Haven't looked at the Foam code to figure out what could be done to fix this. If someone who has a Windows machine could check if they get the same error message while trying to use the feature, it could help to verify if this is happening on a multiple computers.
Edit: File
2020-07-26.md
got created, but it couldn't get opened automatically. So part of the code works.Related to:
The text was updated successfully, but these errors were encountered: