question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dub: run task fails on new dub project

See original GitHub issue

Just created a new dub project and hit Cmd+shift+P, then chose the dub: Run project task and the output in the terminal is:

Executing task: dub run --compiler=dmd -a=x86_64 -b=debug -c= <

Error processing arguments: Missing value for argument -c=.
Run 'dub help' for usage information.
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

Seems like -c is expeccted from somewhere. My dub.json is:

{
	"name": "dsampler",
	"authors": [
		"Ali Akhtarzada"
	],
	"dependencies": {
		"kafka-d": "~>0.0.5"
	},
	"description": "A minimal D application.",
	"copyright": "Copyright © 2018, Ali Akhtarzada",
	"license": "proprietary"
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
WebFreak001commented, Oct 19, 2018

it should only upgrade to newer stable releases if you set betaStream to false again.

0reactions
benjaminfichetcommented, Jan 2, 2019

Yes, Dub was sometimes correctly initialized, sometimes not. I figured out the problem was probably caused by the virtual D environments I’m using.

Got everything working by ln -s ~/virtualenv../dmd/../dmd from virtualenv to /usr/bin for code-d to pick them using $PATH

Thank you. (edit: typo)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing the D compiler and the DUB package manager
DUB is installed in a similar way. Go to http://code.dlang.org/download and download the installer for Windows. Double-click on the downloaded file to start...
Read more >
A DUB Case Study: Compiling DMD as a Library | The D Blog
You can create a new DUB project by executing the dub init command. This will start an interactive setup that guides you through...
Read more >
Manage a workflow inside a project - Dubsado Help Center
This article covers changes you can make to a workflow already running inside of a project. Any changes you make to the workflow...
Read more >
Repeat Process() n times in Swift 3 - xcode - Stack Overflow
The error isn't that the task is still running. It's that the task has already run and completed, and can't be started again....
Read more >
English Dub Season Review: Heroines Run the Show
It is based on the song “Heroine Tarumono”, which is part of the Kokuhaku Jikko Iinkai: Ren'ai Series Vocaloid song project by HoneyWorks....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found