Git Product home page Git Product logo

Comments (4)

atilaneves avatar atilaneves commented on May 27, 2024

Can you point me to your dub project (if it's public and online) or give me the contents of the .json and .d files that reproduce your issue please?

from flycheck-dmd-dub.

liefswanson avatar liefswanson commented on May 27, 2024
{
    "name": "foo.app",
    "description": "A minimal D application.",
    "copyright": "Copyright © 2015, lief Swanson",
    "authors": ["lief Swanson"],
    "dependencies": {
    }
}

basically just an empty project made by dub init.

I am fairly new to using dub and d though, should i set the path manually in here? I am just relying on dub defaults in this project.

from flycheck-dmd-dub.

atilaneves avatar atilaneves commented on May 27, 2024

D packages are directories, so that a file in foo/bar/baz.d would be included with import foo.bar.baz;, like in Python. You named your package foo.app, which has a dot in it. I expect problems with that. In any case, with your example the variable flycheck-dmd-include-path correctly adds your source directory to the list of imports.

from flycheck-dmd-dub.

liefswanson avatar liefswanson commented on May 27, 2024

that is strange, hmm I am going to look for possible conflicts with other packages, because it definitely is not including them into fiycheck, but it does compile just fine, and if i do as you describe it fixes the flycheck error, but it does not compile, saying that with the way my package is set up it needs to be included without the top level part of the package path. Moreover, i can't even seem to find flycheck-dmd-dub-set-include-path in my list of possible completions when using the minibuffer.

from flycheck-dmd-dub.

Related Issues (4)

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.