forked from qt-creator/qt-creator
Fix "File name case mismatch" error when debugging QML apps (Win)
Work around QTBUG-17529 by normalizing the capitalization of the working directory (which we do already for launching apps without debugging). Task-number: QTCREATORBUG-4592 Reviewed-by: Friedemann Kleint
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
# include "peutils.h"
|
||||
# include <utils/winutils.h>
|
||||
#endif
|
||||
|
||||
#include <projectexplorer/abi.h>
|
||||
@@ -675,6 +676,12 @@ static DebuggerStartParameters localStartParameters(RunConfiguration *runConfigu
|
||||
sp.startMode = StartInternal;
|
||||
sp.environment = rc->environment();
|
||||
sp.workingDirectory = rc->workingDirectory();
|
||||
|
||||
#if defined(Q_OS_WIN)
|
||||
// Work around QTBUG-17529 (QtDeclarative fails with 'File name case mismatch' ...)
|
||||
sp.workingDirectory = Utils::normalizePathName(sp.workingDirectory);
|
||||
#endif
|
||||
|
||||
sp.executable = rc->executable();
|
||||
sp.processArgs = rc->commandLineArguments();
|
||||
sp.toolChainAbi = rc->abi();
|
||||
|
Reference in New Issue
Block a user