Bug 1015 - missing support for input file format detection
Summary: missing support for input file format detection
Status: RESOLVED FIXED
Alias: None
Product: PulseView
Classification: Unclassified
Component: File handling (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-20 21:52 CEST by Gerhard Sittig
Modified: 2018-05-17 23:07 CEST (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Sittig 2017-08-20 21:52:04 CEST
When pulseview is given the -i command line option, specifying the input file 
to load, it's assumed that the file is in srzip format. Other formats strictly 
require the user to specify -I as well.  A similar constraint applies to 
interactive use of the GUI, where it's essential that the user chooses either 
"Open" or "Open As", depending on the file type.

sigrok-cli uses a method where in the absence of -I format specs the list of 
input modules is queried which of them can handle the file format in question. 
Pulseview should use that method as well.

Of course that auto detection only takes effect for those input modules which 
support it, and when the format reliably can get detected (some can't, due to 
ambiguity between several supported formats). This means that support for -I 
needs to remain, it's just that -I could get omitted when there is no doubt 
about the format of a file.
Comment 1 Uwe Hermann 2018-05-17 23:07:57 CEST
Fixed in d7168e582c71ebcc359b12efed83daa2a6b6f28e and a9674d1c8c5ab81b6ea642ce263d2dd316f0e33c, thanks!