|
|
|
@ -370,10 +370,10 @@ void Project::LLDB::debug_compile_and_start() { |
|
|
|
run_arguments = build->get_executable(view ? view->file_path : Directories::get().path).string(); |
|
|
|
run_arguments = build->get_executable(view ? view->file_path : Directories::get().path).string(); |
|
|
|
if(run_arguments.empty()) { |
|
|
|
if(run_arguments.empty()) { |
|
|
|
if(!build->is_valid(default_build_path)) |
|
|
|
if(!build->is_valid(default_build_path)) |
|
|
|
Terminal::get().print("\e[31mError\e[m: build folder no longer valid, please recreate project.\n", true); |
|
|
|
Terminal::get().print("\e[31mError\e[m: build folder no longer valid, please use Recreate Build in the Project menu.\n", true); |
|
|
|
else { |
|
|
|
else { |
|
|
|
Terminal::get().print("\e[33mWarning\e[m: could not find executable.\n"); |
|
|
|
Terminal::get().print("\e[33mWarning\e[m: could not find executable.\n"); |
|
|
|
Terminal::get().print("Either use Project Set Run Arguments, or open a source file within a directory where an executable is defined.\n"); |
|
|
|
Terminal::get().print("Either use Set Run Arguments in the Debug menu, or open a source file within a directory where an executable is defined.\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -393,7 +393,7 @@ void Project::LLDB::debug_compile_and_start() { |
|
|
|
if(exit_status != 0) { |
|
|
|
if(exit_status != 0) { |
|
|
|
debugging = false; |
|
|
|
debugging = false; |
|
|
|
if(!self->build->is_valid(debug_build_path)) |
|
|
|
if(!self->build->is_valid(debug_build_path)) |
|
|
|
Terminal::get().print("\e[31mError\e[m: build folder no longer valid, please recreate project.\n", true); |
|
|
|
Terminal::get().print("\e[31mError\e[m: build folder no longer valid, please use Recreate Build in the Project menu.\n", true); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
self->debug_start(run_arguments, project_path, remote_host); |
|
|
|
self->debug_start(run_arguments, project_path, remote_host); |
|
|
|
@ -723,7 +723,7 @@ void Project::Clang::compile() { |
|
|
|
Terminal::get().async_process(build->get_compile_command(), default_build_path, [self = shared_from_this(), default_build_path](int exit_status) { |
|
|
|
Terminal::get().async_process(build->get_compile_command(), default_build_path, [self = shared_from_this(), default_build_path](int exit_status) { |
|
|
|
compiling = false; |
|
|
|
compiling = false; |
|
|
|
if(exit_status != 0 && !self->build->is_valid(default_build_path)) |
|
|
|
if(exit_status != 0 && !self->build->is_valid(default_build_path)) |
|
|
|
Terminal::get().print("\e[31mError\e[m: build folder no longer valid, please recreate project.\n", true); |
|
|
|
Terminal::get().print("\e[31mError\e[m: build folder no longer valid, please use Recreate Build in the Project menu.\n", true); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -744,10 +744,10 @@ void Project::Clang::compile_and_run() { |
|
|
|
auto executable = build->get_executable(view ? view->file_path : Directories::get().path); |
|
|
|
auto executable = build->get_executable(view ? view->file_path : Directories::get().path); |
|
|
|
if(executable.empty()) { |
|
|
|
if(executable.empty()) { |
|
|
|
if(!build->is_valid(default_build_path)) |
|
|
|
if(!build->is_valid(default_build_path)) |
|
|
|
Terminal::get().print("\e[31mError\e[m: build folder no longer valid, please recreate project.\n", true); |
|
|
|
Terminal::get().print("\e[31mError\e[m: build folder no longer valid, please use Recreate Build in the Project menu.\n", true); |
|
|
|
else { |
|
|
|
else { |
|
|
|
Terminal::get().print("\e[33mWarning\e[m: could not find executable.\n"); |
|
|
|
Terminal::get().print("\e[33mWarning\e[m: could not find executable.\n"); |
|
|
|
Terminal::get().print("Either use Project Set Run Arguments, or open a source file within a directory where an executable is defined.\n"); |
|
|
|
Terminal::get().print("Either use Set Run Arguments in the Project menu, or open a source file within a directory where an executable is defined.\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -768,7 +768,7 @@ void Project::Clang::compile_and_run() { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
else if(!self->build->is_valid(default_build_path)) |
|
|
|
else if(!self->build->is_valid(default_build_path)) |
|
|
|
Terminal::get().print("\e[31mError\e[m: build folder no longer valid, please recreate project.\n", true); |
|
|
|
Terminal::get().print("\e[31mError\e[m: build folder no longer valid, please use Recreate Build in the Project menu.\n", true); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|