[Kst] Re: Bug in ASCII fixed-width

Nicolas Brisset nicolas.brisset at free.fr
Sun Feb 6 00:40:26 CET 2011


... and my last mail for today! 
----- "Barth Netterfield" <netterfield at astro.utoronto.ca> a écrit : 




> I believe there are many issues there: 
> 1) the .kst not being used correctly when reloading the file ("Reimund's bug") 

> I haven't looked at this. I presume this is related to storing configuration options in the kst file? 
That's what I suppose, but I've lost track of the last changes. I just tested again, and now it seems to work. But as I'm a bit confused, maybe the best would be if Reimund could test it again with the latest svn version. Reimund, is this possible? 



2) the -F switch not being implemented in kst 2.x yet (not really a bug, rather a missing feature). While we're at it, we may want to look at implementing more than one -F switch (-F1, -F2, etc), as explained in http://bugs.kde.org/show_bug.cgi?id=115662 

> I have committed the 
> kst2 [-F <filename>] [-f <startframe>] [-n numframes] [-s <skip>] [-A] <kstfile> 
> file override usage. I have not added the idea of -F1 -F2, etc. 

> NOTE: the -F option opens a new datasource which may be of a completely different type, and so ignores any datasource configuration parameters that may have been stored in the kst file. 
Oops! I had not thought of that, but I believe it's an issue! In *all* the cases I used -F, the files had the same format. I'm pretty sure chances are much higher that you get the data correctly if you reuse the settings and only change the filename, than reading the file as if it were completely new. If we want to refine it a bit, we could possibly distinguish: 
- same file type (i.e. datasource plugin) => reuse settings stored in the .kst 
- different file type: read as if it were new 
Your current approach would have forced me to tune the default settings to that format so that the data can be read :-( I don't know how hard it would be to do and how convinced you are, but I'm very confident that it's much safer "my way"... 


Nicolas 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kst/attachments/20110206/7f085ac8/attachment.htm 


More information about the Kst mailing list