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
v fails to run and generate binaries from / folder #20231
Labels
Bug
This tag is applied to issues which reports bugs.
Comments
Indeed, the file is generated to |
Looks like this was a regression from v0.4.3 (744b92a)
|
The bug: import os
fn main() {
p := os.join_path("/", "test")
assert p == "/test"
} |
hholst80
added a commit
to hholst80/v
that referenced
this issue
May 4, 2024
hholst80
added a commit
to hholst80/v
that referenced
this issue
May 4, 2024
hholst80
added a commit
to hholst80/v
that referenced
this issue
May 4, 2024
hholst80
added a commit
to hholst80/v
that referenced
this issue
May 4, 2024
Closes vlang#20231 Co-authored-by: Turiiya <34311583+ttytm@users.noreply.github.com>
spytheman
added a commit
to spytheman/v
that referenced
this issue
May 5, 2024
hholst80
added a commit
to hholst80/v
that referenced
this issue
May 5, 2024
Closes vlang#20231 Co-authored-by: Turiiya <34311583+ttytm@users.noreply.github.com>
hholst80
added a commit
to hholst80/v
that referenced
this issue
May 5, 2024
Closes vlang#20231 Co-authored-by: Turiiya <34311583+ttytm@users.noreply.github.com>
hholst80
added a commit
to hholst80/v
that referenced
this issue
May 5, 2024
Closes vlang#20231 On popular demand, re-added primitive support for path normalization. Co-authored-by: Turiiya <34311583+ttytm@users.noreply.github.com>
hholst80
added a commit
to hholst80/v
that referenced
this issue
May 5, 2024
Closes vlang#20231 On popular demand, re-added primitive support for path normalization. Co-authored-by: Turiiya <34311583+ttytm@users.noreply.github.com>
hholst80
added a commit
to hholst80/v
that referenced
this issue
May 5, 2024
Closes vlang#20231 On popular demand, re-added primitive support for path normalization. Co-authored-by: Turiiya <34311583+ttytm@users.noreply.github.com>
spytheman
added a commit
to spytheman/v
that referenced
this issue
May 6, 2024
spytheman
added a commit
to spytheman/v
that referenced
this issue
May 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The compiler will not generate a binary if it is invoked on a file in the root.
Reproduction Steps
Expected Behavior
It should compile a
hello
binary placed in / and it should run the code in thev run hello.v
instance.Current Behavior
Silent ignores to generate binary and No such file or directory; code 2 error message (not helpful)
Possible Solution
Fix the path assumptions that the source file is located in a sub directory.
Additional Information/Context
No response
V version
V 0.4.3 5306469
Environment details (OS name and version, etc.)
Docker container:
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: