Skip to content

fix: treat tilde path as absolute [80]#81

Open
simunic-cz wants to merge 2 commits intomoonrepo:masterfrom
simunic-cz:80-fix-workspace-findmoonbin
Open

fix: treat tilde path as absolute [80]#81
simunic-cz wants to merge 2 commits intomoonrepo:masterfrom
simunic-cz:80-fix-workspace-findmoonbin

Conversation

@simunic-cz
Copy link

@simunic-cz simunic-cz commented Feb 19, 2025

Fix issue: #80

I also increased the vscode-extension patch version from 0.14.0 to 0.14.1. Ideally I'd do that in a separate PR, but as this repo seems relatively quiet, I don't think there's gonna be any conflict/problem...

@simunic-cz simunic-cz changed the title fix: [80] handle tilde path as absolute fix: handle tilde path as absolute [80] Feb 19, 2025
@simunic-cz simunic-cz changed the title fix: handle tilde path as absolute [80] fix: treat tilde path as absolute [80] Feb 19, 2025
}

if (!path.isAbsolute(binPath)) {
if (!path.isAbsolute(binPath) && !binPath.startsWith('~')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works for this block, but I don't think it will work for the for lookup below.

Maybe do an "if starts with ~, replace with home dir" approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants