Re: new compilation warning in branch

2015-01-07 Thread Uwe Stöhr

Am 07.01.2015 um 21:26 schrieb Jean-Marc Lasgouttes:


Le 07/01/2015 02:33, Uwe Stöhr a écrit :

compiling today's branch I get this compilation warning:

..\..\src\Paragraph.cpp(3869): warning C4018: '<': conflict between
'signed' and 'unsigned' [D:\LyXGit\2.1.x\compile-result\src\LyX.vcxproj]


Are you sure of the line number?


Yes, this line reads

if (pos < from + lyxrc.completion_minlength)

Note that this is branch-only. In master Georg added this comment:

// Work around MSVC warning: The statement
// if (pos < from + lyxrc.completion_minlength)
// triggers a signed vs. unsigned warning.
// I don't know why this happens, it could be a MSVC bug, or
// related to LLP64 (windows) vs. LP64 (unix) programming
// model, or the C++ standard might be ambigous in the section
// defining the "usual arithmetic conversions". However, using
// a temporary variable is safe and works on all compilers.

For safety reason this workaround should also be used in branch, right?

regards Uwe


Re: 3 new dataloss compilation warnings in current master

2015-01-07 Thread Uwe Stöhr

Am 07.01.2015 um 21:30 schrieb Jean-Marc Lasgouttes:


Fixed now. It should eventually be turned to an int, but at least I have
a more precise view of the types now.


many thanks.

regards Uwe


Test for frontends/test/biblio broken when std:regex in use

2015-01-07 Thread Jean-Marc Lasgouttes
Georg, could you have a look? I started to fix it, but then I am stopped 
by a bad regex constructor in RegexMatch constructor.


I am not even sure that this tests makes sense. It refers to identical 
code in frontend, but I cannot find it.


JMarc


Re: 3 new dataloss compilation warnings in current master

2015-01-07 Thread Jean-Marc Lasgouttes

Le 07/01/2015 02:38, Uwe Stöhr a écrit :

compiling today's master I get these 3 new compilation warnings:

..\..\src\TextMetrics.cpp(622): warning C4244: '+=': Conversion from
'const double' to 'int', possible dataloss
..\..\src\TextMetrics.cpp(627): warning C4244: '+=': Conversion from
'const double' to 'int', possible dataloss
..\..\src\TextMetrics.cpp(631): warning C4244: '+=':Conversion from
'const double' to 'int', possible dataloss


Fixed now. It should eventually be turned to an int, but at least I have 
a more precise view of the types now.


JMarc



Re: current master uncompilable under Windows

2015-01-07 Thread Jean-Marc Lasgouttes

Le 07/01/2015 02:41, Uwe Stöhr a écrit :

compiling current master I get 2 compilation errors:


This looks like a missing dependency in cmake for the check on 
ExternalTransforms...


Georg? Kornel?

JMarc


   support.lib(docstream.obj) : error LNK2019: link to unresolved
external symbol ""public: void __thiscall lyx::TexRow::newline(void)"
(?newline@TexRow@lyx@@QAEXXZ)" in Funktion ""class lyx::otexstream &
__cdecl lyx::operator<<(class lyx::otexstream &,struct lyx::BreakLine)"
(??6lyx@@YAAAVotexstream@0@AA
V10@UBreakLine@0@@Z)".
[D:\LyXGit\Master\compile-result\src\tests\check_ExternalTransforms.vcxproj]

   support.lib(docstream.obj) : error LNK2019: link to unresolved
external symbol ""public: void __thiscall lyx::TexRow::newlines(int)"
(?newlines@TexRow@lyx@@QAEXH@Z)" in Funktion ""class lyx::otexstream &
__cdecl lyx::operator<<(class lyx::otexstream &,class
std::basic_string,class std::allocator > const &)" (??6lyx@
@YAAAVotexstream@0@AAV10@ABV?$basic_string@IU?$char_traits@I@std@@V?$allocator@

I@2@@std@@@Z)".
[D:\LyXGit\Master\compile-result\src\tests\check_ExternalTransforms.vcxproj]







Re: new compilation warning in branch

2015-01-07 Thread Jean-Marc Lasgouttes

Le 07/01/2015 02:33, Uwe Stöhr a écrit :

compiling today's branch I get this compilation warning:

..\..\src\Paragraph.cpp(3869): warning C4018: '<': conflict between
'signed' and 'unsigned' [D:\LyXGit\2.1.x\compile-result\src\LyX.vcxproj]



Are you sure of the line number?

JMarc



Re: Install package texlive-esint-type1

2015-01-07 Thread Cor Blom

Op 07-01-15 om 08:23 schreef Vincent van Ravesteijn:

Hi all,

To compile the User's guide, I had to manually install the package
"texlive-esint-type1".

