-
Notifications
You must be signed in to change notification settings - Fork 16
No D std library found and Dub returned with exit code 2, but it correctly compiles #81
Comments
As a temporary solution I'm running Eclipse with a bat file containing
Still, content assist is not working |
It seems to me the content assist problem is unrelated to the DUB setup (which seems to be correct now). Post me the Eclipse log: "Help/About/Installation Details/Configuration/Error Log" |
Also the |
http://www.pasteall.org/54616/text Here is the error log The home assumption it makes is correct. |
Hum, why isn't there any relevant error in the log? :S |
I don't have the PC with me right now. Will do as soon as I have access to
|
Here is the log Every time I modify the file this two lines get written, but there is no error whatsoever.
Do you want to send me a debug version with some more logging to understand what's happening? |
Ahhhh, after some head scratching I think I found the cause... is "dub" on the PATH? It has to be, despite the DUB path option in DDT preferences (it's a bug, yes. It's related to #73). I've added logging to the place where it was missing (There is no debugging version, the standard version should do a basic log of all error events.) |
Confirmed this was the problem. Added DUB to the path in the launcher script and everything works fine now. Correct issue is now #82 |
I'm working on Eclipse Luna (the one with only JDK) and I only added DDT(0.10.2) as plug in on Windows 7.
Currently DDT is signalling me errors in the project and auto completion is not working, even if the compilation correctly works. I'm using the --compiler option in order to use a compiler that is not in PATH.
I looked around, but didn't find a way to specify where the sources are located for the DDT to find them.
When correctly setting the PATH environment with the directory containing the error doesn't show up (but still auto completion is not working)
In any case, the compilation works correctly, so maybe the limitation referenced in #71 doesn't apply any longer?
So, would it be possible to add a preference to specify where to look for the standard library?
Here the picture showing the errors:

D Standard Library [Error: none found]
DUB Dependencies [DUB error]: dub returned non-zero status: 2
Here a screenshot when the PATH has C:\dmd2\windows\bin in it

The text was updated successfully, but these errors were encountered: