Re: Problems with custom modules after upgrade to 2.1.0

2014-05-23 Thread Scott Kostyshak
On Thu, May 22, 2014 at 10:37 AM, John Kane  wrote:
> Update on my knitr problem which I just got around to looking at.  It looks
> linked to my R installation.  My knitr and tables packages just disappeared.
> Re-installation of the packages cured the problem. Weird, I don't remember
> doing anything that would have wiped out those packages and it looks like
> the rest of my installation is still okay.

Glad you got it figured out. One thing that I find useful when having
problems is exporting the R code (File > Export > R/S code). Then you
can source it and do debugging in R. If there is no error when
sourcing, then it's time to look at LyX/knitr module/Rscript
issues/etc.

Best,

Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-05-22 Thread John Kane
Update on my knitr problem which I just got around to looking at.  It looks 
linked to my R installation.  My knitr and tables packages just disappeared.  
Re-installation of the packages cured the problem. Weird, I don't remember 
doing anything that would have wiped out those packages and it looks like  the 
rest of my installation is still okay.

On Wednesday, April 23, 2014 9:01:51 PM, Richard Heck  wrote:
 


On 04/23/2014 05:37 PM, aparsloe wrote:
>
> On 23/04/2014 10:45 p.m., Csikos Bela wrote:
>> aparsloe  írta:
>>>     On 23/04/2014 5:50 a.m., John Kane
>>>
>>>         Currently I am
>>>             running Ubuntu 13.10 with LyX 2.1.0. I seem to be having
>> [LONG SNIP]
>>>     I'm the writer of the ShortInsetNames module. I tried it with
>>>     2.1.0beta2 earlier today and it worked. I've now installed 2.1.0 
>>> and
>>>     it doesn't, but it's easily fixed. Open the module in a text editor
>>>     and insert double quotes so that the relevant two lines look like:
>> Hello:
>>
>> You both mention lyx 2.1.0. Do you really mean 2.1.0 or would it be 
>> 2.1.0rc1?
>>
>> I don't see reference to 2.1.0 on the lyx site (main page and under 
>> recent news) and it was not announced in this list either.
>>
>> bcsikos
>>
> I hope I'm not spoiling the party for the developers, but I downloaded 
> from ftp://ftp.lyx.org/pub/lyx/bin/2.1.0/. I think it's the real 2.1.0 
> rather than rc1.

We had some issues with file corruption, or something of that sort, so 
I'd suggest waiting until the binaries I uploaded today sync properly 
with the mirrors.


Richard

Re: Problems with custom modules after upgrade to 2.1.0

2014-04-23 Thread Richard Heck

On 04/23/2014 05:37 PM, aparsloe wrote:


On 23/04/2014 10:45 p.m., Csikos Bela wrote:

aparsloe  írta:

On 23/04/2014 5:50 a.m., John Kane

Currently I am
running Ubuntu 13.10 with LyX 2.1.0. I seem to be having

[LONG SNIP]

I'm the writer of the ShortInsetNames module. I tried it with
2.1.0beta2 earlier today and it worked. I've now installed 2.1.0 
and

it doesn't, but it's easily fixed. Open the module in a text editor
and insert double quotes so that the relevant two lines look like:

Hello:

You both mention lyx 2.1.0. Do you really mean 2.1.0 or would it be 
2.1.0rc1?


I don't see reference to 2.1.0 on the lyx site (main page and under 
recent news) and it was not announced in this list either.


bcsikos

I hope I'm not spoiling the party for the developers, but I downloaded 
from ftp://ftp.lyx.org/pub/lyx/bin/2.1.0/. I think it's the real 2.1.0 
rather than rc1.


We had some issues with file corruption, or something of that sort, so 
I'd suggest waiting until the binaries I uploaded today sync properly 
with the mirrors.


Richard



Re: Problems with custom modules after upgrade to 2.1.0

2014-04-23 Thread aparsloe


On 23/04/2014 10:45 p.m., Csikos Bela wrote:

aparsloe  írta:

On 23/04/2014 5:50 a.m., John Kane

Currently I am
running Ubuntu 13.10 with LyX 2.1.0. I seem to be having

[LONG SNIP]


