Comments (7)
What exactly do you mean ? Dmd is not used by the extension directly, only the dub command is used.
from dlang-vscode.
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.
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.
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.
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.
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.
No problem 👍
from dlang-vscode.
Related Issues (20)
- Go to Symbols Slow for Large Files. HOT 11
- Output Window Changes Cursor Focus When Hiding. HOT 1
- Can't "go to declaration" on module name HOT 3
- Documentation display is broken
- Allow Adding Import Paths for DCD as a Setting HOT 5
- Unit testing HOT 1
- Installer calls fetch/build when settings provide executable dependencies. HOT 3
- Ligatures are displayed incorrectly for D (dlang) variadic templates HOT 1
- struct and class keywords not highlighted HOT 2
- Error list are not cleared after success build. HOT 2
- Multiline errors support HOT 1
- DUB configuration specification from the status bar is missing HOT 6
- User defined DUB build type specification is missing HOT 2
- UDA highlighting HOT 5
- Syntax highlighting is missing some D language features HOT 2
- Code Assist From dub Packages? HOT 4
- Install fail HOT 1
- Support common IDE features HOT 4
- Presence on the Visual Studio Code Marketplace HOT 5
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 dlang-vscode.