logic: Fixed issues when indexing via CLI (issue #718)
* show proper error message in console when project configuration has issues * quit when project configuration is wrong * show indexing progress as self-updating percentage
This commit is contained in:
@@ -23,18 +23,10 @@ bool SourceGroupJavaSonargraph::prepareIndexing()
|
||||
FilePath sonargraphProjectPath = m_settings->getSonargraphProjectPathExpandedAndAbsolute();
|
||||
if (!sonargraphProjectPath.empty() && !sonargraphProjectPath.exists())
|
||||
{
|
||||
MessageStatus(L"Can't refresh project. The referenced Sonargraph project does not exist anymore.").dispatch();
|
||||
|
||||
if (std::shared_ptr<Application> application = Application::getInstance())
|
||||
{
|
||||
if (application->hasGUI())
|
||||
{
|
||||
application->handleDialog(
|
||||
L"Can't refresh project. The referenced Sonargraph project does not exist anymore: " + sonargraphProjectPath.wstr(),
|
||||
{ L"Ok" }
|
||||
);
|
||||
}
|
||||
}
|
||||
std::wstring error = L"Can't refresh project. The referenced Sonargraph project does not exist anymore: "
|
||||
+ sonargraphProjectPath.wstr();
|
||||
MessageStatus(error, true).dispatch();
|
||||
Application::getInstance()->handleDialog(error, { L"Ok" });
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user