Giter Club home page Giter Club logo

Comments (1)

petertseng avatar petertseng commented on June 16, 2024

Ah, I see. From syntastic logging:

syntastic: 51.534025: SyntasticMake: called with options: {'errorformat': '%ESyntax error in line %l: %m,%ESyntax error in %f:%l: %m,%EError in %f:%l: %m,%C%p^,%-C%.%#', 'makeprg': 'crystal run --no-codegen --no-color test.cr /home/pt/test.cr'}
syntastic: 51.641999: system: command run in 0.107112s
syntastic: 51.643227: getLocList: checker crystal/crystal returned 1
syntastic: 51.643997: getLocList: checker crystal/crystal run in 0.111502s%

Right, if I run:

$ crystal run --no-codegen test.cr
$ crystal run --no-codegen test.cr test.cr
Error in ./test.cr:1: alias MyAlias is already defined

alias MyAlias = Int32
^

Yes, so adding the entrypoint in post_args causes this if the entry point is the same as the current file, so maybe the solution is to make it so that the entry point is not added if it's the same? Not sure I understand enough to be confident that that's the solution, but it would be my first guess

from vim-crystal.

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.