fix: show build errors in console properly

This commit is contained in:
FalsePattern 2025-03-27 20:51:03 +01:00
parent 46069b9a22
commit a950c932f5
Signed by: falsepattern
GPG key ID: E930CDEC50C50E23
2 changed files with 4 additions and 1 deletions

View file

@ -29,6 +29,9 @@ Changelog structure reference:
### Fixed ### Fixed
- Debugger
- Build errors didn't get shown in the console
- Project - Project
- File path browse buttons in zig run configurations didn't work - File path browse buttons in zig run configurations didn't work

View file

@ -62,7 +62,7 @@ class ZigDebugParametersBuild(
withContext(Dispatchers.IO) { withContext(Dispatchers.IO) {
val commandLine = profileState.getCommandLine(toolchain, true) val commandLine = profileState.getCommandLine(toolchain, true)
if (listener.executeCommandLineWithHook(profileState.environment.project, commandLine)) if (listener.executeCommandLineWithHook(profileState.environment.project, commandLine))
throw ExecutionException(ZigDebugBundle.message("debug.build.compile.failed.generic")) return@withContext
val cfg = profileState.configuration val cfg = profileState.configuration
val workingDir = cfg.workingDirectory.path val workingDir = cfg.workingDirectory.path
val exe = profileState.configuration.exePath.path ?: run { val exe = profileState.configuration.exePath.path ?: run {