Re: Line breaking on beta2

2023-02-20 Thread Jean-Marc Lasgouttes

Le 16/02/2023 à 06:18, Andrew Parsloe a écrit :
Perhaps it is the same phenomenon at work when a reference is followed 
immediately by a full stop, and the line breaks between the reference 
and full stop. See attached screenshot and file, where full stops start 
the second and last lines of the paragraph.


Hi all,

I have posted a patch at https://www.lyx.org/trac/ticket/12660 that 
should address the original problem.


Andrew, I cannot reproduce your issue, is it fixed for you too ?

JMarc

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Line breaking on beta2

2023-02-12 Thread Scott Kostyshak
On Mon, Feb 13, 2023 at 09:56:47AM +1300, Andrew Parsloe wrote:
> On 13/02/2023 5:39 am, Daniel wrote:
> > On 2023-02-12 14:16, Jean-Marc Lasgouttes wrote:
> > > Le 12/02/2023 à 10:36, Daniel a écrit :
> > > > Oddly enough I cannot. It happened while I was working on a
> > > > text. (And I checked a couple of times that there was no extra
> > > > space inserted.) But I seem unable to reproduce it as well.
> > > > Unfortunately, I don't know what kind of context is needed for
> > > > it to happen. Will let you know if it happens again.
> > > 
> > > I understand how it can happen and it was probably the same with
> > > earlier versions. Please create a ticket to that I remember it. I am
> > > not sure that it will be 100% easy to solve, though.
> > > 
> > > JMarc
> > 
> > Done at https://www.lyx.org/trac/ticket/12660.
> > 
> > Daniel
> 
> I've attached a lyx file (2.4.0-beta2) and screenshot which display the
> phenomenon. (I don't seem able to access trac.) The "guilty" word in the
> example is "unexpandable" with the "un" emphasized. There are a number of
> different window widths which show the effect.
> 
> Andrew

Thanks, Andrew. I can reproduce now if I have the right zoom level.

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Line breaking on beta2

2023-02-12 Thread Jean-Marc Lasgouttes

Le 12/02/2023 à 17:39, Daniel a écrit :


Done at https://www.lyx.org/trac/ticket/12660.


Thanks !

JMarc

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Line breaking on beta2

2023-02-12 Thread Daniel

On 2023-02-12 14:16, Jean-Marc Lasgouttes wrote:

Le 12/02/2023 à 10:36, Daniel a écrit :
Oddly enough I cannot. It happened while I was working on a text. (And 
I checked a couple of times that there was no extra space inserted.) 
But I seem unable to reproduce it as well. Unfortunately, I don't know 
what kind of context is needed for it to happen. Will let you know if 
it happens again.


I understand how it can happen and it was probably the same with earlier 
versions. Please create a ticket to that I remember it. I am not sure 
that it will be 100% easy to solve, though.


JMarc


Done at https://www.lyx.org/trac/ticket/12660.

Daniel



--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Line breaking on beta2

2023-02-12 Thread Jean-Marc Lasgouttes

Le 12/02/2023 à 10:36, Daniel a écrit :
Oddly enough I cannot. It happened while I was working on a text. (And I 
checked a couple of times that there was no extra space inserted.) But I 
seem unable to reproduce it as well. Unfortunately, I don't know what 
kind of context is needed for it to happen. Will let you know if it 
happens again.


I understand how it can happen and it was probably the same with earlier 
versions. Please create a ticket to that I remember it. I am not sure 
that it will be 100% easy to solve, though.


JMarc

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Line breaking on beta2

2023-02-12 Thread Daniel

On 2023-02-11 18:04, Scott Kostyshak wrote:

On Sat, Feb 11, 2023 at 03:35:03PM +0100, Daniel wrote:

I cannot test current master for the next week, but just noticed that line
breaking happens within words when there are different formats applied to
parts of the word, say "*un*breakable" will break after "un" if "un" is
emphasized. Maybe this has already been fixed in current master.


I can't reproduce on current master. I emphasized "un" but can't seem to
get a linebreak after it. Can you send a screenshot?

Scott


Oddly enough I cannot. It happened while I was working on a text. (And I 
checked a couple of times that there was no extra space inserted.) But I 
seem unable to reproduce it as well. Unfortunately, I don't know what 
kind of context is needed for it to happen. Will let you know if it 
happens again.


Daniel


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Line breaking on beta2

2023-02-11 Thread Scott Kostyshak
On Sat, Feb 11, 2023 at 03:35:03PM +0100, Daniel wrote:
> I cannot test current master for the next week, but just noticed that line
> breaking happens within words when there are different formats applied to
> parts of the word, say "*un*breakable" will break after "un" if "un" is
> emphasized. Maybe this has already been fixed in current master.

I can't reproduce on current master. I emphasized "un" but can't seem to
get a linebreak after it. Can you send a screenshot?

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Line breaking on beta2

2023-02-11 Thread Daniel
I cannot test current master for the next week, but just noticed that 
line breaking happens within words when there are different formats 
applied to parts of the word, say "*un*breakable" will break after "un" 
if "un" is emphasized. Maybe this has already been fixed in current master.


Daniel


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Fwd: Crash with SIGSEGV signal on LyX-2.4.0-beta2

2023-01-28 Thread Jean-Marc Lasgouttes

Hi again,

This is related to my previous message. Again, please keep Huang-Nan in 
the loop.


JMarc


 Message transféré 
Sujet : Crash with SIGSEGV signal on LyX-2.4.0-beta2
Date :  Fri, 27 Jan 2023 18:16:44 +0800
De :黃皇男 
Pour :  lyx-d...@lists.lyx.org



To whom it may be concerned:

Machine: Apple Macbook Air 13 M1

OS:Ventura 13.2

I think it may due to the system display switching from light to dark 
when clock arrives 18:00.


At the same time, I found a problem, when the LyX brings up a document, 
the math screen font is very small (the screen font is set to 200%) and 
after I dragged the enlarge or shrink slider bar, it becomes OK.


Best regards,

Huang-Nan

Error signal:

(1) 1 lyx 0x00010898a9ca 
_ZN3lyx8frontend5Alert7doErrorERKNSt3__112basic_stringIwNS2_11char_traitsIwEENS2_9allocatorIwSA_b 
: 1 lyx 0x00010898a9ca 
_ZN3lyx8frontend5Alert7doErrorERKNSt3__112basic_stringIwNS2_11char_traitsIwEENS2_9allocatorIwSA_b 
+ 199


(2) 2 lyx 0x00010898ad3f 
_ZN3lyx8frontend5Alert5errorERKNSt3__112basic_stringIwNS2_11char_traitsIwEENS2_9allocatorIwSA_b 
: 2 lyx 0x00010898ad3f 
_ZN3lyx8frontend5Alert5errorERKNSt3__112basic_stringIwNS2_11char_traitsIwEENS2_9allocatorIwSA_b 
+ 135


(3) 3 lyx 0x0001086a9452 _ZN3lyxL13error_handlerEi : 3 lyx 
0x0001086a9452 _ZN3lyxL13error_handlerEi + 351


(4) 4 libsystem_platform.dylib0x7ff803bf4c1d _sigtramp : 4 
libsystem_platform.dylib0x7ff803bf4c1d _sigtramp + 29


(5) 5 CoreText0x7ff8059fe766 _ZNK5TFont14GetScaleFactorEv : 5 
CoreText0x7ff8059fe766 _ZNK5TFont14GetScaleFactorEv + 34


(6) 6 lyx 0x0001087d3cbc 
_ZNK3lyx13InsetMathGrid4drawERNS_11PainterInfoEii : 6 lyx 
0x0001087d3cbc _ZNK3lyx13InsetMathGrid4drawERNS_11PainterInfoEii + 168


(7) 7 lyx 0x0001087df59a 
_ZNK3lyx13InsetMathHull4drawERNS_11PainterInfoEii : 7 lyx 
0x0001087df59a _ZNK3lyx13InsetMathHull4drawERNS_11PainterInfoEii + 1476


(8) 8 lyx 0x00010872d075 
_ZNK3lyx10RowPainter10paintInsetERKNS_3Row7ElementE : 8 lyx 
0x00010872d075 _ZNK3lyx10RowPainter10paintInsetERKNS_3Row7ElementE + 613


(9) 9 lyx 0x00010872ea92 _ZN3lyx10RowPainter9paintTextEv : 9 lyx 
0x00010872ea92 _ZN3lyx10RowPainter9paintTextEv + 154


( 10) 10lyx 0x00010877cba3 
_ZNK3lyx11TextMetrics13drawParagraphERNS_11PainterInfoElii : 10lyx 
0x00010877cba3 
_ZNK3lyx11TextMetrics13drawParagraphERNS_11PainterInfoElii + 2427


( 11) 11lyx 0x000108781244 
_ZNK3lyx11TextMetrics4drawERNS_11PainterInfoEii : 11lyx 
0x000108781244 _ZNK3lyx11TextMetrics4drawERNS_11PainterInfoEii + 118


( 12) 12lyx 0x000108602e63 
_ZN3lyx10BufferView4drawERNS_8frontend7PainterEb : 12lyx 
0x000108602e63 _ZN3lyx10BufferView4drawERNS_8frontend7PainterEb + 705


( 13) 13lyx 0x000108b49508 
_ZN3lyx8frontend11GuiWorkArea10paintEventEP11QPaintEvent : 13lyx 
0x000108b49508 
_ZN3lyx8frontend11GuiWorkArea10paintEventEP11QPaintEvent + 482


( 14) 14QtWidgets 0x00010a472ac2 _ZN7QWidget5eventEP6QEvent : 
14QtWidgets 0x00010a472ac2 _ZN7QWidget5eventEP6QEvent + 1090


( 15) 15QtWidgets 0x00010a519f2b _ZN6QFrame5eventEP6QEvent : 
15QtWidgets 0x00010a519f2b _ZN6QFrame5eventEP6QEvent + 43


( 16) 16QtCore0x000109faadde 
_ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent 
: 16QtCore0x000109faadde 
_ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent 
+ 206


( 17) 17QtWidgets 0x00010a437e4b 
_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent : 17QtWidgets 
0x00010a437e4b 
_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 251


( 18) 18QtWidgets 0x00010a439215 
_ZN12QApplication6notifyEP7QObjectP6QEvent : 18QtWidgets 
0x00010a439215 _ZN12QApplication6notifyEP7QObjectP6QEvent + 581


( 19) 19lyx 0x00010899b5cb 
_ZN3lyx8frontend14GuiApplication6notifyEP7QObjectP6QEvent : 19lyx 
0x00010899b5cb 
_ZN3lyx8frontend14GuiApplication6notifyEP7QObjectP6QEvent + 21


( 20) 20QtCore0x000109faab44 
_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent : 
20QtCore0x000109faab44 
_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 212


( 21) 21QtWidgets 0x00010a46bb1d 
_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore 
: 21QtWidgets 0x00010a46bb1d 
_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore 
+ 2989


( 22) 22QtWidgets 0x00010a445738 _ZN19QWidgetBackingStore6doSyncEv : 
22QtWidgets 0x00010a445738 _ZN19QWidgetBackingStore6doSyncEv + 4616


( 23) 23QtWidgets 0x00010a472ceb _ZN7QWidget5eventEP6QEvent : 
23QtWidgets 0x00010a472ceb _ZN7QWidget5eventEP6QEvent + 1643


( 24) 24QtWidgets 0x00010a582304 _ZN11QMainWindow5eventEP6QEvent : 
24QtWidgets 0x00010a582304 _ZN11QMainWindow5eventEP6QEvent + 276


( 25) 25QtWidgets 0x00010a437e60 
_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent

Re: Another Crash with SIGSEGV signal on LyX-2.4.0-beta2 (macOS Ventura)

2023-01-28 Thread Jean-Marc Lasgouttes

Le 28/01/2023 à 03:49, 黃皇男 a écrit :

To whom it may be concerned:

Machine: Apple Macbook Air 15 Intel

OS:Ventura 13.2


I think it happens when OS turn the dark into light mode


Hello,

Huang-Nan: The best solution to get answer is to send your message to 
lyx-devel@lists.lyx.org
Others: please keep Huang-Nan in cc:, since he or she is not a member of 
the list.


Your second backtrace points to the same issue as the first: the code is 
querying the scale factor (Font::GetScaleFactor in the other backtrace 
sent to lyx-docs) when drawing a grid-like math formula.


Stephan, any ideas? We do not know at this point whether this is a Qt6 
issue or a Ventura issue. Or did you use Qt5?


JMarc



Best regards,

Huang-Nan


(1) 1 lyx 0x00010b1d09ca 
_ZN3lyx8frontend5Alert7doErrorERKNSt3__112basic_stringIwNS2_11char_traitsIwEENS2_9allocatorIwSA_b : 1 lyx 0x00010b1d09ca _ZN3lyx8frontend5Alert7doErrorERKNSt3__112basic_stringIwNS2_11char_traitsIwEENS2_9allocatorIwSA_b + 199


(2) 2 lyx 0x00010b1d0d3f 
_ZN3lyx8frontend5Alert5errorERKNSt3__112basic_stringIwNS2_11char_traitsIwEENS2_9allocatorIwSA_b : 2 lyx 0x00010b1d0d3f _ZN3lyx8frontend5Alert5errorERKNSt3__112basic_stringIwNS2_11char_traitsIwEENS2_9allocatorIwSA_b + 135


(3) 3 lyx 0x00010aeef452 _ZN3lyxL13error_handlerEi : 3 lyx 
0x00010aeef452 _ZN3lyxL13error_handlerEi + 351


(4) 4 libsystem_platform.dylib0x7ff803bf4c1d _sigtramp : 4 
libsystem_platform.dylib0x7ff803bf4c1d _sigtramp + 29


(5) 5 ??? 0x61aeb7a0 0x0 : 5 ??? 0x61aeb7a0 0x0 + 
105553144493984


(6) 6 lyx 0x00010b019cbc 
_ZNK3lyx13InsetMathGrid4drawERNS_11PainterInfoEii : 6 lyx 
0x00010b019cbc _ZNK3lyx13InsetMathGrid4drawERNS_11PainterInfoEii + 168


(7) 7 lyx 0x00010b02559a 
_ZNK3lyx13InsetMathHull4drawERNS_11PainterInfoEii : 7 lyx 
0x00010b02559a _ZNK3lyx13InsetMathHull4drawERNS_11PainterInfoEii + 1476


(8) 8 lyx 0x00010af73075 
_ZNK3lyx10RowPainter10paintInsetERKNS_3Row7ElementE : 8 lyx 
0x00010af73075 _ZNK3lyx10RowPainter10paintInsetERKNS_3Row7ElementE + 613


(9) 9 lyx 0x00010af74a92 _ZN3lyx10RowPainter9paintTextEv : 9 lyx 
0x00010af74a92 _ZN3lyx10RowPainter9paintTextEv + 154


( 10) 10lyx 0x00010afc2ba3 
_ZNK3lyx11TextMetrics13drawParagraphERNS_11PainterInfoElii : 10lyx 
0x00010afc2ba3 
_ZNK3lyx11TextMetrics13drawParagraphERNS_11PainterInfoElii + 2427


( 11) 11lyx 0x00010afc7244 
_ZNK3lyx11TextMetrics4drawERNS_11PainterInfoEii : 11lyx 
0x00010afc7244 _ZNK3lyx11TextMetrics4drawERNS_11PainterInfoEii + 118


( 12) 12lyx 0x00010b1a28cf 
_ZNK3lyx9InsetText4drawERNS_11PainterInfoEii : 12lyx 0x00010b1a28cf 
_ZNK3lyx9InsetText4drawERNS_11PainterInfoEii + 519


( 13) 13lyx 0x00010b0c56f4 
_ZNK3lyx12InsetCaption4drawERNS_11PainterInfoEii : 13lyx 
0x00010b0c56f4 _ZNK3lyx12InsetCaption4drawERNS_11PainterInfoEii + 290


( 14) 14lyx 0x00010af73075 
_ZNK3lyx10RowPainter10paintInsetERKNS_3Row7ElementE : 14lyx 
0x00010af73075 _ZNK3lyx10RowPainter10paintInsetERKNS_3Row7ElementE + 613


( 15) 15lyx 0x00010af74a92 _ZN3lyx10RowPainter9paintTextEv : 15lyx 
0x00010af74a92 _ZN3lyx10RowPainter9paintTextEv + 154


( 16) 16lyx 0x00010afc2ba3 
_ZNK3lyx11TextMetrics13drawParagraphERNS_11PainterInfoElii : 16lyx 
0x00010afc2ba3 
_ZNK3lyx11TextMetrics13drawParagraphERNS_11PainterInfoElii + 2427


( 17) 17lyx 0x00010afc7244 
_ZNK3lyx11TextMetrics4drawERNS_11PainterInfoEii : 17lyx 
0x00010afc7244 _ZNK3lyx11TextMetrics4drawERNS_11PainterInfoEii + 118


( 18) 18lyx 0x00010b1a28cf 
_ZNK3lyx9InsetText4drawERNS_11PainterInfoEii : 18lyx 0x00010b1a28cf 
_ZNK3lyx9InsetText4drawERNS_11PainterInfoEii + 519


( 19) 19lyx 0x00010b0d0978 
_ZNK3lyx16InsetCollapsible4drawERNS_11PainterInfoEii : 19lyx 
0x00010b0d0978 _ZNK3lyx16InsetCollapsible4drawERNS_11PainterInfoEii 
+ 1408


( 20) 20lyx 0x00010af73075 
_ZNK3lyx10RowPainter10paintInsetERKNS_3Row7ElementE : 20lyx 
0x00010af73075 _ZNK3lyx10RowPainter10paintInsetERKNS_3Row7ElementE + 613


( 21) 21lyx 0x00010af74a92 _ZN3lyx10RowPainter9paintTextEv : 21lyx 
0x00010af74a92 _ZN3lyx10RowPainter9paintTextEv + 154


( 22) 22lyx 0x00010afc2ba3 
_ZNK3lyx11TextMetrics13drawParagraphERNS_11PainterInfoElii : 22lyx 
0x00010afc2ba3 
_ZNK3lyx11TextMetrics13drawParagraphERNS_11PainterInfoElii + 2427


( 23) 23lyx 0x00010afc7244 
_ZNK3lyx11TextMetrics4drawERNS_11PainterInfoEii : 23lyx 
0x00010afc7244 _ZNK3lyx11TextMetrics4drawERNS_11PainterInfoEii + 118


( 24) 24lyx 0x00010ae48e63 
_ZN3lyx10BufferView4drawERNS_8frontend7PainterEb : 24lyx 
0x00010ae48e63 _ZN3lyx10BufferView4drawERNS_8frontend7PainterEb + 705


( 25) 25lyx 0x00010b38f508 
_ZN3lyx8frontend11GuiWorkArea10paintEventEP11QPaintEvent : 25lyx 
0x00010b38f508 
_ZN3lyx8frontend11GuiWorkArea10paintEventEP11QPaintEvent + 482


( 26) 26QtWidgets 0x00010ccb8ac2 _ZN7QWidget5eventEP6QEvent : 
26QtWidgets 0x00010ccb8ac2 

Re: LyX 2.4.0-beta2; zoom slider

2023-01-27 Thread Daniel

On 2023-01-27 07:30, Jürgen Spitzmüller wrote:

Am Mittwoch, dem 25.01.2023 um 19:26 +0100 schrieb Daniel:

Anyway, for system default, there is a solutions that seem compatible
with your position:

Set the system default to 100% (and even better make the system
default
so that it matches the actual size of the font). There was a
discussion
about this on the list if I remember correctly.


100% is way too low on all Linux system I have used. This is not a good
default.


Ah, that was poor explanation on my side. I meant: whatever LyX 
considers the correct system default, say 150% on macOS, make that show 
up as 100%.


Anyway, I also think the scaling factor alternative is better since it 
can satisfy more needs (for people who use a different default zoom).


Daniel


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.4.0-beta2; zoom slider

2023-01-26 Thread Jürgen Spitzmüller
Am Donnerstag, dem 26.01.2023 um 10:26 +0100 schrieb Daniel:
> And in order to not confuse users about different percentages, we
> would 
> call the "Default zoom %" just "Font scaling %" or so. It's already
> in 
> the Preferences font section anyway between fonts and font sizes, so
> the 
> user will make the connection easily.
> 
> So, the default zoom will always be 100% but the default font scaling
> can differ. This makes 10% increases round numbers.
> 
> This will also make setting the font scaling to something more 
> reasonable appear less strange. For example, on macOS the default
> zoom 
> is currently 150% while something closer to 152% is a better 
> representation of the actual font size on screen. We can calculate
> the 
> exact number from the DPI of the display and set it as system defaut
> and 
> also provide a "Reset to system default" button next to the "Font 
> scaling %".

This makes more sense, but in order to separate it from zoom I would
rather make it a scaling factor (e.g., 1.5) rather than a percentage
value.

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.4.0-beta2; zoom slider

2023-01-26 Thread Jürgen Spitzmüller
Am Mittwoch, dem 25.01.2023 um 19:26 +0100 schrieb Daniel:
> Anyway, for system default, there is a solutions that seem compatible
> with your position:
> 
> Set the system default to 100% (and even better make the system
> default 
> so that it matches the actual size of the font). There was a
> discussion 
> about this on the list if I remember correctly.

100% is way too low on all Linux system I have used. This is not a good
default.

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.4.0-beta2; zoom slider

2023-01-26 Thread Daniel

On 2023-01-25 19:26, Daniel wrote:

On 2023-01-25 18:00, Jürgen Spitzmüller wrote:

Am Mittwoch, dem 25.01.2023 um 17:02 +0100 schrieb Daniel:

I cannot reproduce with preview beta2. When clicking on +/-, I get
steps of 15%. Given that the (system) default is 150%,


Well, 15% is 10% of 150%.


I cannot get to 200% that way.


You need to set default zoom to either 100% or 200% to achieve that.


Also, once one has used the slider, one cannot get "round numbers"
anymore. I suggest to change it to how Word does it: the +
and - buttons always get you to "round numbers" with steps of 10%.
Then, for example, you can get fast to a certain point by using the
slider and then adjust to a round number with +/-.


This does not make sense to me, as you'd get a smaller range with 200%
default zoom that way. The larger the default, the larger the steps.
20% jumps make perfect sense to me on my setting with 200% default
zoom.

Word does not have the concept of an adjustable default zoom AFAIK.
They always have 100% as mean value. Same for Libre.


It might not make sense to you but now you know that it does to some 
people who are using not 100% or 200% zoom default and rather, say, 150% 
like the system default (at least on macOS).


Anyway, for system default, there is a solutions that seem compatible 
with your position:


Set the system default to 100% (and even better make the system default 
so that it matches the actual size of the font). There was a discussion 
about this on the list if I remember correctly.


That leaves people who are not happy with system default in the rain. 
You would lose round numbers that way, but I guess that is acceptable to 
you if you are consistent.


Alternatively, just name whatever is set as the default 100%?

Daniel


And in order to not confuse users about different percentages, we would 
call the "Default zoom %" just "Font scaling %" or so. It's already in 
the Preferences font section anyway between fonts and font sizes, so the 
user will make the connection easily.


So, the default zoom will always be 100% but the default font scaling 
can differ. This makes 10% increases round numbers.


This will also make setting the font scaling to something more 
reasonable appear less strange. For example, on macOS the default zoom 
is currently 150% while something closer to 152% is a better 
representation of the actual font size on screen. We can calculate the 
exact number from the DPI of the display and set it as system defaut and 
also provide a "Reset to system default" button next to the "Font 
scaling %".


If the approach sounds reasonable, and no one else wants the job, I can 
prepare a patch.


Daniel


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.4.0-beta2; zoom slider

2023-01-25 Thread Daniel

On 2023-01-25 18:00, Jürgen Spitzmüller wrote:

Am Mittwoch, dem 25.01.2023 um 17:02 +0100 schrieb Daniel:

I cannot reproduce with preview beta2. When clicking on +/-, I get
steps of 15%. Given that the (system) default is 150%,


Well, 15% is 10% of 150%.


I cannot get to 200% that way.


You need to set default zoom to either 100% or 200% to achieve that.


Also, once one has used the slider, one cannot get "round numbers"
anymore. I suggest to change it to how Word does it: the +
and - buttons always get you to "round numbers" with steps of 10%.
Then, for example, you can get fast to a certain point by using the
slider and then adjust to a round number with +/-.


This does not make sense to me, as you'd get a smaller range with 200%
default zoom that way. The larger the default, the larger the steps.
20% jumps make perfect sense to me on my setting with 200% default
zoom.

Word does not have the concept of an adjustable default zoom AFAIK.
They always have 100% as mean value. Same for Libre.


It might not make sense to you but now you know that it does to some 
people who are using not 100% or 200% zoom default and rather, say, 150% 
like the system default (at least on macOS).


Anyway, for system default, there is a solutions that seem compatible 
with your position:


Set the system default to 100% (and even better make the system default 
so that it matches the actual size of the font). There was a discussion 
about this on the list if I remember correctly.


That leaves people who are not happy with system default in the rain. 
You would lose round numbers that way, but I guess that is acceptable to 
you if you are consistent.


Alternatively, just name whatever is set as the default 100%?

Daniel


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.4.0-beta2; zoom slider

2023-01-25 Thread Jürgen Spitzmüller
Am Mittwoch, dem 25.01.2023 um 17:02 +0100 schrieb Daniel:
> I cannot reproduce with preview beta2. When clicking on +/-, I get
> steps of 15%. Given that the (system) default is 150%, 

Well, 15% is 10% of 150%.

> I cannot get to 200% that way. 

You need to set default zoom to either 100% or 200% to achieve that.

> Also, once one has used the slider, one cannot get "round numbers"
> anymore. I suggest to change it to how Word does it: the +
> and - buttons always get you to "round numbers" with steps of 10%.
> Then, for example, you can get fast to a certain point by using the
> slider and then adjust to a round number with +/-.

This does not make sense to me, as you'd get a smaller range with 200%
default zoom that way. The larger the default, the larger the steps.
20% jumps make perfect sense to me on my setting with 200% default
zoom.

Word does not have the concept of an adjustable default zoom AFAIK.
They always have 100% as mean value. Same for Libre.

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.4.0-beta2; zoom slider

2023-01-25 Thread Daniel

On 2023-01-25 07:53, Jürgen Spitzmüller wrote:

Am Mittwoch, dem 25.01.2023 um 09:43 +1300 schrieb Andrew Parsloe:

The urge to get a round number like 150 or 200 is strong, almost
compulsive, but fiddly with the slider requiring multiple attempts.


The zoom slider values are relative to the zoom you have set in
Preferences > Look & Feel > Screen Fonts. If you set that to 200% (or
100%), you'll get round numbers. Otherwise you get steps of 10% from
the default.


I cannot reproduce with preview beta2. When clicking on +/-, I get steps 
of 15%. Given that the (system) default is 150%, I cannot get to 200% 
that way. Also, once one has used the slider, one cannot get "round 
numbers" anymore. I suggest to change it to how Word does it: the + and 
- buttons always get you to "round numbers" with steps of 10%. Then, for 
example, you can get fast to a certain point by using the slider and 
then adjust to a round number with +/-.


Daniel


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.4.0-beta2; zoom slider

2023-01-24 Thread Jürgen Spitzmüller
Am Mittwoch, dem 25.01.2023 um 09:43 +1300 schrieb Andrew Parsloe:
> The urge to get a round number like 150 or 200 is strong, almost
> compulsive, but fiddly with the slider requiring multiple attempts.

The zoom slider values are relative to the zoom you have set in
Preferences > Look & Feel > Screen Fonts. If you set that to 200% (or
100%), you'll get round numbers. Otherwise you get steps of 10% from
the default.

Since default zoom might be arbitrary, it does not make sense to force
round numbers here. 

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


LyX 2.4.0-beta2; zoom slider

2023-01-24 Thread Andrew Parsloe
I've downloaded and installed LyX 2.4.0-beta2 on a windows 10 machine, 
replacing 2.4.0 alpha3. (I haven't seen an announcement for beta2. I had 
to go searching for it.) No problems installing and after a week's use 
only one niggle (see below), no big issues (e.g. preview works well) and 
there are a number of appreciated visible enhancements over alpha3, e.g. 
around icons and status bar.


The niggle: the zoom slider on the status bar is a trap for the unwary. 
Given a new toy of course one wants to play with it, slide it, click the 
little + and - buttons and see what the effect is and then try to get 
the zoom to a nice round number -- 200 in my case, and definitely not 
198 or 203 etc. The trouble is that each adjustment of zoom level 
triggers a recalculation of instant previews. I had a number of long 
documents open, two of them with a multitude of previews each. My 
fiddling soon had the cpu racing at 100% and LyX stalling as thousands 
of previews were being generated. Perhaps there needs to be a wait time 
after the last slider adjustment before preview generation is triggered? 
The urge to get a round number like 150 or 200 is strong, almost 
compulsive, but fiddly with the slider requiring multiple attempts.


Andrew


-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


argument "-style fusion" not working on beta2

2023-01-18 Thread Daniel
I used to be able to test the fusion style with LyX on macOS via the 
command:


open LyX-2.4dev.app --args -style fusion

That stopped working when using the development version beta2:

open LyX-2.4-beta2.app --args -style fusion

just shows the normal macOS style.

But when I download the binary of beta2 via ftp, the argument works again.

It is nice to be able to test another style when working with the qt UI. 
So, it would be great to get that functionality back.


Daniel


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: What version of fr.po in lyx-2.4.0-beta2 ?

2022-12-12 Thread Scott Kostyshak
On Mon, Dec 12, 2022 at 05:11:33PM +0100, Jean-Pierre Chrétien wrote:
> Dear devs
> 
> I compiled and ran fine beta2. The UserGuide copiles fine, but a bunch of 13
> messages "Negative width" on the terminal after compilation completion.

I'm not sure, but I think the "Negative width" messages are from your
PDF viewer. I've seen these as well, I think with Okular. Perhaps they
indicate a problem with the LaTeX code LyX generates, but I haven't
investigated.

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: What version of fr.po in lyx-2.4.0-beta2 ?

2022-12-12 Thread Pavel Sanda
On Mon, Dec 12, 2022 at 05:33:41PM +0100, JP wrote:
> >>Any clue ?
> >
> >The po strings were not remerged in master for some time (that's why you see
> >1 untr in master - but 4 untr in tarball, because all strings are remerged
> >by default when creating tarball).
> 
> OK, I did not remerge myself. But I am surprised to see so much différences,
> my last remerge was nov. 29th.

There is recent effort to cleanup bug tracker from bugs with 2.4 milestone,
so we can move on for stabilization. That's means lot of recent patches with
strings as well... 

Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: What version of fr.po in lyx-2.4.0-beta2 ?

2022-12-12 Thread JP



Le 12 décembre 2022 17:25:44 Pavel Sanda  a écrit :


On Mon, Dec 12, 2022 at 05:11:33PM +0100, Jean-Pierre Chrétien wrote:

Dear devs

I compiled and ran fine beta2. The UserGuide copiles fine, but a bunch of 13
messages "Negative width" on the terminal after compilation completion.

My question is about fr.po. While compiling, I saw that there were some
translations missing, a msgfmt check gives:

8051 translated messages, 16 fuzzy translations, 4 untranslated messages.

I do not understand this status, the current fr.po version has

8059 translated messages, 1 untranslated message.

I do not find in the history of fr.po a file having the data of the beta2 one.

Any clue ?


The po strings were not remerged in master for some time (that's why you see
1 untr in master - but 4 untr in tarball, because all strings are remerged
by default when creating tarball).


OK, I did not remerge myself. But I am surprised to see so much 
différences, my last remerge was nov. 29th.




I can do it for you later tonight.


Thanks, but I'm used to do it myself.

--
Jean-Pierre



-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: What version of fr.po in lyx-2.4.0-beta2 ?

2022-12-12 Thread Pavel Sanda
On Mon, Dec 12, 2022 at 05:11:33PM +0100, Jean-Pierre Chrétien wrote:
> Dear devs
> 
> I compiled and ran fine beta2. The UserGuide copiles fine, but a bunch of 13
> messages "Negative width" on the terminal after compilation completion.
> 
> My question is about fr.po. While compiling, I saw that there were some
> translations missing, a msgfmt check gives:
> 
> 8051 translated messages, 16 fuzzy translations, 4 untranslated messages.
> 
> I do not understand this status, the current fr.po version has
> 
> 8059 translated messages, 1 untranslated message.
> 
> I do not find in the history of fr.po a file having the data of the beta2 one.
> 
> Any clue ?

The po strings were not remerged in master for some time (that's why you see
1 untr in master - but 4 untr in tarball, because all strings are remerged
by default when creating tarball).

I can do it for you later tonight.

Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


What version of fr.po in lyx-2.4.0-beta2 ?

2022-12-12 Thread Jean-Pierre Chrétien

Dear devs

I compiled and ran fine beta2. The UserGuide copiles fine, but a bunch of 13 
messages "Negative width" on the terminal after compilation completion.


My question is about fr.po. While compiling, I saw that there were some 
translations missing, a msgfmt check gives:


8051 translated messages, 16 fuzzy translations, 4 untranslated messages.

I do not understand this status, the current fr.po version has

8059 translated messages, 1 untranslated message.

I do not find in the history of fr.po a file having the data of the beta2 one.

Any clue ?

--
Jean-Pierre


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Scott Kostyshak
On Mon, Apr 11, 2016 at 10:04:38PM +0100, Guillaume Munch wrote:
> Le 11/04/2016 21:48, Andrew Parsloe a écrit :
> >Jean-Marc earlier suggested that I make a trac ticket. Time zones have
> >obviously got in the way. Is a ticket still needed?
> >
> 
> I don't think so. Thanks for the report, I know I would have suffered from
> that bug at some point.

+1 thanks to both of you.

Scott


signature.asc
Description: PGP signature


Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Guillaume Munch

Le 11/04/2016 21:48, Andrew Parsloe a écrit :

Jean-Marc earlier suggested that I make a trac ticket. Time zones have
obviously got in the way. Is a ticket still needed?



I don't think so. Thanks for the report, I know I would have suffered 
from that bug at some point.


Guillaume




Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Andrew Parsloe


On 12/04/2016 8:17 a.m., Guillaume Munch wrote:

Le 11/04/2016 20:53, Scott Kostyshak a écrit :

On Mon, Apr 11, 2016 at 08:27:42PM +0100, Guillaume Munch wrote:

Le 11/04/2016 20:10, Richard Heck a écrit :
Again, why stripping "Flex:" off the beginning of name_? This is 
not

how it is done before the regression. Or did I miss something?


name_ wouldn't have contained "Flex:". It's there because
InsetLayout::name() includes it.



I am not sure that you understood my question. Are you making the
assumption that nobody ever wrote Flex:Flex: just to spare an "else"
branch?


This would be a bad idea, but it saves a few cycles to do "else if"
anyway, so it's fine.





Also I think it is safer to replace support::token with 
support::split.


Actually, it would be easier just to use substr(5). We know what 
we're

removing.



Sure, or whatever equivalent function. I can confirm that this gives
another regression, whereby

\begin_inset Flex x:y


>from 2.1.4 will get replaced by


\begin_inset Flex x

in 2.2 upon saving. In particular when the layout Flex:x:y is defined
and Flex:x is not (or to something entirely different). This 
should be

patched as well IMO.


I'm not sure I see why this is---or which version of which patch is 
causing

it---but I'm prepared to believe it.


Anytime support::token is used.



To summarise, I think the best solution in the long run is 
Jean-Marc's
but with these two issues above being corrected. In the short term 
it is
safer to go with my patch, which is essentially Richard's "safe" 
patch

plus these two issues corrected. Let me know what you think.


That's fine with me.


Waiting for +1.


Go ahead. Thanks for the quick action on this.



Done
Jean-Marc earlier suggested that I make a trac ticket. Time zones have 
obviously got in the way. Is a ticket still needed?


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Guillaume Munch

Le 11/04/2016 20:53, Scott Kostyshak a écrit :

On Mon, Apr 11, 2016 at 08:27:42PM +0100, Guillaume Munch wrote:

Le 11/04/2016 20:10, Richard Heck a écrit :

Again, why stripping "Flex:" off the beginning of name_? This is not
how it is done before the regression. Or did I miss something?


name_ wouldn't have contained "Flex:". It's there because
InsetLayout::name() includes it.



I am not sure that you understood my question. Are you making the
assumption that nobody ever wrote Flex:Flex: just to spare an "else"
branch?


This would be a bad idea, but it saves a few cycles to do "else if"
anyway, so it's fine.






Also I think it is safer to replace support::token with support::split.


Actually, it would be easier just to use substr(5). We know what we're
removing.



Sure, or whatever equivalent function. I can confirm that this gives
another regression, whereby

\begin_inset Flex x:y


>from 2.1.4 will get replaced by


\begin_inset Flex x

in 2.2 upon saving. In particular when the layout Flex:x:y is defined
and Flex:x is not (or to something entirely different). This should be
patched as well IMO.


I'm not sure I see why this is---or which version of which patch is causing
it---but I'm prepared to believe it.


Anytime support::token is used.




To summarise, I think the best solution in the long run is Jean-Marc's
but with these two issues above being corrected. In the short term it is
safer to go with my patch, which is essentially Richard's "safe" patch
plus these two issues corrected. Let me know what you think.


That's fine with me.


Waiting for +1.


Go ahead. Thanks for the quick action on this.



Done




Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Scott Kostyshak
On Mon, Apr 11, 2016 at 08:27:42PM +0100, Guillaume Munch wrote:
> Le 11/04/2016 20:10, Richard Heck a écrit :
> Again, why stripping "Flex:" off the beginning of name_? This is not
> how it is done before the regression. Or did I miss something?
> >>>
> >>>name_ wouldn't have contained "Flex:". It's there because
> >>>InsetLayout::name() includes it.
> >>
> >>
> >>I am not sure that you understood my question. Are you making the
> >>assumption that nobody ever wrote Flex:Flex: just to spare an "else"
> >>branch?
> >
> >This would be a bad idea, but it saves a few cycles to do "else if"
> >anyway, so it's fine.
> >
> >>
> >>>
> Also I think it is safer to replace support::token with support::split.
> >>>
> >>>Actually, it would be easier just to use substr(5). We know what we're
> >>>removing.
> >>>
> >>
> >>Sure, or whatever equivalent function. I can confirm that this gives
> >>another regression, whereby
> >>
> >>\begin_inset Flex x:y
> >>
> >>from 2.1.4 will get replaced by
> >>
> >>\begin_inset Flex x
> >>
> >>in 2.2 upon saving. In particular when the layout Flex:x:y is defined
> >>and Flex:x is not (or to something entirely different). This should be
> >>patched as well IMO.
> >
> >I'm not sure I see why this is---or which version of which patch is causing
> >it---but I'm prepared to believe it.
> 
> Anytime support::token is used.
> 
> >
> >>To summarise, I think the best solution in the long run is Jean-Marc's
> >>but with these two issues above being corrected. In the short term it is
> >>safer to go with my patch, which is essentially Richard's "safe" patch
> >>plus these two issues corrected. Let me know what you think.
> >
> >That's fine with me.
> 
> Waiting for +1.

Go ahead. Thanks for the quick action on this.

Scott


signature.asc
Description: PGP signature


Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Guillaume Munch

Le 11/04/2016 20:10, Richard Heck a écrit :

Again, why stripping "Flex:" off the beginning of name_? This is not
how it is done before the regression. Or did I miss something?


name_ wouldn't have contained "Flex:". It's there because
InsetLayout::name() includes it.



I am not sure that you understood my question. Are you making the
assumption that nobody ever wrote Flex:Flex: just to spare an "else"
branch?


This would be a bad idea, but it saves a few cycles to do "else if"
anyway, so it's fine.






Also I think it is safer to replace support::token with support::split.


Actually, it would be easier just to use substr(5). We know what we're
removing.



Sure, or whatever equivalent function. I can confirm that this gives
another regression, whereby

\begin_inset Flex x:y

from 2.1.4 will get replaced by

\begin_inset Flex x

in 2.2 upon saving. In particular when the layout Flex:x:y is defined
and Flex:x is not (or to something entirely different). This should be
patched as well IMO.


I'm not sure I see why this is---or which version of which patch is causing
it---but I'm prepared to believe it.


Anytime support::token is used.




To summarise, I think the best solution in the long run is Jean-Marc's
but with these two issues above being corrected. In the short term it is
safer to go with my patch, which is essentially Richard's "safe" patch
plus these two issues corrected. Let me know what you think.


That's fine with me.


Waiting for +1.


Guillaume



Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Richard Heck
On 04/11/2016 02:25 PM, Guillaume Munch wrote:
> Le 11/04/2016 19:02, Richard Heck a écrit :
>> On 04/11/2016 12:57 PM, Guillaume Munch wrote:
>>> Le 11/04/2016 17:28, Jean-Marc Lasgouttes a écrit :
 Le 11/04/2016 17:53, Scott Kostyshak a écrit :
> I can confirm that I do not see the problem in 2.1.4 and I do see it
> with 2.2.0dev.
>
> I suppose this is a dataloss bug, and that there is a rule of not
> going
> to an RC with a known dataloss bug that is a regression. Although the
> bug only shows in a specific case and has gone unnoticed for more
> than a
> year in 2.2.0dev, it is pretty easy to trigger and it would not be
> surprising at all that a user comes across it. I would like to hear
> from
> Jürgen to see if a quick fix can be made before proceeding with rc1.

 Here is a very lightly tested patch. It looks OK to me, but this
 kind of
 changes has potential to do more harm than good. So if we do not
 have 1/
 good user testing and 2/ a +1 from someone who understands this
 code, I
 am not sure we want it in rc1. And rc1 really needs to happen soon
 IMO.

 JMarc




 0001-Fix-saving-of-unknown-flex-insets.patch


   From 86774cd7123cbb34c235bdcab9d11eb09c8fc6b8 Mon Sep 17 00:00:00
 2001
 From: Jean-Marc Lasgouttes
 Date: Mon, 11 Apr 2016 18:16:05 +0200
 Subject: [PATCH] Fix saving of unknown flex insets

 After commit cfeddb9293b, flex insets without a proper inset layout
 (for example because a module has been removed) are saved with name
 "undefined". This can result in a data loss.

 Introduce a new method InsetFlex::hasLayout that uses the same logic
 as getLayout, but only returns a bool. Use this to decide when
 outputting the raw inset name is a good idea.
 ---
src/insets/InsetFlex.cpp |   18 ++
src/insets/InsetFlex.h   |2 ++
2 files changed, 16 insertions(+), 4 deletions(-)

 diff --git a/src/insets/InsetFlex.cpp b/src/insets/InsetFlex.cpp
 index 44b9b03..edff6cb 100644
 --- a/src/insets/InsetFlex.cpp
 +++ b/src/insets/InsetFlex.cpp
 @@ -45,6 +45,18 @@ InsetFlex::InsetFlex(InsetFlex const & in)


// special code for InsetFlex when there is not the explicit Flex::
 prefix
 +bool InsetFlex::hasLayout() const
 +{
 +if (!buffer_)
 +return false;
 +
 +DocumentClass const & dc = buffer().params().documentClass();
 +return dc.hasInsetLayout(from_utf8(name_))
 +|| dc.hasInsetLayout(from_utf8("Flex:" + name_));
 +}
 +
 +
 +// special code for InsetFlex when there is not the explicit Flex::
 prefix
InsetLayout const & InsetFlex::getLayout() const
{
if (!buffer_)
 @@ -68,13 +80,11 @@ InsetLayout::InsetDecoration
 InsetFlex::decoration() const
void InsetFlex::write(ostream & os) const
{
os << "Flex ";
 -InsetLayout const & il = getLayout();
if (name_.empty())
os << "undefined";
else {
 -// use il.name(), since this resolves obsoleted
 -// InsetLayout names
 -string name = to_utf8(il.name());
 +// Using InsetLayout::name() resolves obsoleted InsetLayout
 names
 +string name  = hasLayout() ? to_utf8(getLayout().name()) :
 name_;
// Remove the "Flex:" prefix, if it is present
if (support::prefixIs(name, "Flex:"))
name = support::token(name, ':', 1);
>>>
>>>
>>> Again, why stripping "Flex:" off the beginning of name_? This is not
>>> how it is done before the regression. Or did I miss something?
>>
>> name_ wouldn't have contained "Flex:". It's there because
>> InsetLayout::name() includes it.
>
>
> I am not sure that you understood my question. Are you making the
> assumption that nobody ever wrote Flex:Flex: just to spare an "else"
> branch?

This would be a bad idea, but it saves a few cycles to do "else if"
anyway, so it's fine.

>
>>
>>> Also I think it is safer to replace support::token with support::split.
>>
>> Actually, it would be easier just to use substr(5). We know what we're
>> removing.
>>
>
> Sure, or whatever equivalent function. I can confirm that this gives
> another regression, whereby
>
> \begin_inset Flex x:y
>
> from 2.1.4 will get replaced by
>
> \begin_inset Flex x
>
> in 2.2 upon saving. In particular when the layout Flex:x:y is defined
> and Flex:x is not (or to something entirely different). This should be
> patched as well IMO.

I'm not sure I see why this is---or which version of which patch is causing
it---but I'm prepared to believe it.

> To summarise, I think the best solution in the long run is Jean-Marc's
> but with these two issues above being corrected. In the short term it is
> 

Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Guillaume Munch

Le 11/04/2016 19:02, Richard Heck a écrit :

On 04/11/2016 12:57 PM, Guillaume Munch wrote:

Le 11/04/2016 17:28, Jean-Marc Lasgouttes a écrit :

Le 11/04/2016 17:53, Scott Kostyshak a écrit :

I can confirm that I do not see the problem in 2.1.4 and I do see it
with 2.2.0dev.

I suppose this is a dataloss bug, and that there is a rule of not going
to an RC with a known dataloss bug that is a regression. Although the
bug only shows in a specific case and has gone unnoticed for more
than a
year in 2.2.0dev, it is pretty easy to trigger and it would not be
surprising at all that a user comes across it. I would like to hear
from
Jürgen to see if a quick fix can be made before proceeding with rc1.


Here is a very lightly tested patch. It looks OK to me, but this kind of
changes has potential to do more harm than good. So if we do not have 1/
good user testing and 2/ a +1 from someone who understands this code, I
am not sure we want it in rc1. And rc1 really needs to happen soon IMO.

JMarc




0001-Fix-saving-of-unknown-flex-insets.patch


  From 86774cd7123cbb34c235bdcab9d11eb09c8fc6b8 Mon Sep 17 00:00:00 2001
From: Jean-Marc Lasgouttes
Date: Mon, 11 Apr 2016 18:16:05 +0200
Subject: [PATCH] Fix saving of unknown flex insets

After commit cfeddb9293b, flex insets without a proper inset layout
(for example because a module has been removed) are saved with name
"undefined". This can result in a data loss.

Introduce a new method InsetFlex::hasLayout that uses the same logic
as getLayout, but only returns a bool. Use this to decide when
outputting the raw inset name is a good idea.
---
   src/insets/InsetFlex.cpp |   18 ++
   src/insets/InsetFlex.h   |2 ++
   2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/src/insets/InsetFlex.cpp b/src/insets/InsetFlex.cpp
index 44b9b03..edff6cb 100644
--- a/src/insets/InsetFlex.cpp
+++ b/src/insets/InsetFlex.cpp
@@ -45,6 +45,18 @@ InsetFlex::InsetFlex(InsetFlex const & in)


   // special code for InsetFlex when there is not the explicit Flex::
prefix
+bool InsetFlex::hasLayout() const
+{
+if (!buffer_)
+return false;
+
+DocumentClass const & dc = buffer().params().documentClass();
+return dc.hasInsetLayout(from_utf8(name_))
+|| dc.hasInsetLayout(from_utf8("Flex:" + name_));
+}
+
+
+// special code for InsetFlex when there is not the explicit Flex::
prefix
   InsetLayout const & InsetFlex::getLayout() const
   {
   if (!buffer_)
@@ -68,13 +80,11 @@ InsetLayout::InsetDecoration
InsetFlex::decoration() const
   void InsetFlex::write(ostream & os) const
   {
   os << "Flex ";
-InsetLayout const & il = getLayout();
   if (name_.empty())
   os << "undefined";
   else {
-// use il.name(), since this resolves obsoleted
-// InsetLayout names
-string name = to_utf8(il.name());
+// Using InsetLayout::name() resolves obsoleted InsetLayout
names
+string name  = hasLayout() ? to_utf8(getLayout().name()) :
name_;
   // Remove the "Flex:" prefix, if it is present
   if (support::prefixIs(name, "Flex:"))
   name = support::token(name, ':', 1);



Again, why stripping "Flex:" off the beginning of name_? This is not
how it is done before the regression. Or did I miss something?


name_ wouldn't have contained "Flex:". It's there because
InsetLayout::name() includes it.



I am not sure that you understood my question. Are you making the
assumption that nobody ever wrote Flex:Flex: just to spare an "else" branch?





Also I think it is safer to replace support::token with support::split.


Actually, it would be easier just to use substr(5). We know what we're
removing.



Sure, or whatever equivalent function. I can confirm that this gives
another regression, whereby

\begin_inset Flex x:y

from 2.1.4 will get replaced by

\begin_inset Flex x

in 2.2 upon saving. In particular when the layout Flex:x:y is defined
and Flex:x is not (or to something entirely different). This should be
patched as well IMO.


To summarise, I think the best solution in the long run is Jean-Marc's
but with these two issues above being corrected. In the short term it is
safer to go with my patch, which is essentially Richard's "safe" patch
plus these two issues corrected. Let me know what you think.


Guillaume



Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Richard Heck
On 04/11/2016 12:57 PM, Guillaume Munch wrote:
> Le 11/04/2016 17:28, Jean-Marc Lasgouttes a écrit :
>> Le 11/04/2016 17:53, Scott Kostyshak a écrit :
>>> I can confirm that I do not see the problem in 2.1.4 and I do see it
>>> with 2.2.0dev.
>>>
>>> I suppose this is a dataloss bug, and that there is a rule of not going
>>> to an RC with a known dataloss bug that is a regression. Although the
>>> bug only shows in a specific case and has gone unnoticed for more
>>> than a
>>> year in 2.2.0dev, it is pretty easy to trigger and it would not be
>>> surprising at all that a user comes across it. I would like to hear
>>> from
>>> Jürgen to see if a quick fix can be made before proceeding with rc1.
>>
>> Here is a very lightly tested patch. It looks OK to me, but this kind of
>> changes has potential to do more harm than good. So if we do not have 1/
>> good user testing and 2/ a +1 from someone who understands this code, I
>> am not sure we want it in rc1. And rc1 really needs to happen soon IMO.
>>
>> JMarc
>>
>>
>>
>>
>> 0001-Fix-saving-of-unknown-flex-insets.patch
>>
>>
>>  From 86774cd7123cbb34c235bdcab9d11eb09c8fc6b8 Mon Sep 17 00:00:00 2001
>> From: Jean-Marc Lasgouttes
>> Date: Mon, 11 Apr 2016 18:16:05 +0200
>> Subject: [PATCH] Fix saving of unknown flex insets
>>
>> After commit cfeddb9293b, flex insets without a proper inset layout
>> (for example because a module has been removed) are saved with name
>> "undefined". This can result in a data loss.
>>
>> Introduce a new method InsetFlex::hasLayout that uses the same logic
>> as getLayout, but only returns a bool. Use this to decide when
>> outputting the raw inset name is a good idea.
>> ---
>>   src/insets/InsetFlex.cpp |   18 ++
>>   src/insets/InsetFlex.h   |2 ++
>>   2 files changed, 16 insertions(+), 4 deletions(-)
>>
>> diff --git a/src/insets/InsetFlex.cpp b/src/insets/InsetFlex.cpp
>> index 44b9b03..edff6cb 100644
>> --- a/src/insets/InsetFlex.cpp
>> +++ b/src/insets/InsetFlex.cpp
>> @@ -45,6 +45,18 @@ InsetFlex::InsetFlex(InsetFlex const & in)
>>
>>
>>   // special code for InsetFlex when there is not the explicit Flex::
>> prefix
>> +bool InsetFlex::hasLayout() const
>> +{
>> +if (!buffer_)
>> +return false;
>> +
>> +DocumentClass const & dc = buffer().params().documentClass();
>> +return dc.hasInsetLayout(from_utf8(name_))
>> +|| dc.hasInsetLayout(from_utf8("Flex:" + name_));
>> +}
>> +
>> +
>> +// special code for InsetFlex when there is not the explicit Flex::
>> prefix
>>   InsetLayout const & InsetFlex::getLayout() const
>>   {
>>   if (!buffer_)
>> @@ -68,13 +80,11 @@ InsetLayout::InsetDecoration
>> InsetFlex::decoration() const
>>   void InsetFlex::write(ostream & os) const
>>   {
>>   os << "Flex ";
>> -InsetLayout const & il = getLayout();
>>   if (name_.empty())
>>   os << "undefined";
>>   else {
>> -// use il.name(), since this resolves obsoleted
>> -// InsetLayout names
>> -string name = to_utf8(il.name());
>> +// Using InsetLayout::name() resolves obsoleted InsetLayout
>> names
>> +string name  = hasLayout() ? to_utf8(getLayout().name()) :
>> name_;
>>   // Remove the "Flex:" prefix, if it is present
>>   if (support::prefixIs(name, "Flex:"))
>>   name = support::token(name, ':', 1);
>
>
> Again, why stripping "Flex:" off the beginning of name_? This is not
> how it is done before the regression. Or did I miss something?

name_ wouldn't have contained "Flex:". It's there because
InsetLayout::name() includes it.

> Also I think it is safer to replace support::token with support::split.

Actually, it would be easier just to use substr(5). We know what we're
removing.

Richard



Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Guillaume Munch

Le 11/04/2016 17:28, Jean-Marc Lasgouttes a écrit :

Le 11/04/2016 17:53, Scott Kostyshak a écrit :

I can confirm that I do not see the problem in 2.1.4 and I do see it
with 2.2.0dev.

I suppose this is a dataloss bug, and that there is a rule of not going
to an RC with a known dataloss bug that is a regression. Although the
bug only shows in a specific case and has gone unnoticed for more than a
year in 2.2.0dev, it is pretty easy to trigger and it would not be
surprising at all that a user comes across it. I would like to hear from
Jürgen to see if a quick fix can be made before proceeding with rc1.


Here is a very lightly tested patch. It looks OK to me, but this kind of
changes has potential to do more harm than good. So if we do not have 1/
good user testing and 2/ a +1 from someone who understands this code, I
am not sure we want it in rc1. And rc1 really needs to happen soon IMO.

JMarc




0001-Fix-saving-of-unknown-flex-insets.patch


 From 86774cd7123cbb34c235bdcab9d11eb09c8fc6b8 Mon Sep 17 00:00:00 2001
From: Jean-Marc Lasgouttes
Date: Mon, 11 Apr 2016 18:16:05 +0200
Subject: [PATCH] Fix saving of unknown flex insets

After commit cfeddb9293b, flex insets without a proper inset layout (for example because 
a module has been removed) are saved with name "undefined". This can result in 
a data loss.

Introduce a new method InsetFlex::hasLayout that uses the same logic as 
getLayout, but only returns a bool. Use this to decide when outputting the raw 
inset name is a good idea.
---
  src/insets/InsetFlex.cpp |   18 ++
  src/insets/InsetFlex.h   |2 ++
  2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/src/insets/InsetFlex.cpp b/src/insets/InsetFlex.cpp
index 44b9b03..edff6cb 100644
--- a/src/insets/InsetFlex.cpp
+++ b/src/insets/InsetFlex.cpp
@@ -45,6 +45,18 @@ InsetFlex::InsetFlex(InsetFlex const & in)


  // special code for InsetFlex when there is not the explicit Flex:: prefix
+bool InsetFlex::hasLayout() const
+{
+   if (!buffer_)
+   return false;
+
+   DocumentClass const & dc = buffer().params().documentClass();
+   return dc.hasInsetLayout(from_utf8(name_))
+   || dc.hasInsetLayout(from_utf8("Flex:" + name_));
+}
+
+
+// special code for InsetFlex when there is not the explicit Flex:: prefix
  InsetLayout const & InsetFlex::getLayout() const
  {
if (!buffer_)
@@ -68,13 +80,11 @@ InsetLayout::InsetDecoration InsetFlex::decoration() const
  void InsetFlex::write(ostream & os) const
  {
os << "Flex ";
-   InsetLayout const & il = getLayout();
if (name_.empty())
os << "undefined";
else {
-   // use il.name(), since this resolves obsoleted
-   // InsetLayout names
-   string name = to_utf8(il.name());
+   // Using InsetLayout::name() resolves obsoleted InsetLayout 
names
+   string name  = hasLayout() ? to_utf8(getLayout().name()) : 
name_;
// Remove the "Flex:" prefix, if it is present
if (support::prefixIs(name, "Flex:"))
name = support::token(name, ':', 1);



Again, why stripping "Flex:" off the beginning of name_? This is not how 
it is done before the regression. Or did I miss something?


Also I think it is safer to replace support::token with support::split.

I like your patch which is more logical, and I also agree that we might 
want something safer for 2.2.



Guillaume



Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Guillaume Munch

Le 11/04/2016 17:39, Jean-Marc Lasgouttes a écrit :

Le 11/04/2016 18:33, Richard Heck a écrit :

Here is a very lightly tested patch. It looks OK to me, but this kind
of changes has potential to do more harm than good. So if we do not
have 1/ good user testing and 2/ a +1 from someone who understands
this code, I am not sure we want it in rc1. And rc1 really needs to
happen soon IMO.


This is exactly what I was going to do. A quicker and dirtier and very
safe (IMO) fix is:

@@ -75,6 +75,8 @@ void InsetFlex::write(ostream & os) const
 // use il.name(), since this resolves obsoleted
 // InsetLayout names
 string name = to_utf8(il.name());
+  if (name == from_ascii("undefined"))
+  name == name_;
 // Remove the "Flex:" prefix, if it is present
 if (support::prefixIs(name, "Flex:"))
 name = support::token(name, ':', 1);


Definitely not code that we would want to keep, IMO, but maybe safer for
rc1, indeed.




This is also my understanding (provided we take my version). It makes a
bit more sense if we clarify that testing "undefined" I just a way to
ensure that the resolved layout is not plain_insetlayout_, otherwise we
should assume that no layout has been found.




Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Guillaume Munch

Le 11/04/2016 17:33, Richard Heck a écrit :


This is exactly what I was going to do. A quicker and dirtier and very
safe (IMO) fix is:

@@ -75,6 +75,8 @@ void InsetFlex::write(ostream & os) const
 // use il.name(), since this resolves obsoleted
 // InsetLayout names
 string name = to_utf8(il.name());
+  if (name == from_ascii("undefined"))
+  name == name_;
 // Remove the "Flex:" prefix, if it is present
 if (support::prefixIs(name, "Flex:"))
 name = support::token(name, ':', 1);



The idea in my patch is similar to Richard's, but I would not go with 
this particular one. Indeed, in the older code the "Flex:" prefix was 
not removed, so it should be "else if" before support::prefixIs.





Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Guillaume Munch

Le 11/04/2016 17:33, Richard Heck a écrit :

On 04/11/2016 12:28 PM, Jean-Marc Lasgouttes wrote:

Le 11/04/2016 17:53, Scott Kostyshak a écrit :

I can confirm that I do not see the problem in 2.1.4 and I do see it
with 2.2.0dev.

I suppose this is a dataloss bug, and that there is a rule of not going
to an RC with a known dataloss bug that is a regression. Although the
bug only shows in a specific case and has gone unnoticed for more than a
year in 2.2.0dev, it is pretty easy to trigger and it would not be
surprising at all that a user comes across it. I would like to hear from
Jürgen to see if a quick fix can be made before proceeding with rc1.


Here is a very lightly tested patch. It looks OK to me, but this kind
of changes has potential to do more harm than good. So if we do not
have 1/ good user testing and 2/ a +1 from someone who understands
this code, I am not sure we want it in rc1. And rc1 really needs to
happen soon IMO.


This is exactly what I was going to do. A quicker and dirtier and very
safe (IMO) fix is:

@@ -75,6 +75,8 @@ void InsetFlex::write(ostream & os) const
 // use il.name(), since this resolves obsoleted
 // InsetLayout names
 string name = to_utf8(il.name());
+  if (name == from_ascii("undefined"))
+  name == name_;
 // Remove the "Flex:" prefix, if it is present
 if (support::prefixIs(name, "Flex:"))
 name = support::token(name, ':', 1);




You both beat me to it! Here's my take on it (with some cleanup and 
replacing token with split).


Now on to commenting your patches.

>From 22f3371127079a4cb14c3ec8cb2edc3398149f66 Mon Sep 17 00:00:00 2001
From: Guillaume Munch 
Date: Mon, 11 Apr 2016 17:33:14 +0100
Subject: [PATCH] Fix dataloss when flex inset undefined.

Regression at cfeddb929. If a flex inset is not defined upon saving (e.g. if a
module has been deleted) then its name became lost. I introduce a check of
whether the name resolution intorduced with the ObsoletedBy tag comes back
empty-handed (which it will if the layout is not defined). In this case we do as
was done before cfeddb929.

In addition I am a bit worried by the use of support::token to strip "Flex:" off
the beginning of the name, which looks incompatible to me with names containing
":". I replace it with support::split.
---
 src/insets/InsetFlex.cpp | 25 +++--
 1 file changed, 15 insertions(+), 10 deletions(-)

diff --git a/src/insets/InsetFlex.cpp b/src/insets/InsetFlex.cpp
index 44b9b03..0b14973 100644
--- a/src/insets/InsetFlex.cpp
+++ b/src/insets/InsetFlex.cpp
@@ -68,19 +68,24 @@ InsetLayout::InsetDecoration InsetFlex::decoration() const
 void InsetFlex::write(ostream & os) const
 {
 	os << "Flex ";
-	InsetLayout const & il = getLayout();
+	string name;
 	if (name_.empty())
-		os << "undefined";
+		name = "undefined";
 	else {
-		// use il.name(), since this resolves obsoleted
-		// InsetLayout names
-		string name = to_utf8(il.name());
-		// Remove the "Flex:" prefix, if it is present
-		if (support::prefixIs(name, "Flex:"))
-			name = support::token(name, ':', 1);
-		os << name;
+		InsetLayout const & il = getLayout();
+		// use il.name(), since this resolves obsoleted InsetLayout names
+		if (il.name() == "undefined")
+			// This is the name of the plain_insetlayout_. We assume that the
+			// name resolution has failed.
+			name = name_;
+		else {
+			name = to_utf8(il.name());
+			// Remove the "Flex:" prefix, if it is present
+			if (support::prefixIs(name, "Flex:"))
+name = support::split(name, ':');
+		}
 	}
-	os << "\n";
+	os << name << "\n";
 	InsetCollapsable::write(os);
 }
 
-- 
2.1.4



Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Jean-Marc Lasgouttes

Le 11/04/2016 18:33, Richard Heck a écrit :

Here is a very lightly tested patch. It looks OK to me, but this kind
of changes has potential to do more harm than good. So if we do not
have 1/ good user testing and 2/ a +1 from someone who understands
this code, I am not sure we want it in rc1. And rc1 really needs to
happen soon IMO.


This is exactly what I was going to do. A quicker and dirtier and very
safe (IMO) fix is:

@@ -75,6 +75,8 @@ void InsetFlex::write(ostream & os) const
 // use il.name(), since this resolves obsoleted
 // InsetLayout names
 string name = to_utf8(il.name());
+  if (name == from_ascii("undefined"))
+  name == name_;
 // Remove the "Flex:" prefix, if it is present
 if (support::prefixIs(name, "Flex:"))
 name = support::token(name, ':', 1);


Definitely not code that we would want to keep, IMO, but maybe safer for 
rc1, indeed.


JMarc



Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Richard Heck
On 04/11/2016 12:28 PM, Jean-Marc Lasgouttes wrote:
> Le 11/04/2016 17:53, Scott Kostyshak a écrit :
>> I can confirm that I do not see the problem in 2.1.4 and I do see it
>> with 2.2.0dev.
>>
>> I suppose this is a dataloss bug, and that there is a rule of not going
>> to an RC with a known dataloss bug that is a regression. Although the
>> bug only shows in a specific case and has gone unnoticed for more than a
>> year in 2.2.0dev, it is pretty easy to trigger and it would not be
>> surprising at all that a user comes across it. I would like to hear from
>> Jürgen to see if a quick fix can be made before proceeding with rc1.
>
> Here is a very lightly tested patch. It looks OK to me, but this kind
> of changes has potential to do more harm than good. So if we do not
> have 1/ good user testing and 2/ a +1 from someone who understands
> this code, I am not sure we want it in rc1. And rc1 really needs to
> happen soon IMO.

This is exactly what I was going to do. A quicker and dirtier and very
safe (IMO) fix is:

@@ -75,6 +75,8 @@ void InsetFlex::write(ostream & os) const
// use il.name(), since this resolves obsoleted
// InsetLayout names
string name = to_utf8(il.name());
+  if (name == from_ascii("undefined"))
+  name == name_;
// Remove the "Flex:" prefix, if it is present
if (support::prefixIs(name, "Flex:"))
name = support::token(name, ':', 1);

Richard



Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Jean-Marc Lasgouttes

Le 11/04/2016 17:53, Scott Kostyshak a écrit :

I can confirm that I do not see the problem in 2.1.4 and I do see it
with 2.2.0dev.

I suppose this is a dataloss bug, and that there is a rule of not going
to an RC with a known dataloss bug that is a regression. Although the
bug only shows in a specific case and has gone unnoticed for more than a
year in 2.2.0dev, it is pretty easy to trigger and it would not be
surprising at all that a user comes across it. I would like to hear from
Jürgen to see if a quick fix can be made before proceeding with rc1.


Here is a very lightly tested patch. It looks OK to me, but this kind of 
changes has potential to do more harm than good. So if we do not have 1/ 
good user testing and 2/ a +1 from someone who understands this code, I 
am not sure we want it in rc1. And rc1 really needs to happen soon IMO.


JMarc



>From 86774cd7123cbb34c235bdcab9d11eb09c8fc6b8 Mon Sep 17 00:00:00 2001
From: Jean-Marc Lasgouttes 
Date: Mon, 11 Apr 2016 18:16:05 +0200
Subject: [PATCH] Fix saving of unknown flex insets

After commit cfeddb9293b, flex insets without a proper inset layout (for example because a module has been removed) are saved with name "undefined". This can result in a data loss.

Introduce a new method InsetFlex::hasLayout that uses the same logic as getLayout, but only returns a bool. Use this to decide when outputting the raw inset name is a good idea.
---
 src/insets/InsetFlex.cpp |   18 ++
 src/insets/InsetFlex.h   |2 ++
 2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/src/insets/InsetFlex.cpp b/src/insets/InsetFlex.cpp
index 44b9b03..edff6cb 100644
--- a/src/insets/InsetFlex.cpp
+++ b/src/insets/InsetFlex.cpp
@@ -45,6 +45,18 @@ InsetFlex::InsetFlex(InsetFlex const & in)
 
 
 // special code for InsetFlex when there is not the explicit Flex:: prefix
+bool InsetFlex::hasLayout() const
+{
+	if (!buffer_)
+		return false;
+
+	DocumentClass const & dc = buffer().params().documentClass();
+	return dc.hasInsetLayout(from_utf8(name_))
+		|| dc.hasInsetLayout(from_utf8("Flex:" + name_));
+}
+
+
+// special code for InsetFlex when there is not the explicit Flex:: prefix
 InsetLayout const & InsetFlex::getLayout() const
 {
 	if (!buffer_)
@@ -68,13 +80,11 @@ InsetLayout::InsetDecoration InsetFlex::decoration() const
 void InsetFlex::write(ostream & os) const
 {
 	os << "Flex ";
-	InsetLayout const & il = getLayout();
 	if (name_.empty())
 		os << "undefined";
 	else {
-		// use il.name(), since this resolves obsoleted
-		// InsetLayout names
-		string name = to_utf8(il.name());
+		// Using InsetLayout::name() resolves obsoleted InsetLayout names
+		string name  = hasLayout() ? to_utf8(getLayout().name()) : name_;
 		// Remove the "Flex:" prefix, if it is present
 		if (support::prefixIs(name, "Flex:"))
 			name = support::token(name, ':', 1);
diff --git a/src/insets/InsetFlex.h b/src/insets/InsetFlex.h
index 8277002..86f2f18 100644
--- a/src/insets/InsetFlex.h
+++ b/src/insets/InsetFlex.h
@@ -27,6 +27,8 @@ public:
 	///
 	docstring layoutName() const { return from_utf8("Flex:" + name_); }
 	///
+	bool hasLayout() const;
+	///
 	InsetLayout const & getLayout() const;
 	///
 	InsetCode lyxCode() const { return FLEX_CODE; }
-- 
1.7.9.5



Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Scott Kostyshak
On Mon, Apr 11, 2016 at 04:45:02PM +0100, Guillaume Munch wrote:
> Le 11/04/2016 12:36, Jean-Marc Lasgouttes a écrit :
> >Le 11/04/2016 07:27, Andrew Parsloe a écrit :
> >>Suppose a module defines flex insets moo and baa (the locale-dependent
> >>version of foo and bah in New Zealand), and these are used in a document
> >>to which the module has been added. If the module is now deleted from
> >>the document, the flex insets become undefined. If the document is saved
> >>then closed with undefined insets, the saved file will contain lines like
> >>
> >>\begin_inset Flex undefined
> >
> >Please open a new ticket. I think it is a consequence of
> >
> >commit cfeddb9293bb1e3b45fe2f118a6ce35e37bbebf3
> 
> 
> Which is confirmed by git bisect.

Thanks for checking.

> If I understand correctly, one can now lose data just by having a module
> not properly installed.

I understand the same. And we can imagine other ways of triggering it. A
user can mistakenly delete a module.

Scott


signature.asc
Description: PGP signature


Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Scott Kostyshak
On Mon, Apr 11, 2016 at 01:36:28PM +0200, Jean-Marc Lasgouttes wrote:
> Le 11/04/2016 07:27, Andrew Parsloe a écrit :
> >Suppose a module defines flex insets moo and baa (the locale-dependent
> >version of foo and bah in New Zealand), and these are used in a document
> >to which the module has been added. If the module is now deleted from
> >the document, the flex insets become undefined. If the document is saved
> >then closed with undefined insets, the saved file will contain lines like
> >
> >\begin_inset Flex undefined
> 
> Please open a new ticket.

Yes and mark it with milestone 2.2.0.

I can confirm that I do not see the problem in 2.1.4 and I do see it
with 2.2.0dev.

I suppose this is a dataloss bug, and that there is a rule of not going
to an RC with a known dataloss bug that is a regression. Although the
bug only shows in a specific case and has gone unnoticed for more than a
year in 2.2.0dev, it is pretty easy to trigger and it would not be
surprising at all that a user comes across it. I would like to hear from
Jürgen to see if a quick fix can be made before proceeding with rc1.

> I think it is a consequence of
> 
> commit cfeddb9293bb1e3b45fe2f118a6ce35e37bbebf3
> Author: Juergen Spitzmueller 
> Date:   Mon Dec 8 09:06:41 2014 +0100
> 
> Add ObsoletedBy tag to InsetLayout
> 
> Fixes: #9000.

Jürgen are you able to take a look?

Scott


signature.asc
Description: PGP signature


Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Jean-Marc Lasgouttes

Le 11/04/2016 17:45, Guillaume Munch a écrit :

Le 11/04/2016 12:36, Jean-Marc Lasgouttes a écrit :

Le 11/04/2016 07:27, Andrew Parsloe a écrit :

Suppose a module defines flex insets moo and baa (the locale-dependent
version of foo and bah in New Zealand), and these are used in a document
to which the module has been added. If the module is now deleted from
the document, the flex insets become undefined. If the document is saved
then closed with undefined insets, the saved file will contain lines
like

\begin_inset Flex undefined


Please open a new ticket. I think it is a consequence of

commit cfeddb9293bb1e3b45fe2f118a6ce35e37bbebf3



Which is confirmed by git bisect.

If I understand correctly, one can now lose data just by having a module
not properly installed.


Exactly. It should not be difficult to solve, but I am not sure of what 
the best solution is.


JMarc



Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Guillaume Munch

Le 11/04/2016 12:36, Jean-Marc Lasgouttes a écrit :

Le 11/04/2016 07:27, Andrew Parsloe a écrit :

Suppose a module defines flex insets moo and baa (the locale-dependent
version of foo and bah in New Zealand), and these are used in a document
to which the module has been added. If the module is now deleted from
the document, the flex insets become undefined. If the document is saved
then closed with undefined insets, the saved file will contain lines like

\begin_inset Flex undefined


Please open a new ticket. I think it is a consequence of

commit cfeddb9293bb1e3b45fe2f118a6ce35e37bbebf3



Which is confirmed by git bisect.

If I understand correctly, one can now lose data just by having a module
not properly installed.





Re: Regression in saving of flex insets in beta2?

2016-04-11 Thread Jean-Marc Lasgouttes

Le 11/04/2016 07:27, Andrew Parsloe a écrit :

Suppose a module defines flex insets moo and baa (the locale-dependent
version of foo and bah in New Zealand), and these are used in a document
to which the module has been added. If the module is now deleted from
the document, the flex insets become undefined. If the document is saved
then closed with undefined insets, the saved file will contain lines like

\begin_inset Flex undefined


Please open a new ticket. I think it is a consequence of

commit cfeddb9293bb1e3b45fe2f118a6ce35e37bbebf3
Author: Juergen Spitzmueller 
Date:   Mon Dec 8 09:06:41 2014 +0100

Add ObsoletedBy tag to InsetLayout

Fixes: #9000.


JMarc




Regression in saving of flex insets in beta2?

2016-04-10 Thread Andrew Parsloe
Suppose a module defines flex insets moo and baa (the locale-dependent 
version of foo and bah in New Zealand), and these are used in a document 
to which the module has been added. If the module is now deleted from 
the document, the flex insets become undefined. If the document is saved 
then closed with undefined insets, the saved file will contain lines like


\begin_inset Flex undefined

and be unable to restore the proper inset if the module is again added 
to the document.  This happens in beta2 on my system but not in 2.1.4 
where the corresponding line would be


\begin_inset Flex moo

(or \begin_inset Flex baa) so that adding the module again later 
recovers the fully functional insets. In beta2 it doesn't and there is 
no way of telling whether "Flex undefined" should be "Flex moo" or "Flex 
baa".


This could make things difficult if a LyX document requiring a custom 
module is shared. The recipient first has to open the document, read the 
instructions ("Please add the module"), follow them, then reconfigure. 
Perhaps they've tapped a key in the meantime. If they tend to 
reconfigure with an empty LyX window (which isn't necessary but I 
certainly do this), then it's quite possible their fingers will do 
Ctrl-S, Ctrl-W to close the document which will thus contain 
"\begin_inset Flex undefined" lines, rendering the module and insets 
useless.


This is on a recent clean reinstall of beta2 on windows 7. I've attached 
a MWE beta2 document using the logical markup module. Open the document, 
delete the module, then save and close the document. Now reopen it and 
add the logical markup module again. The character styles are not 
recognized. In 2.1.4, with a similar document and process, they are.


Andrew


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
#LyX 2.2 created this file. For more info see http://www.lyx.org/
\lyxformat 506
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\use_default_options true
\begin_modules
logicalmkup
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Standard
A 
\begin_inset Flex Emph
status open

\begin_layout Plain Layout
quick
\end_layout

\end_inset

 
\begin_inset Flex Strong
status open

\begin_layout Plain Layout
brown
\end_layout

\end_inset

 
\begin_inset Flex Noun
status open

\begin_layout Plain Layout
fox
\end_layout

\end_inset

.
\end_layout

\end_body
\end_document


Re: Hyphens in LyX-Code in beta2

2016-02-26 Thread Jean-Marc Lasgouttes

Le 25/02/2016 21:53, Georg Baum a écrit :

Jean-Marc, thanks for looking at the issue, you have my +1 for the patch
posted at 
http://www.lyx.org/trac/attachment/ticket/9987/0001-Do-not-merge-consecutive-hyphens-in-LyX-Code.patch.


Thanks Georg. It is in now.

JMarc



Re: Hyphens in LyX-Code in beta2

2016-02-25 Thread Georg Baum
Andrew Parsloe wrote:

> I have created a ticket #9987.

Thanks for the report Andrew. This was indeed not wanted and an oversight 
from my side.

Jean-Marc, thanks for looking at the issue, you have my +1 for the patch 
posted at 
http://www.lyx.org/trac/attachment/ticket/9987/0001-Do-not-merge-consecutive-hyphens-in-LyX-Code.patch.


Georg



Re: Hyphens in LyX-Code in beta2

2016-02-24 Thread Andrew Parsloe



On 25/02/2016 4:39 p.m., Pavel Sanda wrote:

Andrew Parsloe wrote:

In 2.1.4 it is possible to type a number of hyphens in sequence in
LyX-Code. Thus, discussing command lines, you can type "--help" in LyX-Code
and the two hyphens are *not* converted to an en dash. This behaviour has
been lost in beta2. The two hyphens are automatically converted to an en
dash (and three to an em dash). This defeats the purpose of LyX-Code (as I
understand it). I can't see anything in "New in LyX 2.2" to suggest this is
intended.  I suspect a bug.

Georg was refactoring the way we treat dashes, I guess this slipped in
but does not look right indeed.
Pavel


I have created a ticket #9987.

Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Hyphens in LyX-Code in beta2

2016-02-24 Thread Pavel Sanda
Andrew Parsloe wrote:
> In 2.1.4 it is possible to type a number of hyphens in sequence in 
> LyX-Code. Thus, discussing command lines, you can type "--help" in LyX-Code 
> and the two hyphens are *not* converted to an en dash. This behaviour has 
> been lost in beta2. The two hyphens are automatically converted to an en 
> dash (and three to an em dash). This defeats the purpose of LyX-Code (as I 
> understand it). I can't see anything in "New in LyX 2.2" to suggest this is 
> intended.  I suspect a bug.

Georg was refactoring the way we treat dashes, I guess this slipped in
but does not look right indeed. 
Pavel


Hyphens in LyX-Code in beta2

2016-02-24 Thread Andrew Parsloe
In 2.1.4 it is possible to type a number of hyphens in sequence in 
LyX-Code. Thus, discussing command lines, you can type "--help" in 
LyX-Code and the two hyphens are *not* converted to an en dash. This 
behaviour has been lost in beta2. The two hyphens are automatically 
converted to an en dash (and three to an em dash). This defeats the 
purpose of LyX-Code (as I understand it). I can't see anything in "New 
in LyX 2.2" to suggest this is intended.  I suspect a bug.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: beta2?

2016-02-22 Thread Peter Kümmel



Am 21.02.2016 um 17:59 schrieb Scott Kostyshak:

On Mon, Feb 15, 2016 at 05:06:19PM +0100, Kornel Benko wrote:

Am Sonntag, 14. Februar 2016 um 23:39:00, schrieb Pavel Sanda 

Peter Kümmel wrote:

Uwe still gets the following errors from the tar I sent to him:

D:\LyXGit\LyX22beta3\3rdparty\boost\boost/numeric/conversion/detail/numeric_cast_traits.hpp(12):
fatal error C1083: File (Include) cannot be opened:
"boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp":
No such file or directory
[D:\LyXGit\LyX22beta3\compile-2010\src\support\support.vcxproj]


I only tested with "build5-2010-installer.bat"


Is this script now used to build official installer?
In case of yes, would be our cmake gurus able to add routine
which spits out md5sum of installer binaries which could Uwe
posts in his email when publishing the binaries?

Pavel


For me it is not clear, how the binary zip-file is created on windows.
If I would know, I could create a new target to compute md5sum for this 
zip-file.
I created and committed a cmake-script to be used for this task.


It would be really nice to get this working. Peter, do you have an idea
of how to accomplish this?


AFAIK the installer is build in two steps,
1. build LyX and install locally
2. point the install file creater (NSIS) to the local LyX installation and 
start NSIS manually

So I don't know were we can calculate any sensible md5sum with cmake.

Peter


Note that this just came up on the news today:
http://blog.linuxmint.com/?p=2994

Scott



Re: beta2?

2016-02-21 Thread Scott Kostyshak
On Mon, Feb 15, 2016 at 05:06:19PM +0100, Kornel Benko wrote:
> Am Sonntag, 14. Februar 2016 um 23:39:00, schrieb Pavel Sanda 
> > Peter Kümmel wrote:
> >  Uwe still gets the following errors from the tar I sent to him:
> > 
> >  D:\LyXGit\LyX22beta3\3rdparty\boost\boost/numeric/conversion/detail/numeric_cast_traits.hpp(12):
> >  fatal error C1083: File (Include) cannot be opened:
> >  "boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp":
> >  No such file or directory
> >  [D:\LyXGit\LyX22beta3\compile-2010\src\support\support.vcxproj]
> > >
> > > I only tested with "build5-2010-installer.bat"
> > 
> > Is this script now used to build official installer?
> > In case of yes, would be our cmake gurus able to add routine
> > which spits out md5sum of installer binaries which could Uwe
> > posts in his email when publishing the binaries?
> > 
> > Pavel
> 
> For me it is not clear, how the binary zip-file is created on windows.
> If I would know, I could create a new target to compute md5sum for this 
> zip-file.
> I created and committed a cmake-script to be used for this task.

It would be really nice to get this working. Peter, do you have an idea
of how to accomplish this?
Note that this just came up on the news today:
http://blog.linuxmint.com/?p=2994

Scott


signature.asc
Description: PGP signature


Re: beta2?

2016-02-16 Thread Jean-Marc Lasgouttes

Le 15/02/2016 21:20, Uwe Stöhr a écrit :

Am 15.02.2016 um 11:18 schrieb Jean-Marc Lasgouttes:


BTW, why don't you use lzma for the compression of the installer?


I do. Otherwise the installer for the betas would be 69 MB large.


Does it mean that it is the
  SetCompressor /SOLID lzma
in include/declarations.nsh.cmake (but not in include/declarations.nsh, 
why?) that sets compression?


In this case the explicit setting (active and commented out) in the 3 
nsi files should be removed for clarity.


JMarc


Re: beta2?

2016-02-15 Thread Uwe Stöhr

Am 15.02.2016 um 11:18 schrieb Jean-Marc Lasgouttes:


BTW, why don't you use lzma for the compression of the installer?


I do. Otherwise the installer for the betas would be 69 MB large.

regards Uwe


Re: beta2?

2016-02-15 Thread Kornel Benko
Am Sonntag, 14. Februar 2016 um 23:39:00, schrieb Pavel Sanda 
> Peter Kümmel wrote:
>  Uwe still gets the following errors from the tar I sent to him:
> 
>  D:\LyXGit\LyX22beta3\3rdparty\boost\boost/numeric/conversion/detail/numeric_cast_traits.hpp(12):
>  fatal error C1083: File (Include) cannot be opened:
>  "boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp":
>  No such file or directory
>  [D:\LyXGit\LyX22beta3\compile-2010\src\support\support.vcxproj]
> >
> > I only tested with "build5-2010-installer.bat"
> 
> Is this script now used to build official installer?
> In case of yes, would be our cmake gurus able to add routine
> which spits out md5sum of installer binaries which could Uwe
> posts in his email when publishing the binaries?
> 
> Pavel

For me it is not clear, how the binary zip-file is created on windows.
If I would know, I could create a new target to compute md5sum for this 
zip-file.
I created and committed a cmake-script to be used for this task.

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: beta2?

2016-02-15 Thread Jean-Marc Lasgouttes

Le 15/02/2016 11:18, Jean-Marc Lasgouttes a écrit :

BTW, why don't you use lzma for the compression of the installer? This
is potentially a big win for the end user. Or did it turn out to be
disappointing?


Now I see that you use it only for the bundle installer. I would have 
thought that the gain is not so high there, since it probably contains 
lots of stuff that is already compressed.


JMarc



Re: beta2?

2016-02-15 Thread Jean-Marc Lasgouttes

Le 15/02/2016 00:55, Uwe Stöhr a écrit :

Am 14.02.2016 um 19:44 schrieb Peter Kümmel:


So the unzip tool has a problem, maybe because of the long path length.

Maybe we should also distribute a zip file.


Yes, a zip would be fine. I don't think that we need to save a few kB by
using special formats like .xz.


As Pavel pointed out, this is an interesting understatement. But indeed 
the size of the source distribution is not vital on binary-loving 
platforms like windows.


BTW, why don't you use lzma for the compression of the installer? This 
is potentially a big win for the end user. Or did it turn out to be 
disappointing?


JMarc



Re: beta2?

2016-02-14 Thread Pavel Sanda
Peter Kümmel wrote:
 Uwe still gets the following errors from the tar I sent to him:

 D:\LyXGit\LyX22beta3\3rdparty\boost\boost/numeric/conversion/detail/numeric_cast_traits.hpp(12):
 fatal error C1083: File (Include) cannot be opened:
 "boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp":
 No such file or directory
 [D:\LyXGit\LyX22beta3\compile-2010\src\support\support.vcxproj]
>
> I only tested with "build5-2010-installer.bat"

Is this script now used to build official installer?
In case of yes, would be our cmake gurus able to add routine
which spits out md5sum of installer binaries which could Uwe
posts in his email when publishing the binaries?

Pavel


Re: beta2?

2016-02-14 Thread Pavel Sanda
Uwe Stöhr wrote:
> Yes, a zip would be fine. I don't think that we need to save a few kB by 
> using special formats like .xz.

For the record .xz is pretty standard in open source releases and 
it saves 9mb from 20mb gzips (and 21mb from 31 .zip I just experimentally 
tried).
This is not few kb.

But this is most probably offtopic anyway, because the problem is with tar, not 
zip.
I seem to remember that we fixed this problem by deleting boost files which were
not by acident needed, the current approach looks much better.
Pavel


Re: beta2?

2016-02-14 Thread Scott Kostyshak
On Mon, Feb 15, 2016 at 12:55:47AM +0100, Uwe Stöhr wrote:
> Am 14.02.2016 um 19:44 schrieb Peter Kümmel:
> 
> >So the unzip tool has a problem, maybe because of the long path length.
> >
> >Maybe we should also distribute a zip file.
> 
> Yes, a zip would be fine. I don't think that we need to save a few kB by
> using special formats like .xz.
> 
> Scott, could you please upload a zip file so that I can see if this fixes te
> problems.

OK I sent it you.

Scott


signature.asc
Description: PGP signature


Re: beta2?

2016-02-14 Thread Uwe Stöhr

Am 14.02.2016 um 19:44 schrieb Peter Kümmel:


So the unzip tool has a problem, maybe because of the long path length.

Maybe we should also distribute a zip file.


Yes, a zip would be fine. I don't think that we need to save a few kB by 
using special formats like .xz.


Scott, could you please upload a zip file so that I can see if this 
fixes te problems.


thanks and regards
Uwe


Re: beta2?

2016-02-14 Thread Jean-Marc Lasgouttes

Le 14/02/16 19:54, Georg Baum a écrit :

Peter Kümmel wrote:


Am 14.02.2016 um 19:03 schrieb Scott Kostyshak:


Why is numeric_cast_traits_common.hpp not being found?


Have you checked if it's part of the tar you send to Uwe?


The files I listed above are part of the tar. I will send the tar to you
privately.


That explains why they did not show up in my comparison of the beta1 tar and
the git tree. I did not really understand why I could have missed them.


Probably related to this commit:

commit 5287f1c8b6a9e719492cf7350c304efb978c664c
Author: Peter Kümmel 
Date:   Sun Dec 20 13:32:33 2015 +0100

default tar-v7 format supports only 99 character pathes


We use tar-pax now, and it might not be handled very well by some old 
utilities. From what is said here


https://www.gnu.org/software/automake/manual/html_node/List-of-Automake-options.html
I believe that "ustar" would have been a better alternative.

JMarc


Re: beta2?

2016-02-14 Thread Peter Kümmel



Am 14.02.2016 um 21:27 schrieb Jean-Marc Lasgouttes:

Le 14/02/16 19:54, Georg Baum a écrit :

Peter Kümmel wrote:


Am 14.02.2016 um 19:03 schrieb Scott Kostyshak:


Why is numeric_cast_traits_common.hpp not being found?


Have you checked if it's part of the tar you send to Uwe?


The files I listed above are part of the tar. I will send the tar to you
privately.


That explains why they did not show up in my comparison of the beta1 tar and
the git tree. I did not really understand why I could have missed them.


Probably related to this commit:

commit 5287f1c8b6a9e719492cf7350c304efb978c664c
Author: Peter Kümmel 
Date:   Sun Dec 20 13:32:33 2015 +0100

 default tar-v7 format supports only 99 character pathes


We use tar-pax now, and it might not be handled very well by some old 
utilities. From what is said here

https://www.gnu.org/software/automake/manual/html_node/List-of-Automake-options.html
I believe that "ustar" would have been a better alternative.


Thanks for this hint!
I've tested it with ustar and it is indeed the better choice.

I've committed the change to ustar.

Peter



JMarc



Re: beta2?

2016-02-14 Thread Georg Baum
Peter Kümmel wrote:

> Am 14.02.2016 um 19:03 schrieb Scott Kostyshak:
>>>>
>>>> Why is numeric_cast_traits_common.hpp not being found?
>>>
>>> Have you checked if it's part of the tar you send to Uwe?
>>
>> The files I listed above are part of the tar. I will send the tar to you
>> privately.

That explains why they did not show up in my comparison of the beta1 tar and 
the git tree. I did not really understand why I could have missed them.

> When I unpack with WinRAR it looks like this
> 
> $ ls -l 3rdparty/boost/boost/numeric/conversion/detail/preprocessed/
> total 56
> -rw-r--r-- 1 numeric_cast_traits_commo
> -rw-r--r-- 1 numeric_cast_traits_long_
> 
> and when I run "tar vxf lyx-2.2.0beta3.tar.gz" from the git console it is
> ok.
> 
> So the unzip tool has a problem, maybe because of the long path length.

Probably. The good news is that we do not need a beta3, simply unpacking 
beta2 with a different method should be OK.


Georg



Re: beta2?

2016-02-14 Thread Peter Kümmel



Am 14.02.2016 um 19:03 schrieb Scott Kostyshak:

On Sun, Feb 14, 2016 at 06:36:15PM +0100, Peter Kümmel wrote:



Am 14.02.2016 um 17:17 schrieb Scott Kostyshak:

On Sat, Feb 13, 2016 at 01:44:30PM -0500, Scott Kostyshak wrote:

On Sat, Feb 13, 2016 at 01:24:20PM -0500, Scott Kostyshak wrote:

On Sat, Feb 13, 2016 at 07:11:48PM +0100, Uwe Stöhr wrote:

Am 13.02.2016 um 18:01 schrieb Scott Kostyshak:


Thanks for testing, Peter. I'll wait for a fix, and then I suppose we
move to beta3?


Sorry, but why do we act like beginners?

I wrote what is missing in the tarball. So why not add these files, send me
the tarball by private mail to check and then announce a new beta


You are right that this is what I should have done for beta2. I will do
this now before releasing beta3. I'll build the tar and send it to you
privately. After you confirm that you can compile the Windows build from
only the tar, I will post the tar and push the git tag and git commits.


I've sent the tars to you privately. Can you do a fresh build from them?


Uwe still gets the following errors from the tar I sent to him:

D:\LyXGit\LyX22beta3\3rdparty\boost\boost/numeric/conversion/detail/numeric_cast_traits.hpp(12):
fatal error C1083: File (Include) cannot be opened:
"boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp":
No such file or directory
[D:\LyXGit\LyX22beta3\compile-2010\src\support\support.vcxproj]


I only tested with "build5-2010-installer.bat"



I was hoping that 6de524e6 fixed these. Is there still something we
need to do? Looking in the tar, I see

./3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp
./3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp
./3rdparty/boost/boost/numeric/conversion/detail/numeric_cast_traits.hpp
./3rdparty/boost/boost/numeric/conversion/numeric_cast_traits.hpp

Why is numeric_cast_traits_common.hpp not being found?


Have you checked if it's part of the tar you send to Uwe?


The files I listed above are part of the tar. I will send the tar to you
privately.

Scott



Re: beta2?

2016-02-14 Thread Peter Kümmel

Am 14.02.2016 um 19:03 schrieb Scott Kostyshak:


Why is numeric_cast_traits_common.hpp not being found?


Have you checked if it's part of the tar you send to Uwe?


The files I listed above are part of the tar. I will send the tar to you
privately.


When I unpack with WinRAR it looks like this

$ ls -l 3rdparty/boost/boost/numeric/conversion/detail/preprocessed/
total 56
-rw-r--r-- 1 numeric_cast_traits_commo
-rw-r--r-- 1 numeric_cast_traits_long_

and when I run "tar vxf lyx-2.2.0beta3.tar.gz" from the git console it is ok.

So the unzip tool has a problem, maybe because of the long path length.

Maybe we should also distribute a zip file.



Scott



Re: beta2?

2016-02-14 Thread Scott Kostyshak
On Sat, Feb 13, 2016 at 01:44:30PM -0500, Scott Kostyshak wrote:
> On Sat, Feb 13, 2016 at 01:24:20PM -0500, Scott Kostyshak wrote:
> > On Sat, Feb 13, 2016 at 07:11:48PM +0100, Uwe Stöhr wrote:
> > > Am 13.02.2016 um 18:01 schrieb Scott Kostyshak:
> > > 
> > > >Thanks for testing, Peter. I'll wait for a fix, and then I suppose we
> > > >move to beta3?
> > > 
> > > Sorry, but why do we act like beginners?
> > > 
> > > I wrote what is missing in the tarball. So why not add these files, send 
> > > me
> > > the tarball by private mail to check and then announce a new beta
> > 
> > You are right that this is what I should have done for beta2. I will do
> > this now before releasing beta3. I'll build the tar and send it to you
> > privately. After you confirm that you can compile the Windows build from
> > only the tar, I will post the tar and push the git tag and git commits.
> 
> I've sent the tars to you privately. Can you do a fresh build from them?

Uwe still gets the following errors from the tar I sent to him:

D:\LyXGit\LyX22beta3\3rdparty\boost\boost/numeric/conversion/detail/numeric_cast_traits.hpp(12):
fatal error C1083: File (Include) cannot be opened:
"boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp":
No such file or directory
[D:\LyXGit\LyX22beta3\compile-2010\src\support\support.vcxproj]

I was hoping that 6de524e6 fixed these. Is there still something we
need to do? Looking in the tar, I see

./3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp
./3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp
./3rdparty/boost/boost/numeric/conversion/detail/numeric_cast_traits.hpp
./3rdparty/boost/boost/numeric/conversion/numeric_cast_traits.hpp

Why is numeric_cast_traits_common.hpp not being found?

Scott


signature.asc
Description: PGP signature


Re: beta2?

2016-02-14 Thread Peter Kümmel



Am 14.02.2016 um 17:17 schrieb Scott Kostyshak:

On Sat, Feb 13, 2016 at 01:44:30PM -0500, Scott Kostyshak wrote:

On Sat, Feb 13, 2016 at 01:24:20PM -0500, Scott Kostyshak wrote:

On Sat, Feb 13, 2016 at 07:11:48PM +0100, Uwe Stöhr wrote:

Am 13.02.2016 um 18:01 schrieb Scott Kostyshak:


Thanks for testing, Peter. I'll wait for a fix, and then I suppose we
move to beta3?


Sorry, but why do we act like beginners?

I wrote what is missing in the tarball. So why not add these files, send me
the tarball by private mail to check and then announce a new beta


You are right that this is what I should have done for beta2. I will do
this now before releasing beta3. I'll build the tar and send it to you
privately. After you confirm that you can compile the Windows build from
only the tar, I will post the tar and push the git tag and git commits.


I've sent the tars to you privately. Can you do a fresh build from them?


Uwe still gets the following errors from the tar I sent to him:

D:\LyXGit\LyX22beta3\3rdparty\boost\boost/numeric/conversion/detail/numeric_cast_traits.hpp(12):
fatal error C1083: File (Include) cannot be opened:
"boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp":
No such file or directory
[D:\LyXGit\LyX22beta3\compile-2010\src\support\support.vcxproj]

I was hoping that 6de524e6 fixed these. Is there still something we
need to do? Looking in the tar, I see

./3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp
./3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp
./3rdparty/boost/boost/numeric/conversion/detail/numeric_cast_traits.hpp
./3rdparty/boost/boost/numeric/conversion/numeric_cast_traits.hpp

Why is numeric_cast_traits_common.hpp not being found?


Have you checked if it's part of the tar you send to Uwe?

Here make lyxdist adds it to the tar.




Scott



Re: beta2?

2016-02-14 Thread Scott Kostyshak
On Sun, Feb 14, 2016 at 06:36:15PM +0100, Peter Kümmel wrote:
> 
> 
> Am 14.02.2016 um 17:17 schrieb Scott Kostyshak:
> >On Sat, Feb 13, 2016 at 01:44:30PM -0500, Scott Kostyshak wrote:
> >>On Sat, Feb 13, 2016 at 01:24:20PM -0500, Scott Kostyshak wrote:
> >>>On Sat, Feb 13, 2016 at 07:11:48PM +0100, Uwe Stöhr wrote:
> >>>>Am 13.02.2016 um 18:01 schrieb Scott Kostyshak:
> >>>>
> >>>>>Thanks for testing, Peter. I'll wait for a fix, and then I suppose we
> >>>>>move to beta3?
> >>>>
> >>>>Sorry, but why do we act like beginners?
> >>>>
> >>>>I wrote what is missing in the tarball. So why not add these files, send 
> >>>>me
> >>>>the tarball by private mail to check and then announce a new beta
> >>>
> >>>You are right that this is what I should have done for beta2. I will do
> >>>this now before releasing beta3. I'll build the tar and send it to you
> >>>privately. After you confirm that you can compile the Windows build from
> >>>only the tar, I will post the tar and push the git tag and git commits.
> >>
> >>I've sent the tars to you privately. Can you do a fresh build from them?
> >
> >Uwe still gets the following errors from the tar I sent to him:
> >
> >D:\LyXGit\LyX22beta3\3rdparty\boost\boost/numeric/conversion/detail/numeric_cast_traits.hpp(12):
> >fatal error C1083: File (Include) cannot be opened:
> >"boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp":
> >No such file or directory
> >[D:\LyXGit\LyX22beta3\compile-2010\src\support\support.vcxproj]
> >
> >I was hoping that 6de524e6 fixed these. Is there still something we
> >need to do? Looking in the tar, I see
> >
> >./3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp
> >./3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp
> >./3rdparty/boost/boost/numeric/conversion/detail/numeric_cast_traits.hpp
> >./3rdparty/boost/boost/numeric/conversion/numeric_cast_traits.hpp
> >
> >Why is numeric_cast_traits_common.hpp not being found?
> 
> Have you checked if it's part of the tar you send to Uwe?

The files I listed above are part of the tar. I will send the tar to you
privately.

Scott


signature.asc
Description: PGP signature


Re: beta2?

2016-02-13 Thread Georg Baum
Scott Kostyshak wrote:

> I agree that it would be nice to remove unnecessary files. As far as
> figuring out which files are unnecessary, I volunteer to take any
> experimental patch, build a tar ball, and send it to Uwe to see if he
> has time to build the test tar ball so we can see if he gets an error.

The files are already missing from the beta2 tarball (because they are not 
listed in Makefile.am). If Uwe can build from it, we can remove them from 
git.


Georg



Re: beta2?

2016-02-13 Thread Peter Kümmel

Am 13.02.2016 um 10:57 schrieb Georg Baum:

Scott Kostyshak wrote:


I agree that it would be nice to remove unnecessary files. As far as
figuring out which files are unnecessary, I volunteer to take any
experimental patch, build a tar ball, and send it to Uwe to see if he
has time to build the test tar ball so we can see if he gets an error.


The files are already missing from the beta2 tarball (because they are not
listed in Makefile.am). If Uwe can build from it, we can remove them from
git.


No, beta2 does not build on Windows because of missing

3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp
3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp

Peter




Georg




Re: beta2?

2016-02-13 Thread Scott Kostyshak
On Sat, Feb 13, 2016 at 12:34:26PM +0100, Peter Kümmel wrote:
> Am 13.02.2016 um 10:57 schrieb Georg Baum:
> >Scott Kostyshak wrote:
> >
> >>I agree that it would be nice to remove unnecessary files. As far as
> >>figuring out which files are unnecessary, I volunteer to take any
> >>experimental patch, build a tar ball, and send it to Uwe to see if he
> >>has time to build the test tar ball so we can see if he gets an error.
> >
> >The files are already missing from the beta2 tarball (because they are not
> >listed in Makefile.am). If Uwe can build from it, we can remove them from
> >git.
> 
> No, beta2 does not build on Windows because of missing
> 
> 3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp
> 3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp
> 
> Peter

Thanks for testing, Peter. I'll wait for a fix, and then I suppose we
move to beta3?

Scott


signature.asc
Description: PGP signature


Re: beta2?

2016-02-13 Thread Liviu Andronic
On Sat, Feb 13, 2016 at 6:01 PM, Scott Kostyshak <skost...@lyx.org> wrote:
> On Sat, Feb 13, 2016 at 12:34:26PM +0100, Peter Kümmel wrote:
>> Am 13.02.2016 um 10:57 schrieb Georg Baum:
>> >Scott Kostyshak wrote:
>> >
>> >>I agree that it would be nice to remove unnecessary files. As far as
>> >>figuring out which files are unnecessary, I volunteer to take any
>> >>experimental patch, build a tar ball, and send it to Uwe to see if he
>> >>has time to build the test tar ball so we can see if he gets an error.
>> >
>> >The files are already missing from the beta2 tarball (because they are not
>> >listed in Makefile.am). If Uwe can build from it, we can remove them from
>> >git.
>>
>> No, beta2 does not build on Windows because of missing
>>
>> 3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp
>> 3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp
>>
>> Peter
>
> Thanks for testing, Peter. I'll wait for a fix, and then I suppose we
> move to beta3?
>
We could also do e.g. beta2.1, beta2.2, etc. until the Windows build
issues are sorted out...

Liviu


> Scott



-- 
Do you think you know what math is?
http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
Or what it means to be intelligent?
http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
Think again:
http://www.ideasroadshow.com/library


Re: beta2?

2016-02-13 Thread Peter Kümmel



Am 13.02.2016 um 18:01 schrieb Scott Kostyshak:

On Sat, Feb 13, 2016 at 12:34:26PM +0100, Peter Kümmel wrote:

Am 13.02.2016 um 10:57 schrieb Georg Baum:

Scott Kostyshak wrote:


I agree that it would be nice to remove unnecessary files. As far as
figuring out which files are unnecessary, I volunteer to take any
experimental patch, build a tar ball, and send it to Uwe to see if he
has time to build the test tar ball so we can see if he gets an error.


The files are already missing from the beta2 tarball (because they are not
listed in Makefile.am). If Uwe can build from it, we can remove them from
git.


No, beta2 does not build on Windows because of missing

3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp
3rdparty/boost/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp

Peter


Thanks for testing, Peter. I'll wait for a fix, and then I suppose we
move to beta3?


OK, files now are part of the tar.



Scott



Re: beta2?

2016-02-13 Thread Uwe Stöhr

Am 13.02.2016 um 18:01 schrieb Scott Kostyshak:


Thanks for testing, Peter. I'll wait for a fix, and then I suppose we
move to beta3?


Sorry, but why do we act like beginners?

I wrote what is missing in the tarball. So why not add these files, send 
me the tarball by private mail to check and then announce a new beta? I 
also don't understand why a change in a makefile to add missing files 
deserves a new beta release.


I copied the boost folder from master to the tarball folder and built beta2:
http://ftp.lyx.de/LyX%202.2.0beta-2/

regards Uwe


Re: beta2?

2016-02-13 Thread Scott Kostyshak
On Sat, Feb 13, 2016 at 07:11:48PM +0100, Uwe Stöhr wrote:
> Am 13.02.2016 um 18:01 schrieb Scott Kostyshak:
> 
> >Thanks for testing, Peter. I'll wait for a fix, and then I suppose we
> >move to beta3?
> 
> Sorry, but why do we act like beginners?
> 
> I wrote what is missing in the tarball. So why not add these files, send me
> the tarball by private mail to check and then announce a new beta

You are right that this is what I should have done for beta2. I will do
this now before releasing beta3. I'll build the tar and send it to you
privately. After you confirm that you can compile the Windows build from
only the tar, I will post the tar and push the git tag and git commits.

> I also
> don't understand why a change in a makefile to add missing files deserves a
> new beta release.

Because we changed the code. We want the betax tar to be the tar that is
produced from checking out the betax tag of git. Also, I uploaded the
tar so now we must make the assumption to be safe that it has been
picked up by others. We would not want two different betax tars floating
around.

Scott


signature.asc
Description: PGP signature


Re: beta2?

2016-02-13 Thread Scott Kostyshak
On Sat, Feb 13, 2016 at 01:24:20PM -0500, Scott Kostyshak wrote:
> On Sat, Feb 13, 2016 at 07:11:48PM +0100, Uwe Stöhr wrote:
> > Am 13.02.2016 um 18:01 schrieb Scott Kostyshak:
> > 
> > >Thanks for testing, Peter. I'll wait for a fix, and then I suppose we
> > >move to beta3?
> > 
> > Sorry, but why do we act like beginners?
> > 
> > I wrote what is missing in the tarball. So why not add these files, send me
> > the tarball by private mail to check and then announce a new beta
> 
> You are right that this is what I should have done for beta2. I will do
> this now before releasing beta3. I'll build the tar and send it to you
> privately. After you confirm that you can compile the Windows build from
> only the tar, I will post the tar and push the git tag and git commits.

I've sent the tars to you privately. Can you do a fresh build from them?

Thanks,

Scott


signature.asc
Description: PGP signature


Re: beta2?

2016-02-12 Thread Jean-Marc Lasgouttes

Le 11/02/2016 21:40, Georg Baum a écrit :

Comparing the complete 3rdparty directory from the tar ball with the one in
git shows also that some boost files are missing (see attached). However, on
linux building with included boost works even without these files, so I
think that removing them from git is better than adding them to the build
boost (except for the license of course).



icu.* is for implementing unicode regex on top of ICU. We can get rid of 
it, but I guess that it will return every time we update boost. So it 
might be easier to keep it.


usinstances.cpp is MSVC only. Are we sure that we do not need it?

wc_regex_traits.cpp Implements out of line members for 
c_regex_traits. Might it be useful in some settings?


JMarc


Re: beta2?

2016-02-12 Thread Scott Kostyshak
On Thu, Feb 11, 2016 at 09:40:49PM +0100, Georg Baum wrote:
> Scott Kostyshak wrote:
> 
> > Should we do a quick beta2 release? If so, is everything set on master
> > so we just need to tag and tar it? Or is something else missing?
> 
> The tar ball must be generated after ff9ba203ff6d, otherwise it would miss 
> the files again.

OK thanks for fixing it. So for a final confirmation, everything is
fixed now (that we know of) regarding missing files for the tar ball and
we should proceed with beta2?

> Comparing the complete 3rdparty directory from the tar ball with the
> one in git shows also that some boost files are missing (see
> attached). However, on linux building with included boost works even
> without these files, so I think that removing them from git is better
> than adding them to the build boost (except for the license of
> course).

Makes sense.

Scott


signature.asc
Description: PGP signature


Re: beta2?

2016-02-12 Thread Georg Baum
Jean-Marc Lasgouttes wrote:

> Le 11/02/2016 21:40, Georg Baum a écrit :
>> Comparing the complete 3rdparty directory from the tar ball with the one
>> in git shows also that some boost files are missing (see attached).
>> However, on linux building with included boost works even without these
>> files, so I think that removing them from git is better than adding them
>> to the build boost (except for the license of course).
> 
> 
> icu.* is for implementing unicode regex on top of ICU. We can get rid of
> it, but I guess that it will return every time we update boost. So it
> might be easier to keep it.
> 
> usinstances.cpp is MSVC only. Are we sure that we do not need it?

Good point.

> wc_regex_traits.cpp Implements out of line members for
> c_regex_traits. Might it be useful in some settings?

Dunno. If I understand 3rdparty/boost/libs/regex/CMakeLists.txt correctly 
then none of the three files is built, so I would guess that all can be 
removed (i.e. beta2 could be relased without further modifications, the 
removal could be done later). However, I am not good in cmake speak at all, 
so I might be wrong.

We have basically two options:

1) Add all files to the tar ball (either like it was done by my patch, or by 
adding them to EXTRA_DIST so that they are not needlessly compiled on 
linux).

2) Have a cmake expert or somebody with access to MSVC try out which files 
are needed and which can be removed, and then only add the needed ones.


Scott, I guess it is your call;-)


Georg



Re: beta2?

2016-02-12 Thread Kornel Benko
Am Freitag, 12. Februar 2016 um 20:08:49, schrieb Georg Baum 
<georg.b...@post.rwth-aachen.de>
> Jean-Marc Lasgouttes wrote:
> 
> > Le 11/02/2016 21:40, Georg Baum a écrit :
> >> Comparing the complete 3rdparty directory from the tar ball with the one
> >> in git shows also that some boost files are missing (see attached).
> >> However, on linux building with included boost works even without these
> >> files, so I think that removing them from git is better than adding them
> >> to the build boost (except for the license of course).
> > 
> > 
> > icu.* is for implementing unicode regex on top of ICU. We can get rid of
> > it, but I guess that it will return every time we update boost. So it
> > might be easier to keep it.
> > 
> > usinstances.cpp is MSVC only. Are we sure that we do not need it?
> 
> Good point.
> 
> > wc_regex_traits.cpp Implements out of line members for
> > c_regex_traits. Might it be useful in some settings?
> 
> Dunno. If I understand 3rdparty/boost/libs/regex/CMakeLists.txt correctly 
> then none of the three files is built, so I would guess that all can be 
> removed (i.e. beta2 could be relased without further modifications, the 
> removal could be done later). However, I am not good in cmake speak at all, 
> so I might be wrong.

I understand it the same way as you.

> We have basically two options:
> 
> 1) Add all files to the tar ball (either like it was done by my patch, or by 
> adding them to EXTRA_DIST so that they are not needlessly compiled on 
> linux).
> 
> 2) Have a cmake expert or somebody with access to MSVC try out which files 
> are needed and which can be removed, and then only add the needed ones.
> 

They do not harm, still I would remove them.

> Scott, I guess it is your call;-)
> 
> 
> Georg

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: beta2?

2016-02-12 Thread Scott Kostyshak
On Fri, Feb 12, 2016 at 09:08:48PM +0100, Kornel Benko wrote:
> Am Freitag, 12. Februar 2016 um 20:08:49, schrieb Georg Baum 
> <georg.b...@post.rwth-aachen.de>
> > Jean-Marc Lasgouttes wrote:
> > 
> > > Le 11/02/2016 21:40, Georg Baum a écrit :
> > >> Comparing the complete 3rdparty directory from the tar ball with the one
> > >> in git shows also that some boost files are missing (see attached).
> > >> However, on linux building with included boost works even without these
> > >> files, so I think that removing them from git is better than adding them
> > >> to the build boost (except for the license of course).
> > > 
> > > 
> > > icu.* is for implementing unicode regex on top of ICU. We can get rid of
> > > it, but I guess that it will return every time we update boost. So it
> > > might be easier to keep it.
> > > 
> > > usinstances.cpp is MSVC only. Are we sure that we do not need it?
> > 
> > Good point.
> > 
> > > wc_regex_traits.cpp Implements out of line members for
> > > c_regex_traits. Might it be useful in some settings?
> > 
> > Dunno. If I understand 3rdparty/boost/libs/regex/CMakeLists.txt correctly 
> > then none of the three files is built, so I would guess that all can be 
> > removed (i.e. beta2 could be relased without further modifications, the 
> > removal could be done later). However, I am not good in cmake speak at all, 
> > so I might be wrong.
> 
> I understand it the same way as you.

OK let's go ahead with beta2 then. I will tag and tar now.

> > We have basically two options:
> > 
> > 1) Add all files to the tar ball (either like it was done by my patch, or 
> > by 
> > adding them to EXTRA_DIST so that they are not needlessly compiled on 
> > linux).
> > 
> > 2) Have a cmake expert or somebody with access to MSVC try out which files 
> > are needed and which can be removed, and then only add the needed ones.
> > 
> 
> They do not harm, still I would remove them.
> 
> > Scott, I guess it is your call;-)

I agree that it would be nice to remove unnecessary files. As far as
figuring out which files are unnecessary, I volunteer to take any
experimental patch, build a tar ball, and send it to Uwe to see if he
has time to build the test tar ball so we can see if he gets an error.

Scott


signature.asc
Description: PGP signature


Re: beta2?

2016-02-11 Thread Stephan Witt
Am 11.02.2016 um 21:40 schrieb Georg Baum <georg.b...@post.rwth-aachen.de>:
> 
> Scott Kostyshak wrote:
> 
>> Should we do a quick beta2 release? If so, is everything set on master
>> so we just need to tag and tar it? Or is something else missing?
> 
> The tar ball must be generated after ff9ba203ff6d, otherwise it would miss 
> the files again.
> 
> Comparing the complete 3rdparty directory from the tar ball with the one in 
> git shows also that some boost files are missing (see attached). However, on 
> linux building with included boost works even without these files, so I 
> think that removing them from git is better than adding them to the build 
> boost (except for the license of course).
> 
>> From what I understand, the situation is the following:
>> 
>> It is not possible to compile LyX 2.2.0beta1 for Windows from the tar
>> ball. In order to add files to the tar, because the tar ball has already
>> been posted, we must therefore post a new tar ball and thus prepare
>> beta2. Is that logic correct?
> 
> Yes.
+1

Stephan

beta2?

2016-02-11 Thread Scott Kostyshak
Should we do a quick beta2 release? If so, is everything set on master
so we just need to tag and tar it? Or is something else missing?

From what I understand, the situation is the following:

It is not possible to compile LyX 2.2.0beta1 for Windows from the tar
ball. In order to add files to the tar, because the tar ball has already
been posted, we must therefore post a new tar ball and thus prepare
beta2. Is that logic correct?

Scott


signature.asc
Description: PGP signature


Re: beta2?

2016-02-11 Thread Georg Baum
Scott Kostyshak wrote:

> Should we do a quick beta2 release? If so, is everything set on master
> so we just need to tag and tar it? Or is something else missing?

The tar ball must be generated after ff9ba203ff6d, otherwise it would miss 
the files again.

Comparing the complete 3rdparty directory from the tar ball with the one in 
git shows also that some boost files are missing (see attached). However, on 
linux building with included boost works even without these files, so I 
think that removing them from git is better than adding them to the build 
boost (except for the license of course).

> From what I understand, the situation is the following:
> 
> It is not possible to compile LyX 2.2.0beta1 for Windows from the tar
> ball. In order to add files to the tar, because the tar ball has already
> been posted, we must therefore post a new tar ball and thus prepare
> beta2. Is that logic correct?

Yes.


Georgdiff --git a/3rdparty/boost/Makefile.am b/3rdparty/boost/Makefile.am
index cfac86b..410ac44 100644
--- a/3rdparty/boost/Makefile.am
+++ b/3rdparty/boost/Makefile.am
@@ -4,6 +4,7 @@ noinst_LIBRARIES = liblyxboost.a
 
 EXTRA_DIST = boost \
 	CMakeLists.txt \
+	LICENSE_1_0.txt \
 	libs/CMakeLists.txt \
 	libs/regex/CMakeLists.txt \
 	libs/regex/regex.vcproj \
@@ -53,13 +54,16 @@ liblyxboost_a_SOURCES = \
 	libs/regex/src/cpp_regex_traits.cpp \
 	libs/regex/src/cregex.cpp \
 	libs/regex/src/fileiter.cpp \
+	libs/regex/src/icu.cpp \
 	libs/regex/src/instances.cpp \
 	libs/regex/src/posix_api.cpp \
 	libs/regex/src/regex.cpp \
 	libs/regex/src/regex_debug.cpp \
 	libs/regex/src/regex_raw_buffer.cpp \
 	libs/regex/src/regex_traits_defaults.cpp \
+	libs/regex/src/usinstances.cpp \
 	libs/regex/src/w32_regex_traits.cpp \
+	libs/regex/src/wc_regex_traits.cpp \
 	libs/regex/src/wide_posix_api.cpp \
 	libs/regex/src/winstances.cpp \
 	libs/regex/src/static_mutex.cpp \



Re: Adv. f r bugs in 2.1 beta2

2013-12-02 Thread Liviu Andronic
On Sun, Dec 1, 2013 at 10:45 AM, Liviu Andronic landronim...@gmail.com wrote:
 On Sun, Dec 1, 2013 at 9:56 AM, Andrew Parsloe apars...@clear.net.nz wrote:
 2.0.1 beta2, windows 7.

 1. When an adv. f  r search reaches the end of the document  I respond
 'yes' to searching from the beginning, all the toolbars etc vanish from
 view. (See the attachment (but ignore the physics.) Clicking outside LyX
 itself restores things. This doesn't happen in 2.0.6 on windows 7.

BTW, I can easily reproduce this on Linux with beta2 using the above
recipe. Could you file a bug report for this issue?

Liviu


 I'm wondering if this isn't a symptom, as on Linux I often encountered
 such UI artifacts in different usage contexts (with 2.0.x). Here I had
 a _visual_ disappearance of the toolbar buttons; I say visual since if
 I hovered the mouse on top of the buttons then they would re-appear,
 and hitting any button would work. It's a bit different from what
 Andrew is reporting, but this behaviour is eerily familiar to me.

 Liviu


 2. If the Source Pane is detached from the main LyX gui, then the same
 recipe causes its content to freeze. Clicking in different paragraphs in the
 main LyX work area doesn't change the content of the Source Pane. If the
 Source Pane is docked at the bottom of the main LyX window, this doesn't
 happen (nor in 2.0.6).

 Andrew




 --
 Do you know how to read?
 http://www.alienetworks.com/srtest.cfm
 http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
 Do you know how to write?
 http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Adv. f r bugs in 2.1 beta2

2013-12-02 Thread Andrew Parsloe



On 3/12/2013 1:09 a.m., Liviu Andronic wrote:

On Sun, Dec 1, 2013 at 10:45 AM, Liviu Andronic landronim...@gmail.com wrote:

On Sun, Dec 1, 2013 at 9:56 AM, Andrew Parsloe apars...@clear.net.nz wrote:

2.0.1 beta2, windows 7.

1. When an adv. f  r search reaches the end of the document  I respond
'yes' to searching from the beginning, all the toolbars etc vanish from
view. (See the attachment (but ignore the physics.) Clicking outside LyX
itself restores things. This doesn't happen in 2.0.6 on windows 7.


BTW, I can easily reproduce this on Linux with beta2 using the above
recipe. Could you file a bug report for this issue?

Liviu



#8909

Andrew


Re: Adv. f & r bugs in 2.1 beta2

2013-12-02 Thread Liviu Andronic
On Sun, Dec 1, 2013 at 10:45 AM, Liviu Andronic <landronim...@gmail.com> wrote:
> On Sun, Dec 1, 2013 at 9:56 AM, Andrew Parsloe <apars...@clear.net.nz> wrote:
>> 2.0.1 beta2, windows 7.
>>
>> 1. When an adv. f & r search reaches the end of the document & I respond
>> 'yes' to searching from the beginning, all the toolbars etc vanish from
>> view. (See the attachment (but ignore the physics.) Clicking outside LyX
>> itself restores things. This doesn't happen in 2.0.6 on windows 7.
>>
BTW, I can easily reproduce this on Linux with beta2 using the above
recipe. Could you file a bug report for this issue?

Liviu


> I'm wondering if this isn't a symptom, as on Linux I often encountered
> such UI artifacts in different usage contexts (with 2.0.x). Here I had
> a _visual_ disappearance of the toolbar buttons; I say visual since if
> I hovered the mouse on top of the buttons then they would re-appear,
> and hitting any button would work. It's a bit different from what
> Andrew is reporting, but this behaviour is eerily familiar to me.
>
> Liviu
>
>
>> 2. If the Source Pane is detached from the main LyX gui, then the same
>> recipe causes its content to freeze. Clicking in different paragraphs in the
>> main LyX work area doesn't change the content of the Source Pane. If the
>> Source Pane is docked at the bottom of the main LyX window, this doesn't
>> happen (nor in 2.0.6).
>>
>> Andrew
>>
>
>
>
> --
> Do you know how to read?
> http://www.alienetworks.com/srtest.cfm
> http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
> Do you know how to write?
> http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Adv. f & r bugs in 2.1 beta2

2013-12-02 Thread Andrew Parsloe



On 3/12/2013 1:09 a.m., Liviu Andronic wrote:

On Sun, Dec 1, 2013 at 10:45 AM, Liviu Andronic <landronim...@gmail.com> wrote:

On Sun, Dec 1, 2013 at 9:56 AM, Andrew Parsloe <apars...@clear.net.nz> wrote:

2.0.1 beta2, windows 7.

1. When an adv. f & r search reaches the end of the document & I respond
'yes' to searching from the beginning, all the toolbars etc vanish from
view. (See the attachment (but ignore the physics.) Clicking outside LyX
itself restores things. This doesn't happen in 2.0.6 on windows 7.


BTW, I can easily reproduce this on Linux with beta2 using the above
recipe. Could you file a bug report for this issue?

Liviu



#8909

Andrew


Re: Adv. f r bugs in 2.1 beta2

2013-12-01 Thread Liviu Andronic
On Sun, Dec 1, 2013 at 9:56 AM, Andrew Parsloe apars...@clear.net.nz wrote:
 2.0.1 beta2, windows 7.

 1. When an adv. f  r search reaches the end of the document  I respond
 'yes' to searching from the beginning, all the toolbars etc vanish from
 view. (See the attachment (but ignore the physics.) Clicking outside LyX
 itself restores things. This doesn't happen in 2.0.6 on windows 7.

I'm wondering if this isn't a symptom, as on Linux I often encountered
such UI artifacts in different usage contexts (with 2.0.x). Here I had
a _visual_ disappearance of the toolbar buttons; I say visual since if
I hovered the mouse on top of the buttons then they would re-appear,
and hitting any button would work. It's a bit different from what
Andrew is reporting, but this behaviour is eerily familiar to me.

Liviu


 2. If the Source Pane is detached from the main LyX gui, then the same
 recipe causes its content to freeze. Clicking in different paragraphs in the
 main LyX work area doesn't change the content of the Source Pane. If the
 Source Pane is docked at the bottom of the main LyX window, this doesn't
 happen (nor in 2.0.6).

 Andrew




-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Adv. f & r bugs in 2.1 beta2

2013-12-01 Thread Liviu Andronic
On Sun, Dec 1, 2013 at 9:56 AM, Andrew Parsloe <apars...@clear.net.nz> wrote:
> 2.0.1 beta2, windows 7.
>
> 1. When an adv. f & r search reaches the end of the document & I respond
> 'yes' to searching from the beginning, all the toolbars etc vanish from
> view. (See the attachment (but ignore the physics.) Clicking outside LyX
> itself restores things. This doesn't happen in 2.0.6 on windows 7.
>
I'm wondering if this isn't a symptom, as on Linux I often encountered
such UI artifacts in different usage contexts (with 2.0.x). Here I had
a _visual_ disappearance of the toolbar buttons; I say visual since if
I hovered the mouse on top of the buttons then they would re-appear,
and hitting any button would work. It's a bit different from what
Andrew is reporting, but this behaviour is eerily familiar to me.

Liviu


> 2. If the Source Pane is detached from the main LyX gui, then the same
> recipe causes its content to freeze. Clicking in different paragraphs in the
> main LyX work area doesn't change the content of the Source Pane. If the
> Source Pane is docked at the bottom of the main LyX window, this doesn't
> happen (nor in 2.0.6).
>
> Andrew
>



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Freeze for LyX 2.1.0 beta2

2013-11-10 Thread Jürgen Spitzmüller
Vincent van Ravesteijn wrote:
 Hi all,
 
 I want to freeze the master and to evaluate a few days whether the last
 changes introduce any regressions.
 
 The coming days I will be at the GSoC mentor summit, and I will prepare
 the tarballs. When there are no big problems, I can tag and release the
 second beta after the weekend.

Vincent, what is the status? Trunk is frozen now for almost a month. For 
development (and particularly for bug fixing), this is really not a good 
situation.

Jürgen

 Vincent




Re: Freeze for LyX 2.1.0 beta2

2013-11-10 Thread Vincent van Ravesteijn

Jürgen Spitzmüller schreef op 10-11-2013 12:17:

Vincent van Ravesteijn wrote:

Hi all,

I want to freeze the master and to evaluate a few days whether the last
changes introduce any regressions.

The coming days I will be at the GSoC mentor summit, and I will prepare
the tarballs. When there are no big problems, I can tag and release the
second beta after the weekend.

Vincent, what is the status? Trunk is frozen now for almost a month. For
development (and particularly for bug fixing), this is really not a good
situation.

Jürgen



Hi Jurgen,

I'm going to do it today.

Vincent


Re: Freeze for LyX 2.1.0 beta2

2013-11-10 Thread Jürgen Spitzmüller
Vincent van Ravesteijn wrote:
> Hi all,
> 
> I want to freeze the master and to evaluate a few days whether the last
> changes introduce any regressions.
> 
> The coming days I will be at the GSoC mentor summit, and I will prepare
> the tarballs. When there are no big problems, I can tag and release the
> second beta after the weekend.

Vincent, what is the status? Trunk is frozen now for almost a month. For 
development (and particularly for bug fixing), this is really not a good 
situation.

Jürgen

> Vincent




Re: Freeze for LyX 2.1.0 beta2

2013-11-10 Thread Vincent van Ravesteijn

Jürgen Spitzmüller schreef op 10-11-2013 12:17:

Vincent van Ravesteijn wrote:

Hi all,

I want to freeze the master and to evaluate a few days whether the last
changes introduce any regressions.

The coming days I will be at the GSoC mentor summit, and I will prepare
the tarballs. When there are no big problems, I can tag and release the
second beta after the weekend.

Vincent, what is the status? Trunk is frozen now for almost a month. For
development (and particularly for bug fixing), this is really not a good
situation.

Jürgen



Hi Jurgen,

I'm going to do it today.

Vincent


Freeze for LyX 2.1.0 beta2

2013-10-15 Thread Vincent van Ravesteijn

Hi all,

I want to freeze the master and to evaluate a few days whether the last 
changes introduce any regressions.


The coming days I will be at the GSoC mentor summit, and I will prepare 
the tarballs. When there are no big problems, I can tag and release the 
second beta after the weekend.


Vincent


Freeze for LyX 2.1.0 beta2

2013-10-15 Thread Vincent van Ravesteijn

Hi all,

I want to freeze the master and to evaluate a few days whether the last 
changes introduce any regressions.


The coming days I will be at the GSoC mentor summit, and I will prepare 
the tarballs. When there are no big problems, I can tag and release the 
second beta after the weekend.


Vincent


Re: LyX 2.0.beta2: Strange Crash when moving outline or other tool window

2011-01-10 Thread Stephan Witt
Am 09.01.2011 um 10:19 schrieb Peter Baumgartner:

 If I moved the outline window in a position where LyX tries to adapt for a
 docking position on the *right* side of the document a crash occurred all
 the time. 
 
 I know of an old ticket (http://www.lyx.org/trac/ticket/7029) that was
 closed because the crash could not reproduced. I could reproduce this
 behavior the last few days all the time ;-) not only with the outline window
 but also with the extended find window for example.
 
 But now comes the strange thing: If you dock the window *once* successfully
 (e.g. the left side of the document) then LyX does not crash anymore even if
 you are docking on the right side of the document window.

That sounds like a problem with reading initial preferences. 
Vincent fixed a problem in session management lately.
Perhaps it's a similar problem and we can find the cause
with a crash log. You may find it in directory
$HOME/Library/Logs/DiagnosticReports

Note: the old ticket mentions a problem with docking outliner at the *left* 
side.

 I'm happy now but I thought I should report this problem as other people
 might experience the same problem.
 
 (I'm using Mac OS 1.6.5 and LyX2.0.0beta2.)

Let's see what beta3 does...

Stephan

  1   2   >