I'm the writer of the ShortInsetNames module. I tried it with
2.1.0beta2 earlier today and it worked. I've now installed 2.1.0 and
it doesn't, but it's easily fixed. Open the module in a text editor
and insert double quotes so that the relevant two lines look like:

Hello:

You both mention lyx 2.1.0. Do you really mean 2.1.0 or would it be 2.1.0rc1?

I don't see reference to 2.1.0 on the lyx site (main page and under recent 
news) and it was not announced in this list either.

bcsikos

I hope I'm not spoiling the party for the developers, but I downloaded 
from ftp://ftp.lyx.org/pub/lyx/bin/2.1.0/. I think it's the real 2.1.0 
rather than rc1.


And on the subject of the module, as Richard Heck pointed out on the 
developer's list, there is a bug in the layout2layout script. Another 
way of getting the ShortInsetNames module to work with 2.1.0 is to 
change the format  number from 35 to 48 (in a text editor); no double 
quotes needed.


Andrew


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-23 Thread Stephan Witt
Am 23.04.2014 um 17:55 schrieb stefano franchi :

> 
> 
> 
> On Wed, Apr 23, 2014 at 10:50 AM, stefano franchi  
> wrote:
> 
> 
> 
> On Wed, Apr 23, 2014 at 10:07 AM, Richard Heck  wrote:
> On 04/23/2014 06:45 AM, Csikos Bela wrote:
> aparsloe  írta:
> On 23/04/2014 5:50 a.m., John Kane
> 
> Currently I am
> running Ubuntu 13.10 with LyX 2.1.0. I seem to be having
> [LONG SNIP]
> 
> I'm the writer of the ShortInsetNames module. I tried it with
> 2.1.0beta2 earlier today and it worked. I've now installed 2.1.0 and
> it doesn't, but it's easily fixed. Open the module in a text editor
> and insert double quotes so that the relevant two lines look like:
> Hello:
> 
> You both mention lyx 2.1.0. Do you really mean 2.1.0 or would it be 2.1.0rc1?
> 
> I don't see reference to 2.1.0 on the lyx site (main page and under recent 
> news) and it was not announced in this list either.
> 
> LyX 2.1.0 will be released shortly. We've had a brief delay.
> 
> 
> Actually,
> 
> Archlinux released it yesterday. I don't know how they did it, but it came 
> over in my system update. I uninstalled it promptly (I don't want to deal 
> with a major version upgrade in my production environment), so I don't know 
> it it was really 2.1 or 2.1RC. The package info shows lyx 2.1.0-1.
> 
> 
> More info: the binary [1] was built on 4/17/14 by the maintainer. So it's 
> probably 2.1.RC, I'd guess. 

Or it's the real 2.1.0 with the same probability :(

The tarball for 2.1.0 was produced on 4/14/14.

Stephan


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-23 Thread stefano franchi
On Wed, Apr 23, 2014 at 10:50 AM, stefano franchi  wrote:

>
>
>
> On Wed, Apr 23, 2014 at 10:07 AM, Richard Heck  wrote:
>
>> On 04/23/2014 06:45 AM, Csikos Bela wrote:
>>
>>> aparsloe  írta:
>>>
 On 23/04/2014 5:50 a.m., John Kane

 Currently I am
 running Ubuntu 13.10 with LyX 2.1.0. I seem to be having

>>> [LONG SNIP]
>>>
>>>
 I'm the writer of the ShortInsetNames module. I tried it with
 2.1.0beta2 earlier today and it worked. I've now installed 2.1.0 and
 it doesn't, but it's easily fixed. Open the module in a text editor
 and insert double quotes so that the relevant two lines look like:

>>> Hello:
>>>
>>> You both mention lyx 2.1.0. Do you really mean 2.1.0 or would it be
>>> 2.1.0rc1?
>>>
>>> I don't see reference to 2.1.0 on the lyx site (main page and under
>>> recent news) and it was not announced in this list either.
>>>
>>
>> LyX 2.1.0 will be released shortly. We've had a brief delay.
>>
>
>
> Actually,
>
> Archlinux released it yesterday. I don't know how they did it, but it came
> over in my system update. I uninstalled it promptly (I don't want to deal
> with a major version upgrade in my production environment), so I don't know
> it it was really 2.1 or 2.1RC. The package info shows lyx 2.1.0-1.
>
>
More info: the binary [1] was built on 4/17/14 by the maintainer. So it's
probably 2.1.RC, I'd guess.

