-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path does not exist #7
Comments
Same for me on Mac 0.9.1 version |
It seems like a breaking change from logseq. I'll take a look |
Same problem here in Windows 11. |
Unfortunately this issue (a showstopper) is still not working after several months despite a PR with the fix being submitted. This is such a useful plugin and its a shame not to be able to use it anymore. TIA |
FWIW, you can manually patch the fix from #8 into
with
Disable / enable the "Open in VS Code" plugin for the changes to have an effect |
Thanks that works!
…On Thu, 15 June 2023, 3:20 am David Laing, ***@***.***> wrote:
FWIW, you can manually patch the fix from #8
<#8> into
~/.logseq/plugins/logseq-open-in-code/dist/assets/index.64104ec8.js by
replacing:
async function Ai(e){const t=await logseq.DB.datascriptQuery(`[:find ?file
:where
[?b :file/path ?file]
[(== ?b ${e})]
]`);return t&&t.length>0?t[0][0]:null}
with
async function Ai(e){const graph = await logseq.App.getCurrentGraph(); const t=await logseq.DB.datascriptQuery(`[:find ?file
:where
[?b :file/path ?file]
[(== ?b ${e})]
]`);return t&&t.length>0?(graph.url.replace("logseq_local_", "") + "/" + t[0][0]):null}
Disable / enable the "Open in VS Code" plugin for the changes to have an
effect
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF5V4HIV5MWCZEMH7PPKQQ3XLHXE7ANCNFSM6AAAAAAWVT572M>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@mrdavidlaing Thanks for patching it here. If we make the change, as you describe it here, will it be safe after the potential future updates? |
In theory the next time the plugin is updated this "manual" patch will just get overwritten. |
Hey guys, I just published a patched release here. And I also added two shortcuts for editting pages or graph folder in vscode. Check the plugin setting and change these shortcuts if you want. |
Fixed now via #9 |
0.0.7 has the fix released, thanks! |
Hi, I'm getting this error when trying to open current page (titled "logseq-gtd") in VS Code
The text was updated successfully, but these errors were encountered: