Picon
Favicon

Re: String Freeze for 2.0.3

Le 31/01/2012 16:45, Richard Heck a écrit :

> Translators, please prepare for 2.0.3. I am tentatively planning to
> prepare the release on 16 February, so if you could have your new po
> files in by 15 February, I'd appreciate it.

For testing against shortcuts conflicts, I compliled 2.0.3svn, I noticed these
warnings:

Lexer.cpp: In member function ‘void lyx::Lexer::Pimpl::verifyTable()’:
Lexer.cpp:197: warning: ‘<anonymous>’ may be used uninitialized in this function
lyxfind.cpp:571: warning: ‘size_t lyx::<unnamed>::find_matching_brace(const 
std::string&, size_t)’ defined but not used

In addition, I get this:
/usr/bin/install: impossible d'évaluer « ./nl.gmo »: Aucun fichier ou dossier de 
ce type
(i.e. : impossible to evaluate « ./nl.gmo »: no such file or directory)

--

-- 
Jean-Pierre

Re: String Freeze for 2.0.3

Jean-Pierre Chrétien <jeanpierre.chretien <at> free.fr> writes:

| Le 31/01/2012 16:45, Richard Heck a écrit :
>
>> Translators, please prepare for 2.0.3. I am tentatively planning to
>> prepare the release on 16 February, so if you could have your new po
>> files in by 15 February, I'd appreciate it.
>
| For testing against shortcuts conflicts, I compliled 2.0.3svn, I noticed these
| warnings:
>
| Lexer.cpp: In member function ‘void lyx::Lexer::Pimpl::verifyTable()’:
| Lexer.cpp:197: warning: ‘<anonymous>’ may be used uninitialized in this function
| lyxfind.cpp:571: warning: ‘size_t
| lyx::<unnamed>::find_matching_brace(const std::string&, size_t)’
| defined but not used

Please tell what compiler you are using.

--

-- 
   Lgb

[PATCH] Fixup multi-line comment to use block-comment


From: Lars Gullik Bjønnes <larsbj <at> gullik.org>

The small ascii art in InsetMathCancel::draw has line continuation characters at
eol, this make consecutive lines be andled as one. The use of a block comment
instead of single line comments makes this less of a "problem." Also it removes
a warning with gcc 4.7.
---
 src/mathed/InsetMathCancel.cpp |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/mathed/InsetMathCancel.cpp b/src/mathed/InsetMathCancel.cpp
index 3010054..13d5606 100644
--- a/src/mathed/InsetMathCancel.cpp
+++ b/src/mathed/InsetMathCancel.cpp
@@ -47,13 +47,15 @@ void InsetMathCancel::draw(PainterInfo & pi, int x, int y) const
        cell(0).draw(pi, x + 1, y);
        Dimension const dim = dimension(*pi.base.bv);

