Giter Site home page Giter Site logo

Comments (7)

LaurentTreguier avatar LaurentTreguier commented on May 9, 2024

What exactly do you mean ? Dmd is not used by the extension directly, only the dub command is used.

from dlang-vscode.

TritiatedWater avatar TritiatedWater commented on May 9, 2024

So you're saying that dub is responsible to call dmd?

Is there any way to make dub execute rdmd instead of plain dmd?

Dlang also has an intrepeter (rdmd) so l can edit-run faster.

from dlang-vscode.

LaurentTreguier avatar LaurentTreguier commented on May 9, 2024

If you use the tasks created with the Create default tasks command, you can modify the build subtask and add "args": ["--rdmd"], right under "taskname": "build", to make dub use rdmd.

from dlang-vscode.

TritiatedWater avatar TritiatedWater commented on May 9, 2024

It seems that VSCode is ignoring the tasks.json.

The dub args in tasks.json:
"taskName": "build",
"args": ["--rdmd"],
"isBuildCommand": true,

The output:
[Running] cd "/home/abc/Documents/Projects/usless/src/" && dmd main.d && "/home/abc/Documents/Projects/usless/src/"main
fadsf
[Done] exited with code=0 in 0.596 seconds
Or is there something I did wrong?

from dlang-vscode.

LaurentTreguier avatar LaurentTreguier commented on May 9, 2024

It looks like you might be using an extension that runs the current file as a script... That doesn't look like an output from dub. If this is the case, you might as well open an issue for this extension, using rdmd would make a lot more sense to quickly run scripts.

from dlang-vscode.

TritiatedWater avatar TritiatedWater commented on May 9, 2024

It turns out I was using Code Runner. Just realised after you mentioned extension.
Anyway, configuring Code Runner to run rdmd also works.

Sorry for wasting your time :)

from dlang-vscode.

LaurentTreguier avatar LaurentTreguier commented on May 9, 2024

No problem 👍

from dlang-vscode.

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.