Comments (5)
@GGRei thanks for trying to reproduce π . you tried with the branch bug_report
I guess? The other point that maybe is not clear is that if I run v run .
at the toplevel of the repository it is working. But if I run it in the src/
directory then I see the issue reported.
Note that to fix that (as I continue to test) I just moved the v.mod
to src/
and it works. So I think that the error is because I don't use tool as expected but as it generates an error when compiling to C code maybe it is interesting.
from v.
@gthvn1 Okay! I didn't realize you were using the v run .
command.
Ok, I do see the problem now. Thank you for the additional information!
from v.
I was just playing with V to discover the language that I found really interesting so my code is probably wrong but it seems that there is a bug in the compiler so I reported the issue as asked in the output log :).
The code is available here : https://github.com/gthvn1/vervet/tree/bug_report
It is more a playground but it seems that I messed with module..
Hope this will help,
from v.
I cloned your project and tried it based on the information you provided, but I couldn't reproduce the problem, everything works for me. I'm on Ubuntu 23.10 and I used tcc / gcc and clang for the test.
Maybe because I'm on Ubuntu?
Have other people managed to reproduce the problem?
from v.
Running with clang it shows:
/tmp/v_1000/vervet.01HT5PYW7BQ3NTNS1J0GMAB6ZD.tmp.c:684:3: error: unknown type name 'MessageError'
MessageError* _MessageError;
^
/tmp/v_1000/vervet.01HT5PYW7BQ3NTNS1J0GMAB6ZD.tmp.c:688:2: error: unknown type name 'string'
string* msg;
^
/tmp/v_1000/vervet.01HT5PYW7BQ3NTNS1J0GMAB6ZD.tmp.c:703:2: error: unknown type name 'ArrayFlags'
ArrayFlags flags;
^
/tmp/v_1000/vervet.01HT5PYW7BQ3NTNS1J0GMAB6ZD.tmp.c:724:2: error: must use 'struct' tag to refer to type 'DenseArray'
DenseArray key_values;
^
from v.
Related Issues (20)
- a V compiler bug
- I want to use this if
- The "Array Slices" section in the V documentation is incorrect HOT 5
- operator overloading not work: invalid operator `+` to `voidptr` and `voidptr` HOT 5
- v broken again on freebsd when using clang, the default compiler HOT 1
- Compiler bug when trying to return an interface-optional with a fallback default value
- Sorting an array of references HOT 9
- Building 0.4.6 release: `V panic: No such file or directory; code: 2` HOT 13
- V allows duplicated operator method
- x &&= y is not implemented HOT 4
- x.json2 fails to decode a map with number keys HOT 2
- eof ignored because of <> HOT 1
- when <circular> printing does not show the number of item in the array HOT 2
- builder error: cannot convert 'struct array' to 'struct array *'
- Including Homebrew's sshlib fails to compile HOT 1
- cgen error for generic function over maps and arrays HOT 1
- Allows annonymous struct type to be passed as args
- c-style for loop with type alias provokes build error
- cannot use constants with values ββobtained using `$d` as a condition in comptime `if`
- Compiler Error for Unicode escape exceeding max value inside a Raw String
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from v.