Groterik / qtcreator-dubmanager

QtCreator plugin for dub manager support (dlang, d programming language)
MIT License
7 stars 2 forks source link

Can't open dub project - "process start timeout" #9

Open anton-dutov opened 8 years ago

anton-dutov commented 8 years ago

Project opening fails with error message "process start timeout". Even when project created by wizard. (Project created but can't open).

Trouble within this change: https://github.com/Groterik/qtcreator-dubmanager/commit/f46efb5f2ad2cb50acc9b88efa6794883f734bfb#diff-97ce032e510c1720beaddf31284e225aR37

(Linux, QtC 3.6.0 Based on Qt 5.5.1 (GCC 5.3.1 20160121, 64 bit))

Groterik commented 8 years ago

Sorry for the delay. Does it work after reverting to the previous revision? I'm asking because my first guess was incorrect path for dub executable in the settings.

anton-dutov commented 8 years ago

After reverting following lines, works fine

git diff
diff --git a/src/dubproject.cpp b/src/dubproject.cpp
index 1031c33..eab8194 100644
--- a/src/dubproject.cpp
+++ b/src/dubproject.cpp
@@ -34,7 +34,8 @@ DubProject::DubProject(DubManager *manager, const QString &filePath)
 {
     setId(DubProjectManager::Constants::DUBPROJECT_ID);
     setProjectContext(Core::Context(DubProjectManager::Constants::PROJECTCONTEXT));
-    setProjectLanguages(Core::Context(DubProjectManager::Constants::LANG_DLANG));
+//    setProjectLanguages(Core::Context(DubProjectManager::Constants::LANG_DLANG));
+    setProjectLanguages(Core::Context(ProjectExplorer::Constants::LANG_CXX));

Linux 64bit

Qt Creator 3.6.0 Based on Qt 5.5.1 (GCC 5.3.1 20160121, 64 bit)

Groterik commented 8 years ago

Sorry for the delay, but do you still have this issue? I can't reproduce it.

anton-dutov commented 8 years ago

Some time after installing that plugin, I removed the dcd-server, then I updated the plugin and got error. Because D-context now bound to DubProektManager::Constants::LANG_DLANG, and trying use qtcreator-dlangeditor, but dlangeditor can't start the dcd-server and throw error "process start timeout" and finally project is not opened.

Check that is easy - if we set wrong path of dcd-server binary, we got same error.

P.S. DubProektManager != DubProjectManager ;-)