Skip to content
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

fix: consistent path separator on windows #76

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

scottmckendry
Copy link

Resolves #70

When debugging this error, I noticed that paths are being indexed with both / and \ separators. This was causing the nil value error in virtual_name.lua because it expects either one or the other.

To resolve this, I added an extra step to ensure all path / chars are replaced with \ before trying to determine the virtual path. This is only executed on Windows.

@Parsifa1
Copy link

@danielfalk Is it possible to merge this commit as soon as possible?
Many thanks :)

@WayenVan
Copy link

a more solid solution is to use plenary.nvim for path operation.

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

Successfully merging this pull request may close these issues.

virtual_name.lua:26: attempt to perform arithmetic on local 'last' (a nil value)
3 participants