-       // y1 \    /
-       //     \  /
-       //      \/
-       //      /\
-       //     /  \
-       // y2 /    \
-       //    x1  x2
+       /*
+        * y1 \    /
+        *     \  /
+        *      \/
(Continue reading)

Picon
Favicon

Sweave manual pdf compilation fails

Hello,

I took a look to the new specific manual describing sweave with the latest 
2.0.3svn. The pdf export fails on an Rscript error:

<cite>
Running: Rscript --verbose --no-save --no-restore 
"/usr/local/share/lyx-2.0.3svn/scripts/lyxsweave.R" 
"/tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/""sweave.Rnw" 
"/tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/""sweave.tex" ISO-8859-15 
"/usr/local/share/lyx-2.0.3svn/examples/"
running
   '/usr/lib/R/bin/R --slave --no-restore --no-save --no-restore 
--file=/usr/local/share/lyx-2.0.3svn/scripts/lyxsweave.R --args 
/tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/sweave.Rnw 
/tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/sweave.tex ISO-8859-15'

[1] FALSE
Writing to file /tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/sweave.tex
Processing code chunks ...
  1 : term verbatim
  2 : echo (label=sweave-sty)
  3 : echo keep.source term verbatim (label=setup)
  4 : echo keep.source (label=sweave-manual)
  5 : echo keep.source term verbatim (label=print-integers)
  6 : echo term hide (label=hide-results)
  7 : echo term verbatim (label=calculator)
  8 : echo term verbatim (label=rnorm)
  9 : echo term verbatim (label=iris-summary)
10 : term tex (label=xtable-demo)
(Continue reading)

Xu Wang | 1 Feb 16:22
Picon

Re: String Freeze for 2.0.3



On Wed, Feb 1, 2012 at 3:01 AM, Jean-Pierre Chrétien <jeanpierre.chretien <at> free.fr> wrote:
Le 31/01/2012 16:45, Richard Heck a écrit :


Translators, please prepare for 2.0.3. I am tentatively planning to
prepare the release on 16 February, so if you could have your new po
files in by 15 February, I'd appreciate it.

For testing against shortcuts conflicts, I compliled 2.0.3svn, I noticed these
warnings:

Lexer.cpp: In member function ‘void lyx::Lexer::Pimpl::verifyTable()’:
Lexer.cpp:197: warning: ‘<anonymous>’ may be used uninitialized in this function
lyxfind.cpp:571: warning: ‘size_t lyx::<unnamed>::find_matching_brace(const std::string&, size_t)’ defined but not used

In addition, I get this:
/usr/bin/install: impossible d'évaluer « ./nl.gmo »: Aucun fichier ou dossier de ce type
(i.e. : impossible to evaluate « ./nl.gmo »: no such file or directory)

--
Jean-Pierre

What compiler are you using Jean-Pierre?
Yihui Xie | 1 Feb 17:15
Favicon
Gravatar

Re: Sweave manual pdf compilation fails

I guess you compiled the document under
/usr/local/share/lyx-2.0.3svn/examples/, right?

I believe the problem is that R has no write privilege to that
directory, so the default pdf() device cannot be started there. You
can copy sweave.lyx to a directory where you have write privilege, and
see if it compiles correctly.

Regards,
Yihui
--
Yihui Xie <xieyihui <at> gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA

2012/2/1 Jean-Pierre Chrétien <jeanpierre.chretien <at> free.fr>:
> Hello,
>
> I took a look to the new specific manual describing sweave with the latest
> 2.0.3svn. The pdf export fails on an Rscript error:
>
> <cite>
> Running: Rscript --verbose --no-save --no-restore
> "/usr/local/share/lyx-2.0.3svn/scripts/lyxsweave.R"
> "/tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/""sweave.Rnw"
> "/tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/""sweave.tex" ISO-8859-15
> "/usr/local/share/lyx-2.0.3svn/examples/"
> running
>  '/usr/lib/R/bin/R --slave --no-restore --no-save --no-restore
> --file=/usr/local/share/lyx-2.0.3svn/scripts/lyxsweave.R --args
> /tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/sweave.Rnw
> /tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/sweave.tex ISO-8859-15'
>
> [1] FALSE
> Writing to file /tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/sweave.tex
> Processing code chunks ...
>  1 : term verbatim
>  2 : echo (label=sweave-sty)
>  3 : echo keep.source term verbatim (label=setup)
>  4 : echo keep.source (label=sweave-manual)
>  5 : echo keep.source term verbatim (label=print-integers)
>  6 : echo term hide (label=hide-results)
>  7 : echo term verbatim (label=calculator)
>  8 : echo term verbatim (label=rnorm)
>  9 : echo term verbatim (label=iris-summary)
> 10 : term tex (label=xtable-demo)
> Loading required package: xtable
> 11 : echo term verbatim eps pdf (label=iris-pairs)
>
> Erreur :  chunk 11 (label=iris-pairs)
> Error in function (file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf"),  :
>  impossible de démarrer le périphérique pdf
> De plus : Messages d'avis :
> 1: In library(package, lib.loc = lib.loc, character.only = TRUE,
> logical.return = TRUE,  :
>  there is no package called 'xtable'
> 2: In function (file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf"),  :
>  impossible d'ouvrir le fichier en argument de 'pdf' 'Rplots.pdf'
> Exécution arrêtée
> Systemcall.cpp(270): Systemcall: 'Rscript --verbose --no-save --no-restore
> "/usr/local/share/lyx-2.0.3svn/scripts/lyxsweave.R"
> "/tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/""sweave.Rnw"
> "/tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/""sweave.tex" ISO-8859-15
> "/usr/local/share/lyx-2.0.3svn/examples/"' finished with exit code 1
> Error: Conversion du fichier impossible
> </cite>
>
> I installed R and related packages on my Debian box (Squeeze, R version
> 2.11). While updating fr.po for 2.0.3, I saw something about a requirement
> for R version >=2.14.
> Is that the reason of failure ?
>
> --
> Jean-Pierre
>

Liviu Andronic | 1 Feb 17:18
Picon

Re: Sweave manual pdf compilation fails

On Wed, Feb 1, 2012 at 5:15 PM, Yihui Xie <xie <at> yihui.name> wrote:
> I guess you compiled the document under
> /usr/local/share/lyx-2.0.3svn/examples/, right?
>
> I believe the problem is that R has no write privilege to that
> directory, so the default pdf() device cannot be started there. You
> can copy sweave.lyx to a directory where you have write privilege, and
> see if it compiles correctly.
>
Hmm, isn't the compilation supposed to be performed in a /tmp/ dir,
where permissions are available?

Liviu

Yihui Xie | 1 Feb 17:29
Favicon
Gravatar

Re: Sweave manual pdf compilation fails

You are right (ideally), but this is a long-lasting annoying problem
with R's default graphical device which is pdf() in the
non-interactive session. Unfortunately it has to create a file under
the current working directory (usually named Rplots.pdf). I requested
a true null device which does not write files, and it was implemented
in R 2.14.1, but again, unfortunately it has a bug which makes this
null device still write a file named NA. I have not got any response
from R core yet about this bug.

I can submit a simple patch to lyxsweave.R to avoid this problem by
redirecting the default file to a temp dir, but I'm not sure if it is
still in time. It should not break string freeze, though.

Regards,
Yihui
--
Yihui Xie <xieyihui <at> gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA

On Wed, Feb 1, 2012 at 10:18 AM, Liviu Andronic <landronimirc <at> gmail.com> wrote:
> On Wed, Feb 1, 2012 at 5:15 PM, Yihui Xie <xie <at> yihui.name> wrote:
>> I guess you compiled the document under
>> /usr/local/share/lyx-2.0.3svn/examples/, right?
>>
>> I believe the problem is that R has no write privilege to that
>> directory, so the default pdf() device cannot be started there. You
>> can copy sweave.lyx to a directory where you have write privilege, and
>> see if it compiles correctly.
>>
> Hmm, isn't the compilation supposed to be performed in a /tmp/ dir,
> where permissions are available?
>
> Liviu

Picon
Favicon

Re: String Freeze for 2.0.3

Le 01/02/2012 16:22, Xu Wang a écrit :

>
> What compiler are you using Jean-Pierre?

Here you are:

$ lyx-2.0.3svn -version
LyX 2.0.3svn (not released yet)
Built on Jan 31 2012, 18:39:32
Configuration
   Host type:                    i686-pc-linux-gnu
   Special build flags:          build=development warnings assertions 
stdlib-debug concept-checks use-aspell
   C   Compiler:                 gcc
   C   Compiler LyX flags:
   C   Compiler flags:           -Wextra -Wall   -g -O
   C++ Compiler:                 g++ (4.4.5)
   C++ Compiler LyX flags:
   C++ Compiler flags:           -Wextra -Wall   -g -O
   Linker flags:
   Linker user flags:
   Qt 4 Frontend:
       Qt 4 version:             4.6.3
   Packaging:                    posix
   LyX binary dir:               /usr/local/bin
   LyX files dir:                /usr/local/share/lyx-2.0.3svn

--

-- 
Jean-Pierre

Picon
Favicon

Re: Sweave manual pdf compilation fails

Le 01/02/2012 17:15, Yihui Xie a écrit :
> I guess you compiled the document under
> /usr/local/share/lyx-2.0.3svn/examples/, right?
>
> I believe the problem is that R has no write privilege to that
> directory, so the default pdf() device cannot be started there. You
> can copy sweave.lyx to a directory where you have write privilege, and
> see if it compiles correctly.

Oops, stupid of me, sorry.

--

-- 
Jean-Pierre


Gmane