Shouldn't this be installed automatically when the lyx package is
installed ? I'm now at OpenSuse. Do other distros do install this
package ?

How can we inform the distros that this package is required ?

Vincent



For opensuse you can complain on this list. I try to pick up the 
opensuse specific things. :) I'll add this package to the list of 
required packages. Apparently missed this.


(I use "recommends" for everything lyx requires. In the default 
configuration recommends are treated as requires. Advanced users can, 
however, avoid the distro's texlive and you another source.)


BTW: is there somewhere a list of packages supported and required by lyx?

Cor



Re: Install package texlive-esint-type1

2015-01-07 Thread Scott Kostyshak
On Wed, Jan 7, 2015 at 2:23 PM, Liviu Andronic  wrote:

> Is this the issue that you're seeing?

I don't remember. I haven't tried that for a few months.

Scott


Re: Install package texlive-esint-type1

2015-01-07 Thread Liviu Andronic
On Wed, Jan 7, 2015 at 7:40 PM, Scott Kostyshak  wrote:
> On Wed, Jan 7, 2015 at 11:52 AM, Liviu Andronic  
> wrote:
>> On Wed, Jan 7, 2015 at 10:24 AM, Liviu Andronic  
>> wrote:
>>> On Wed, Jan 7, 2015 at 8:23 AM, Vincent van Ravesteijn  wrote:
 Hi all,

 To compile the User's guide, I had to manually install the package
 "texlive-esint-type1".

 Shouldn't this be installed automatically when the lyx package is
 installed ? I'm now at OpenSuse. Do other distros do install this
 package ?

>>> No. It doesn't work like this in most Linux distros.
>>>
>>> While on Windows we have the nicely packaged MiKTeX, which can
>>> willy-nilly install packages "on-the-fly", on Linux the process is
>>> much more manual. Most distros use very inflexible LaTeX distributions
>>> that don't come with the default, internal package manager. So as a
>>> user you have to spot the exact LaTeX package missing, find the
>>> associated distro package that contains it (if any), and install that.
>>>
>> Actually I stand corrected. As it turns out, Debian (hence all
>> derivatives, including Ubuntu) seems to have recently had a change of
>> heart and is now shipping `tlmgr`:
>> http://askubuntu.com/questions/485514/how-to-properly-install-and-use-texlive-with-package-manager-in-14-04
>>
>> I'm not yet sure how useful it is, but at this point we might want to
>> investigate how LyX could communicate with `tlmgr` (if detected in the
>> TeXLive installation), in ways similar to MiKTeX on Windows. We might
>> also want to check if non-Debian distros ship TeXLive's internal
>> manager.
>>
>> Scott, do you have any experience with the `tlmgr` in Ubuntu 14.04? Is
>> this comparable in functionality to your `install-tl-ubuntu` script?
>
> I ran into a similar error as that user and the fixes at the time did
> not work for me. The solution there worked for the user so that's
> good. Hopefully it will work even more easily in the next Ubuntu
> version.
>
The fix worked for me here:
sudo apt-get install xzdec perl-tk
tlmgr init-usertree

Then for instance :
tlmgr --gui
tlmgr info frletter

However, something seems to be off-sync:
geek@liv-inspiron:~$ tlmgr update --list
(running on Debian, switching to user mode!)
tlmgr: package repository http://ctan.mines-albi.fr/systems/texlive/tlnet
tlmgr: no updates available

Is this the issue that you're seeing? I'm wondering if it's linked to this:
http://askubuntu.com/questions/486170/upgrade-from-tex-live-from-2013-to-2014-on-ubuntu-14-04
"Even worse, the TeXLive 2013 version included in Ubuntu stopped
working with tlmgr: tlmgr: The TeX Live versions supported by the
repository [...] (2014--2014) do not include the version of the local
installation (2013)."


Liviu


> Scott
>
>>
>> Regards,
>> Liviu
>>
>>
>>> That's why we come up with things like:
>>> https://github.com/scottkosty/install-tl-ubuntu
>>>
>>> Regards,
>>> Liviu
>>>
>>>
 How can we inform the distros that this package is required ?

 Vincent
>>>
>>>
>>>
>>> --
>>> 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
>>
>>
>>
>> --
>> 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



-- 
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: Install package texlive-esint-type1

2015-01-07 Thread Scott Kostyshak
On Wed, Jan 7, 2015 at 11:52 AM, Liviu Andronic  wrote:
> On Wed, Jan 7, 2015 at 10:24 AM, Liviu Andronic  
> wrote:
>> On Wed, Jan 7, 2015 at 8:23 AM, Vincent van Ravesteijn  wrote:
>>> Hi all,
>>>
>>> To compile the User's guide, I had to manually install the package
>>> "texlive-esint-type1".
>>>
>>> Shouldn't this be installed automatically when the lyx package is
>>> installed ? I'm now at OpenSuse. Do other distros do install this
>>> package ?
>>>
>> No. It doesn't work like this in most Linux distros.
>>
>> While on Windows we have the nicely packaged MiKTeX, which can
>> willy-nilly install packages "on-the-fly", on Linux the process is
>> much more manual. Most distros use very inflexible LaTeX distributions
>> that don't come with the default, internal package manager. So as a
>> user you have to spot the exact LaTeX package missing, find the
>> associated distro package that contains it (if any), and install that.
>>
> Actually I stand corrected. As it turns out, Debian (hence all
> derivatives, including Ubuntu) seems to have recently had a change of
> heart and is now shipping `tlmgr`:
> http://askubuntu.com/questions/485514/how-to-properly-install-and-use-texlive-with-package-manager-in-14-04
>
> I'm not yet sure how useful it is, but at this point we might want to
> investigate how LyX could communicate with `tlmgr` (if detected in the
> TeXLive installation), in ways similar to MiKTeX on Windows. We might
> also want to check if non-Debian distros ship TeXLive's internal
> manager.
>
> Scott, do you have any experience with the `tlmgr` in Ubuntu 14.04? Is
> this comparable in functionality to your `install-tl-ubuntu` script?

I ran into a similar error as that user and the fixes at the time did
not work for me. The solution there worked for the user so that's
good. Hopefully it will work even more easily in the next Ubuntu
version.

Scott

>
> Regards,
> Liviu
>
>
>> That's why we come up with things like:
>> https://github.com/scottkosty/install-tl-ubuntu
>>
>> Regards,
>> Liviu
>>
>>
>>> How can we inform the distros that this package is required ?
>>>
>>> Vincent
>>
>>
>>
>> --
>> 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
>
>
>
> --
> 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: Install package texlive-esint-type1

2015-01-07 Thread Liviu Andronic
On Wed, Jan 7, 2015 at 10:24 AM, Liviu Andronic  wrote:
> On Wed, Jan 7, 2015 at 8:23 AM, Vincent van Ravesteijn  wrote:
>> Hi all,
>>
>> To compile the User's guide, I had to manually install the package
>> "texlive-esint-type1".
>>
>> Shouldn't this be installed automatically when the lyx package is
>> installed ? I'm now at OpenSuse. Do other distros do install this
>> package ?
>>
> No. It doesn't work like this in most Linux distros.
>
> While on Windows we have the nicely packaged MiKTeX, which can
> willy-nilly install packages "on-the-fly", on Linux the process is
> much more manual. Most distros use very inflexible LaTeX distributions
> that don't come with the default, internal package manager. So as a
> user you have to spot the exact LaTeX package missing, find the
> associated distro package that contains it (if any), and install that.
>
Actually I stand corrected. As it turns out, Debian (hence all
derivatives, including Ubuntu) seems to have recently had a change of
heart and is now shipping `tlmgr`:
http://askubuntu.com/questions/485514/how-to-properly-install-and-use-texlive-with-package-manager-in-14-04

I'm not yet sure how useful it is, but at this point we might want to
investigate how LyX could communicate with `tlmgr` (if detected in the
TeXLive installation), in ways similar to MiKTeX on Windows. We might
also want to check if non-Debian distros ship TeXLive's internal
manager.

Scott, do you have any experience with the `tlmgr` in Ubuntu 14.04? Is
this comparable in functionality to your `install-tl-ubuntu` script?

Regards,
Liviu


> That's why we come up with things like:
> https://github.com/scottkosty/install-tl-ubuntu
>
> Regards,
> Liviu
>
>
>> How can we inform the distros that this package is required ?
>>
>> Vincent
>
>
>
> --
> 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



-- 
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: Install package texlive-esint-type1

2015-01-07 Thread Liviu Andronic
On Wed, Jan 7, 2015 at 8:23 AM, Vincent van Ravesteijn  wrote:
> Hi all,
>
> To compile the User's guide, I had to manually install the package
> "texlive-esint-type1".
>
> Shouldn't this be installed automatically when the lyx package is
> installed ? I'm now at OpenSuse. Do other distros do install this
> package ?
>
No. It doesn't work like this in most Linux distros.

While on Windows we have the nicely packaged MiKTeX, which can
willy-nilly install packages "on-the-fly", on Linux the process is
much more manual. Most distros use very inflexible LaTeX distributions
that don't come with the default, internal package manager. So as a
user you have to spot the exact LaTeX package missing, find the
associated distro package that contains it (if any), and install that.

That's why we come up with things like:
https://github.com/scottkosty/install-tl-ubuntu

Regards,
Liviu


> How can we inform the distros that this package is required ?
>
> Vincent



-- 
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