-
Notifications
You must be signed in to change notification settings - Fork 18
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
make fails #190
Comments
|
***@***.***:~/.vmodules/vsql$ v up
Updating V...
V is already updated.
Current V version: V 0.4.4 7e5ffb7, timestamp: 2024-01-28 01:34:01 +0200
............
***@***.***:~/vmodules$ git clone https://github.com/elliotchance/vsql.git
cd vsql
make bin/vsql\
Cloning into 'vsql'...
remote: Enumerating objects: 3027, done.
remote: Counting objects: 100% (813/813), done.
remote: Compressing objects: 100% (345/345), done.
remote: Total 3027 (delta 580), reused 506 (delta 468), pack-reused 2214
Receiving objects: 100% (3027/3027), 2.49 MiB | 8.13 MiB/s, done.
Resolving deltas: 100% (2255/2255), done.
***@***.***:~/vmodules/vsql$ make bin/vsql
grep "//~" -r vsql | cut -d~ -f2 > grammar.bnf
python3 generate-grammar.py
v fmt -w vsql/grammar.v
Reformatted file: /home/ghs/.vmodules/vsql/vsql/grammar.v
mkdir -p bin
v -prod cmd/vsql -o bin/vsql
cmd/vsql/bench.v:4:1: builder error: cannot import module "vsql" (no .v
files in "/home/ghs/.vmodules/vsql")
2 |
3 | import cli
4 | import vsql
| ~~~~~~~~~~~
5 |
6 | fn register_bench_command(mut cmd cli.Command) {
make: *** [Makefile:28: bin/vsql] Error 1
git clone https://github.com/elliotchance/vsql.git
cd vsql
***@***.***:~/vmodules/vsql$ make bin/vsql
grep "//~" -r vsql | cut -d~ -f2 > grammar.bnf
python3 generate-grammar.py
v fmt -w vsql/grammar.v
Reformatted file: /home/ghs/.vmodules/vsql/vsql/grammar.v
mkdir -p bin
v -prod cmd/vsql -o bin/vsql
cmd/vsql/bench.v:4:1: builder error: cannot import module "vsql" (no .v
files in "/home/ghs/.vmodules/vsql")
2 |
3 | import cli
4 | import vsql
| ~~~~~~~~~~~
5 |
6 | fn register_bench_command(mut cmd cli.Command) {
make: *** [Makefile:28: bin/vsql] Error 1
…On Sat, Jan 27, 2024 at 9:17 PM Elliot Chance ***@***.***> wrote:
v install is when you want to use the package in your V code. If you want
to build it from scratch you need to clone the repo:
https://vsql.readthedocs.io/en/latest/install.html#compiling-from-source
—
Reply to this email directly, view it on GitHub
<#190 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2NZI7N75XLYCYC6NWVANDYQXNP7AVCNFSM6AAAAABCN4IQZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGQ2TMOBSGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
What OS are you using? I have tried to run the same commands on macOS:
I wonder is V is confused by the path that it's being run in? |
Description: Ubuntu 23.10
Linux 6.5.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 9 17:03:36
UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
I installed as
cd ~/work; git clone https://github.com/vlang/v
mkdir ~/.vmodules; cd ~; ln -s .vmodules/ vmodules
And then set my path to ~/work/v
…On Sun, Jan 28, 2024 at 10:08 AM Elliot Chance ***@***.***> wrote:
What OS are you using? I have tried to run the same commands on macOS:
Elliots-MacBook-Pro:~ elliot$ git clone https://github.com/elliotchance/vsql.git
Cloning into 'vsql'...
remote: Enumerating objects: 3027, done.
remote: Counting objects: 100% (813/813), done.
remote: Compressing objects: 100% (345/345), done.
remote: Total 3027 (delta 580), reused 506 (delta 468), pack-reused 2214
Receiving objects: 100% (3027/3027), 2.49 MiB | 20.86 MiB/s, done.
Resolving deltas: 100% (2255/2255), done.
Elliots-MacBook-Pro:~ elliot$ cd vsql/
Elliots-MacBook-Pro:vsql elliot$ make bin/vsql
grep "//~" -r vsql | cut -d~ -f2 > grammar.bnf
python3 generate-grammar.py
v fmt -w vsql/grammar.v
Reformatted file: /Users/elliot/vsql/vsql/grammar.v
mkdir -p bin
v -prod cmd/vsql -o bin/vsql
I wonder is V is confused by the path that it's being run in?
—
Reply to this email directly, view it on GitHub
<#190 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2NZI366SFZCXHNHW3DCX3YQ2H3HAVCNFSM6AAAAABCN4IQZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGY3TQMRTGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I suspect V doesn't resolve the symlink correctly. However, it also seems very suspect to me the way it's being cloned into what is basically a cache directory (that's why it's hidden). If you really want to do it this way, I guess try running Perhaps this is helpful: vlang/v#16946 |
@gshields here is a full explanation: https://discord.com/channels/592103645835821068/1168743197619531856/1201483636051017768 |
Latest V 804a7bd has the vfmt patch. Using it (just |
Cool, thanks for the heads up!
…On Mon, Jan 29, 2024, 10:10 AM Delyan Angelov ***@***.***> wrote:
Latest V 804a7bd
<vlang/v@804a7bd>
has the vfmt patch.
Using it (just v up), make followed by make bin/vsql will work inside
~/.vmodules too.
—
Reply to this email directly, view it on GitHub
<#190 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2NZI7MEVLLD2GTNO54JTLYQ7QYBAVCNFSM6AAAAABCN4IQZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJVGI4TGNJRGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
v install elliotchance.vsql
ran make
/.vmodules/elliotchance/vsql$ make bin/vsql
grep "//
" -r vsql | cut -d-f2 > grammar.bnfpython3 generate-grammar.py
v fmt -w vsql/grammar.v
Reformatted file: /home/ghs/.vmodules/elliotchance/vsql/vsql/grammar.v
mkdir -p bin
v -prod cmd/vsql -o bin/vsql
cmd/vsql/bench.v:4:1: builder error: cannot import module "vsql" (no .v files in "/home/ghs/.vmodules/vsql")
2 |
3 | import cli
4 | import vsql
| ~~~~~~~~~~~
5 |
6 | fn register_bench_command(mut cmd cli.Command) {
make: *** [Makefile:28: bin/vsql] Error 1
The text was updated successfully, but these errors were encountered: