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-setup_vpaths #95

Merged
merged 1 commit into from
Apr 14, 2024
Merged

fix-setup_vpaths #95

merged 1 commit into from
Apr 14, 2024

Conversation

get200
Copy link
Contributor

@get200 get200 commented Apr 14, 2024

The second line code ls.paths.vmodules_root path has not been set yet.So replace it with vmodules_root should be correct.

original

// src/server/general.v

vmodules_root := os.vmodules_dir()
if !os.is_dir(ls.paths.vmodules_root) {
    return error('Failed to find vmodules path')
}
ls.paths.vmodules_root = vmodules_root

current

// src/server/general.v

vmodules_root := os.vmodules_dir()
if !os.is_dir(vmodules_root) {
    return error('Failed to find vmodules path')
}
ls.paths.vmodules_root = vmodules_root

@ttytm
Copy link
Member

ttytm commented Apr 14, 2024

Thank you!

@ttytm ttytm merged commit e8cbd4d into vlang:main Apr 14, 2024
12 checks passed
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.

2 participants