mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 13:44:47 +00:00
[PR #236] [MERGED] Reduce chance of detecting false positives when scanning subprocesses for errors. #1114
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ElectronNET/Electron.NET/pull/236
Author: @BorisTheBrave
Created: 4/27/2019
Status: ✅ Merged
Merged: 5/15/2019
Merged by: @GregorBiswanger
Base:
master← Head:electronize-cli-false-positive📝 Commits (1)
a5cee6eReduce chance of detecting false positives when scanning subprocesses for errors.📊 Changes
1 file changed (+5 additions, -2 deletions)
View changed files
📝
ElectronNET.CLI/ProcessHelper.cs(+5 -2)📄 Description
Fixes #160
The problem is that
ng buildlogs lines like the following:The original code detects this as an error, unintentionally. The problem is compounded by the fact that the build process uses backspace characters, which means the "offending" line is invisible to end users.
This fix doesn't address the fact that scanning for "error" is a horrible hack, but I'm sure you've already explored the alternatives. Instead, I've made the smallest change possible that will continue to detect any likely error, while ignoring these problematic files. Fortunately, no file called "error.js" is installed, at least when I tested (Windowx x64, netcoreapp2.1, default new angular project).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.