S.

[1] ftp://ftp.lip6.fr/pub/lyx/stable/2.1.x/



>
>
> --
> __
> Stefano Franchi
> Associate Research Professor
> Department of Hispanic Studies Ph:   +1 (979) 845-2125
> Texas A&M University  Fax:  +1 (979) 845-6421
> College Station, Texas, USA
>
> stef...@tamu.edu
> http://stefano.cleinias.org
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas A&M University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-23 Thread stefano franchi
On Wed, Apr 23, 2014 at 10:07 AM, Richard Heck  wrote:

> On 04/23/2014 06:45 AM, Csikos Bela wrote:
>
>> aparsloe  írta:
>>
>>> On 23/04/2014 5:50 a.m., John Kane
>>>
>>> Currently I am
>>> running Ubuntu 13.10 with LyX 2.1.0. I seem to be having
>>>
>> [LONG SNIP]
>>
>>
>>> I'm the writer of the ShortInsetNames module. I tried it with
>>> 2.1.0beta2 earlier today and it worked. I've now installed 2.1.0 and
>>> it doesn't, but it's easily fixed. Open the module in a text editor
>>> and insert double quotes so that the relevant two lines look like:
>>>
>> Hello:
>>
>> You both mention lyx 2.1.0. Do you really mean 2.1.0 or would it be
>> 2.1.0rc1?
>>
>> I don't see reference to 2.1.0 on the lyx site (main page and under
>> recent news) and it was not announced in this list either.
>>
>
> LyX 2.1.0 will be released shortly. We've had a brief delay.
>


Actually,

Archlinux released it yesterday. I don't know how they did it, but it came
over in my system update. I uninstalled it promptly (I don't want to deal
with a major version upgrade in my production environment), so I don't know
it it was really 2.1 or 2.1RC. The package info shows lyx 2.1.0-1.

Stefano



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies Ph:   +1 (979) 845-2125
Texas A&M University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-23 Thread Richard Heck

On 04/23/2014 06:45 AM, Csikos Bela wrote:

aparsloe  írta:

On 23/04/2014 5:50 a.m., John Kane

Currently I am
running Ubuntu 13.10 with LyX 2.1.0. I seem to be having

[LONG SNIP]


I'm the writer of the ShortInsetNames module. I tried it with
2.1.0beta2 earlier today and it worked. I've now installed 2.1.0 and
it doesn't, but it's easily fixed. Open the module in a text editor
and insert double quotes so that the relevant two lines look like:

Hello:

You both mention lyx 2.1.0. Do you really mean 2.1.0 or would it be 2.1.0rc1?

I don't see reference to 2.1.0 on the lyx site (main page and under recent 
news) and it was not announced in this list either.


LyX 2.1.0 will be released shortly. We've had a brief delay.

Richard



Re: Problems with custom modules after upgrade to 2.1.0

2014-04-23 Thread Csikos Bela
aparsloe  írta:
>On 23/04/2014 5:50 a.m., John Kane
>
>Currently I am
>running Ubuntu 13.10 with LyX 2.1.0. I seem to be having

[LONG SNIP]
   
>I'm the writer of the ShortInsetNames module. I tried it with
>2.1.0beta2 earlier today and it worked. I've now installed 2.1.0 and
>it doesn't, but it's easily fixed. Open the module in a text editor
>and insert double quotes so that the relevant two lines look like:

Hello:

You both mention lyx 2.1.0. Do you really mean 2.1.0 or would it be 2.1.0rc1?

I don't see reference to 2.1.0 on the lyx site (main page and under recent 
news) and it was not announced in this list either.

bcsikos



Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread aparsloe


On 23/04/2014 5:50 a.m., John Kane wrote:
Currently I am running Ubuntu 13.10 with LyX 2.1.0. I seem to be 
having some problems with some of the custom modules I usually load.

