Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
1c2921d3
Commit
1c2921d3
authored
15 years ago
by
Tobias Hunger
Browse files
Options
Downloads
Patches
Plain Diff
Properly report project and targetname on build failures
parent
1bb0d919
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/projectexplorer/buildmanager.cpp
+5
-4
5 additions, 4 deletions
src/plugins/projectexplorer/buildmanager.cpp
with
5 additions
and
4 deletions
src/plugins/projectexplorer/buildmanager.cpp
+
5
−
4
View file @
1c2921d3
...
@@ -303,11 +303,12 @@ void BuildManager::nextBuildQueue()
...
@@ -303,11 +303,12 @@ void BuildManager::nextBuildQueue()
bool
result
=
m_watcher
.
result
();
bool
result
=
m_watcher
.
result
();
if
(
!
result
)
{
if
(
!
result
)
{
// Build Failure
// Build Failure
const
QString
projectName
=
m_currentBuildStep
->
buildConfiguration
()
->
target
()
->
displayName
();
const
QString
projectName
=
m_currentBuildStep
->
buildConfiguration
()
->
target
()
->
project
()
->
displayName
();
addToOutputWindow
(
tr
(
"<font color=
\"
#ff0000
\"
>Error while building project %1</font>"
).
arg
(
projectName
));
const
QString
targetName
=
m_currentBuildStep
->
buildConfiguration
()
->
target
()
->
displayName
();
addToOutputWindow
(
tr
(
"<font color=
\"
#ff0000
\"
>Error while building project %1 (target: %2)</font>"
).
arg
(
projectName
,
targetName
));
addToOutputWindow
(
tr
(
"<font color=
\"
#ff0000
\"
>When executing build step '%1'</font>"
).
arg
(
m_currentBuildStep
->
displayName
()));
addToOutputWindow
(
tr
(
"<font color=
\"
#ff0000
\"
>When executing build step '%1'</font>"
).
arg
(
m_currentBuildStep
->
displayName
()));
// NBS TODO fix in qtconcurrent
// NBS TODO fix in qtconcurrent
m_progressFutureInterface
->
setProgressValueAndText
(
m_progress
*
100
,
tr
(
"Error while building project %1"
).
arg
(
projectName
));
m_progressFutureInterface
->
setProgressValueAndText
(
m_progress
*
100
,
tr
(
"Error while building project %1
(target: %2)
"
).
arg
(
projectName
,
targetName
));
}
}
if
(
result
)
if
(
result
)
...
@@ -374,7 +375,7 @@ bool BuildManager::buildQueueAppend(QList<BuildStep *> steps)
...
@@ -374,7 +375,7 @@ bool BuildManager::buildQueueAppend(QList<BuildStep *> steps)
// print something for the user
// print something for the user
const
QString
projectName
=
bs
->
buildConfiguration
()
->
target
()
->
project
()
->
displayName
();
const
QString
projectName
=
bs
->
buildConfiguration
()
->
target
()
->
project
()
->
displayName
();
const
QString
targetName
=
bs
->
buildConfiguration
()
->
target
()
->
displayName
();
const
QString
targetName
=
bs
->
buildConfiguration
()
->
target
()
->
displayName
();
addToOutputWindow
(
tr
(
"<font color=
\"
#ff0000
\"
>Error while building project %1 (%2)</font>"
).
arg
(
projectName
,
targetName
));
addToOutputWindow
(
tr
(
"<font color=
\"
#ff0000
\"
>Error while building project %1 (
target:
%2)</font>"
).
arg
(
projectName
,
targetName
));
addToOutputWindow
(
tr
(
"<font color=
\"
#ff0000
\"
>When executing build step '%1'</font>"
).
arg
(
bs
->
displayName
()));
addToOutputWindow
(
tr
(
"<font color=
\"
#ff0000
\"
>When executing build step '%1'</font>"
).
arg
(
bs
->
displayName
()));
// disconnect the buildsteps again
// disconnect the buildsteps again
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment