GerbView: "Open Gerber Files" displays the gerber job file also, reporting error on opening.
Description
-
The file select dialog from Open Gerber File in GerbView displays the Gerber Job Files also (extension: .grbjob), opening this file displays an Error window with all the unexpected characters inside (no indication from which file this errors are coming from).
-
The Open ZIP Archive File tries to open the .grbjob file displaying an error window with all the unexpected characters. (no indication from which file the errors are coming from).
The file select dialog should filter out the .grbjob extension, in this way the user cannot selected to be open it.
The Open ZIP Archive File should be aware that the .grbjob extension is not a gerber file.
Steps to reproduce
-
Generate gerber files from a PCB, tick the option "Generate Gerber Job File"
-
In GerbView use "Open Gerber File(s)", the .grbjob file will be displayed and can be selected from the File Dialog.
-
The errors are displayed.
-
ZIP all the gerber files in a .zip file, including the .grbjob file
-
In GerbView use "Open ZIP Archive File"
KiCad Version
Application: Pcbnew
Version: (5.1.6)-1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.66.0 OpenSSL/1.1.1d (Schannel) zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.1.1) nghttp2/1.39.2
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.71.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.66.0
Compiler: GCC 9.2.0 with C++ ABI 1013
Build settings:
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=OFF
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=OFF
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_USE_OCC=OFF
KICAD_SPICE=ON
Thaks