Coder Social home page Coder Social logo

Comments (5)

gthvn1 avatar gthvn1 commented on July 18, 2024 2

@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.

GGRei avatar GGRei commented on July 18, 2024 2

@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.

gthvn1 avatar gthvn1 commented on July 18, 2024 1

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.

GGRei avatar GGRei commented on July 18, 2024 1

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.

felipensp avatar felipensp commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.