intellij-dlanguage icon indicating copy to clipboard operation
intellij-dlanguage copied to clipboard

"Error running 'Run DUB': DUB is not configured correctly" on newly created project

Open adueppen opened this issue 6 years ago • 6 comments

I'm attempting to create a D project using intellij-dlanguage for the first time, so I am aware that this issue may be my own fault. I created a project using the built-in project creation tool, so it had run configurations automatically created. Upon trying to run the "Run DUB" configuration an error is given (screenshot) with virtually no details. Running dub run in the terminal seems to work and the program runs as usual. My project can be found here. Is there a configuration option that I messed up? Help would be appreciated.

adueppen avatar Sep 15 '19 20:09 adueppen

In settings search for dub. It needs to be setup under D Tools

SingingBush avatar Sep 16 '19 18:09 SingingBush

I set up dub using the auto find button, here's what it looks like for me. Am I missing something else?

adueppen avatar Sep 16 '19 19:09 adueppen

That seems fine. So after doing that does the plugin still consider dub not to be setup correctly?

SingingBush avatar Sep 16 '19 19:09 SingingBush

Yes, unfortunately.

adueppen avatar Sep 16 '19 19:09 adueppen

Currently I do not have access to a pc but as far as I remember, the run configurations which are there by default didn't worked for me. I always had to delete all of them and create new ones.

In addition, in the project settings dialog you have to add a DMD SDK entry and set it also active for the project.

andre2007 avatar Sep 16 '19 19:09 andre2007

@adueppen This may be related to #514, could you pull the latest changes in develop and run it locally to see if it's still a problem. Use ./gradlew runIde

If there's still an issue please provide details of the errors in idea.log

SingingBush avatar Oct 01 '19 17:10 SingingBush