Skip to content

Differences in path to files between Linux and Windows systems #71

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
Ja-rek opened this issue Jan 14, 2025 · 0 comments
Open

Differences in path to files between Linux and Windows systems #71

Ja-rek opened this issue Jan 14, 2025 · 0 comments

Comments

@Ja-rek
Copy link

Ja-rek commented Jan 14, 2025

The function does not account for differences in addresses between Linux and Windows systems.

This causes an error:
Screenshot 2025-01-14 215010

here is the problem
image

Problem is because parameter "..." can be with wrong separators:

local function debugger_entrypoint(debugger_path)
	return M.join_paths(debugger_path, "out/src/vsDebugServer.js"<--- separators in this string will be always with invalid slashes)
end

This way should be ok:
M.join_paths(debugger_path, "out", "src", "vsDebugServer.js")

Can someone fix it? I'm not best in Lua...

@Ja-rek Ja-rek changed the title Differences in path to files between Linux and Windows systems. Differences in path to files between Linux and Windows systems Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant