Skip to content

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

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

patrik-simunic-cz
Copy link

@patrik-simunic-cz patrik-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...

@patrik-simunic-cz patrik-simunic-cz changed the title fix: [80] handle tilde path as absolute fix: handle tilde path as absolute [80] Feb 19, 2025
@patrik-simunic-cz patrik-simunic-cz changed the title fix: handle tilde path as absolute [80] fix: treat tilde path as absolute [80] Feb 19, 2025
@@ -168,7 +168,7 @@ export class Workspace {
binPath += '.exe';
}

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