Actually I have two different problems
The first problem is that I seem to have lost the ability to use a 
custom module (ShortInsertNames ). Typically, I will have Natbibapa, 
ShortInsetNames, Rnw(knitr) & ToDo loaded. Now when I compile and even 
when I do Document > I am getting an error, “Error reading 
ShortInsertNames when I try to load ShortInsetNames. Both the ToDo and 
ShortInsetNames are in /home/john/.lyx.
Interestingly enough Short Label but not Short Ref appears in Custom 
Insets and will insert an Undefined field in the document and I can 
compile the document.
The second problem is that whenever I try to compile a document with 
RnW(knitr) loaded I get an error message saying
An error occurred while running: Rscript –verbose –no-save –no-restore 
"/usr/share/lyx/scripts/lyxknitr.R" 
"/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/""lists.footnotes.endnotes.Rnw" 
"/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/""lists.footnotes.endnotes.tex"

ISO-8859-15 "/home/john/Lyx/"
This was occuring before the upgrade to 2.1.0 but there was no problem 
with ShortInsertNames before the upgrade. A look at 
/usr/share/lyx/scripts/lyxknitr.R says that that the file exists and 
when I open it, it looks fine.
The worst of it is, I cannot think of any changes I made to my setup 
except I added some Brother printer drivers to my Windows 7 setup 
(it's a dual-boot machine).
I'd appreciate any suggestions for either problem. If I can get the 
blasted ShortInsetNames to work again I can perhaps move the 
Rnw(knitr) problem to the knitr group


I have attached a small example file.

Hullo John.

I'm the writer of the ShortInsetNames module. I tried it with 2.1.0beta2 
earlier today and it worked. I've now installed 2.1.0 and it doesn't, 
but it's easily fixed. Open the module in a text editor and insert 
double quotes so that the relevant two lines look like:


InsetLayout "Flex:ShortLabel"

and

InsetLayout "Flex:ShortXRef"

The module as you have it at present lacks the double quotes, which seem 
to have become necessary only in the last "birth throes" of 2.1.0.


Andrew






Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Scott Kostyshak
On Tue, Apr 22, 2014 at 5:44 PM, Yihui Xie  wrote:
> Yes, please. Thanks!

I guess this is actually a duplicate of #6826.

Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Yihui Xie
Yes, please. Thanks!

Regards,
Yihui
--
Yihui Xie 
Web: http://yihui.name


On Tue, Apr 22, 2014 at 4:31 PM, Scott Kostyshak  wrote:
> On Tue, Apr 22, 2014 at 5:30 PM, Scott Kostyshak  wrote:
>> On Tue, Apr 22, 2014 at 3:44 PM, Yihui Xie  wrote:
>>
>>> To LyX developers: I think it will be much more helpful if LyX can
>>> catch the stderr output when R fails and display the error message in
>>> the dialog. The default error message "An error occurred while
>>> running" is not informative.
>>
>> Makes sense. You might want to open a ticket for this. It is related
>> to (but in my opinion different) http://www.lyx.org/trac/ticket/6826
>
> If you prefer, I will open the ticket and CC you. Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Scott Kostyshak
On Tue, Apr 22, 2014 at 5:30 PM, Scott Kostyshak  wrote:
> On Tue, Apr 22, 2014 at 3:44 PM, Yihui Xie  wrote:
>
>> To LyX developers: I think it will be much more helpful if LyX can
>> catch the stderr output when R fails and display the error message in
>> the dialog. The default error message "An error occurred while
>> running" is not informative.
>
> Makes sense. You might want to open a ticket for this. It is related
> to (but in my opinion different) http://www.lyx.org/trac/ticket/6826

If you prefer, I will open the ticket and CC you. Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Scott Kostyshak
On Tue, Apr 22, 2014 at 3:44 PM, Yihui Xie  wrote:

> To LyX developers: I think it will be much more helpful if LyX can
> catch the stderr output when R fails and display the error message in
> the dialog. The default error message "An error occurred while
> running" is not informative.

Makes sense. You might want to open a ticket for this. It is related
to (but in my opinion different) http://www.lyx.org/trac/ticket/6826

As motivation, this has come up in a few places, for example:
http://www.lyx.org/trac/ticket/8940#comment:2
http://stackoverflow.com/questions/16118901/cannot-run-knitr-on-lyx-for-macbook

Scott


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread Yihui Xie
Whenever you have got an error with the Rnw/knitr module, be sure to
look at View->Messages. The error message in the dialog box does not
tell you much about what was really going on, and the real error
message is in the Messages pane.

To LyX developers: I think it will be much more helpful if LyX can
catch the stderr output when R fails and display the error message in
the dialog. The default error message "An error occurred while
running" is not informative.

Regards,
Yihui
--
Yihui Xie 
Web: http://yihui.name


On Tue, Apr 22, 2014 at 12:50 PM, John Kane  wrote:
> Currently I am running Ubuntu 13.10 with LyX 2.1.0. I seem to be having some
> problems with some of the custom modules I usually load.
> Actually I have two different problems
> The first problem is that I seem to have lost the ability to use a custom
> module (ShortInsertNames ). Typically, I will have Natbibapa,
> ShortInsetNames, Rnw(knitr) & ToDo loaded. Now when I compile and even when
> I do Document > I am getting an error, "Error reading ShortInsertNames when
> I try to load ShortInsetNames. Both the ToDo and ShortInsetNames are in
> /home/john/.lyx.
> Interestingly enough Short Label but not Short Ref appears in Custom Insets
> and will insert an Undefined field in the document and I can compile the
> document.
> The second problem is that whenever I try to compile a document with
> RnW(knitr) loaded I get an error message saying
> An error occurred while running: Rscript -verbose -no-save -no-restore
> "/usr/share/lyx/scripts/lyxknitr.R"
> "/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/""lists.footnotes.endnotes.Rnw"
> "/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/""lists.footnotes.endnotes.tex"
> ISO-8859-15 "/home/john/Lyx/"
> This was occuring before the upgrade to 2.1.0 but there was no problem with
> ShortInsertNames before the upgrade. A look at
> /usr/share/lyx/scripts/lyxknitr.R says that that the file exists and when I
> open it, it looks fine.
> The worst of it is, I cannot think of any changes I made to my setup except
> I added some Brother printer drivers to my Windows 7 setup (it's a dual-boot
> machine).
> I'd appreciate any suggestions for either problem. If I can get the blasted
> ShortInsetNames to work again I can perhaps move the Rnw(knitr) problem to
> the knitr group
>
> I have attached a small example file.


Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread John Kane
 
Currently I am running Ubuntu 13.10 with LyX 2.1.0. I seem to be having some 
problems with some of the custom modules I usually load. 
Actually I have two different problems 
The first problem is that I seem to have lost the ability to use a custom 
module (ShortInsertNames ). Typically, I will have Natbibapa, ShortInsetNames, 
Rnw(knitr) & ToDo loaded. Now when I compile and even when I do Document > I am 
getting an error, “Error reading ShortInsertNames when I try to load 
ShortInsetNames. Both the ToDo and ShortInsetNames are in /home/john/.lyx. 
Interestingly enough Short Label but not Short Ref appears in Custom Insets and 
will insert an Undefined field in the document and I can compile the document.
The second problem is that whenever I try to compile a document with RnW(knitr) 
loaded I get an error message saying 
An error occurred while running: Rscript –verbose –no-save –no-restore 
"/usr/share/lyx/scripts/lyxknitr.R" 
"/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/""lists.footnotes.endnotes.Rnw" 
"/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/""lists.footnotes.endnotes.tex" 
ISO-8859-15 "/home/john/Lyx/"
This was occuring before the upgrade to 2.1.0 but there was no problem with 
ShortInsertNames before the upgrade. A look at 
/usr/share/lyx/scripts/lyxknitr.R says that that the file exists and when I 
open it, it looks fine.
The worst of it is, I cannot think of any changes I made to my setup except I 
added some Brother printer drivers to my Windows 7 setup (it's a dual-boot 
machine).
I'd appreciate any suggestions for either problem. If I can get the blasted 
ShortInsetNames to work again I can perhaps move the Rnw(knitr) problem to the 
knitr group

I have attached a small example file. 


Custom.moudules.lyx
Description: application/lyx