Re: chunk unknown

2016-08-25 Thread Richard Heck
On 08/25/2016 04:27 PM, Hobbs,Tom wrote:
> I am using LyX 2.2.1 under Mac OS 10.10.3.  I recently updated to LyX
> 2.2.1.  I now find that documents produced using Sweave under LyX
> 2.0.3 produce the message “Layout chunk was not found” in 2.0.1 even
> thought the Sweave module is loaded. 

This sounds like a failure of the lyx2lyx format conversion. We can try
to fix it, but it is probably easiest for you to convert these
paragraphs to the new insets

> There is no option for Chunk when I start a new document under 2.0.3,
> even though the Sweave module is loaded.  LyX 2.0.3 continues to work
> properly with Sweave. It seems that 2.2.1 can’t find the Sweave module. 

In 2.1.x, the Chunk LAYOUT was replaced by a chunk INSET. You can find
it at Insert> Custom Insets> Chunk. Similarly for the other Sweave-y stuff.

If you use these alot, you might want to bind them to a key. The command
you want to bind is "flex-insert Chunk", etc. For the ones with spaces,
you need to quote the name of the inset.

Richard



Re: chunk unknown

2016-08-25 Thread Hobbs,Tom

On Aug 25, 2016, at 3:20 PM, Richard Heck 
> wrote:

On 08/25/2016 04:27 PM, Hobbs,Tom wrote:
I am using LyX 2.2.1 under Mac OS 10.10.3.  I recently updated to LyX
2.2.1.  I now find that documents produced using Sweave under LyX
2.0.3 produce the message “Layout chunk was not found” in 2.0.1 even
thought the Sweave module is loaded.

This sounds like a failure of the lyx2lyx format conversion. We can try
to fix it, but it is probably easiest for you to convert these
paragraphs to the new insets

There is no option for Chunk when I start a new document under 2.0.3,
even though the Sweave module is loaded.  LyX 2.0.3 continues to work
properly with Sweave. It seems that 2.2.1 can’t find the Sweave module.

In 2.1.x, the Chunk LAYOUT was replaced by a chunk INSET. You can find
it at Insert> Custom Insets> Chunk. Similarly for the other Sweave-y stuff.

If you use these alot, you might want to bind them to a key. The command
you want to bind is "flex-insert Chunk", etc. For the ones with spaces,
you need to quote the name of the inset.

Richard

Many thanks, Richard.  That seems to fix things.

Tom





chunk unknown

2016-08-25 Thread Hobbs,Tom
I am using LyX 2.2.1 under Mac OS 10.10.3.  I recently updated to LyX 2.2.1.  I 
now find that documents produced using Sweave under LyX 2.0.3 produce the 
message “Layout chunk was not found” in 2.0.1 even thought the Sweave module is 
loaded. There is no option for Chunk when I start a new document under 2.0.3, 
even though the Sweave module is loaded.  LyX 2.0.3 continues to work properly 
with Sweave. It seems that 2.2.1 can’t find the Sweave module.

I would be very grateful for help.

Tom


N. Thompson Hobbs
Professor,Natural Resource Ecology Laboratory, Department
of Ecosystem Science and Sustainability, and
Graduate Degree Program in Ecology
Colorado State University
Fort Collins, CO 80524
970-491-5738
www.nrel.colostate.edu/hobbs-home.html



For group mailings:
Use of this mail list is intended exclusively for
internal communication at Colorado State University.
Any unauthorized use is prohibited.








RE: LyX GUI unresponsive over ssh

2016-08-25 Thread Boylan, Ross
It seems the GUI is just incredibly slow, taking maybe 30 to 60 seconds to 
respond to an event.  That includes even trivial operations like clicking 
somewhere and having the cursor appear.  In the interim I see continuous 
network activity at about 265KiB/s.

Perhaps this is some  problem with fonts so that I'm getting bitmaps?  Even so, 
it seems to be repainting the entire window whenever anything changes.

I was able to use the GUI to export to Lyx 2.0 format, and I can work on that 
on L. AFAIK I wasn't using any features that require a later version.

So my immediate problem of working on the file is solved via the conversion, 
and the not being able to work remotely issue is at least partly explained.  
I'd still like to know more, like why the remote access is so slow and how to 
convert the format from the command line.

Ross

From: Boylan, Ross
Sent: Thursday, August 25, 2016 1:46 PM
To: lyx-users@lists.lyx.org
Subject: LyX GUI unresponsive over ssh

I have a LyX document created in the current version of Debian that I am having 
trouble working with from an older version.

The document was created with LyX 2.1.2 built against Qt 4.8.6 on Xorg 1.12.4 
(remote machine R).

My local machine (call it L) has LyX 2.0.3 against Qt 4.8.1, Xorg 1.12.4.

1.  Copying the .lyx file from R to L and attempting to open it on L -> message 
the file is "from a newer version of LyX and the lyx2Lyx script failed to 
convert it".

2.  Using ssh -Y to connect from L to R and launching  LyX on R up the GUI on 
L.  Moving the mouse around in the window changes the cursor, but clicking has 
no effect in the file menus, the main window or the scrollbar.  I was not able 
to find any error reports on the terminal from which LyX was launched or in 
.xsession-errors on either R or L.

I was able to run remotely from another machine (call it A) that was also 
running an older version of Debian (though maybe not quite as old).  And I can 
run and interact with the xfontself, launched from R, on L.

Aside from possible software differences between L and A, their connections to 
R differed.  A's connection was high-speed and probably not subject to a lot of 
port blocking.  L's connection is slower, somewhat unreliable, and through a 
router that does very selective port forwarding.

Downgrading the file on R seems as if it might solve the problem, though doing 
so without being able to run the GUI is a bit challenging (maybe somehow use 
lyx -x and LFUN_BUFFER_EXPORT, but I'm not sure of the exact syntax?).

And it would be nice if I could get the remote GUI to work, or at least be able 
to diagnose why it isn't working.

Any suggestions?

Thanks.
Ross Boylan



Re: LyX GUI unresponsive over ssh

2016-08-25 Thread Steve Litt
On Thu, 25 Aug 2016 22:30:44 +
"Boylan, Ross"  wrote:

> It seems the GUI is just incredibly slow, taking maybe 30 to 60
> seconds to respond to an event.  That includes even trivial
> operations like clicking somewhere and having the cursor appear.  In
> the interim I see continuous network activity at about 265KiB/s.
> 
> Perhaps this is some  problem with fonts so that I'm getting
> bitmaps?  Even so, it seems to be repainting the entire window
> whenever anything changes.
> 
> I was able to use the GUI to export to Lyx 2.0 format, and I can work
> on that on L. AFAIK I wasn't using any features that require a later
> version.
> 
> So my immediate problem of working on the file is solved via the
> conversion, and the not being able to work remotely issue is at least
> partly explained.  I'd still like to know more, like why the remote
> access is so slow and how to convert the format from the command line.
> 
> Ross
> 
> From: Boylan, Ross
> Sent: Thursday, August 25, 2016 1:46 PM
> To: lyx-users@lists.lyx.org
> Subject: LyX GUI unresponsive over ssh
> 
> I have a LyX document created in the current version of Debian that I
> am having trouble working with from an older version.
> 
> The document was created with LyX 2.1.2 built against Qt 4.8.6 on
> Xorg 1.12.4 (remote machine R).
> 
> My local machine (call it L) has LyX 2.0.3 against Qt 4.8.1, Xorg
> 1.12.4.
> 
> 1.  Copying the .lyx file from R to L and attempting to open it on L
> -> message the file is "from a newer version of LyX and the lyx2Lyx
> script failed to convert it".
> 
> 2.  Using ssh -Y to connect from L to R and launching  LyX on R up
> the GUI on L.  Moving the mouse around in the window changes the
> cursor, but clicking has no effect in the file menus, the main window
> or the scrollbar.  I was not able to find any error reports on the
> terminal from which LyX was launched or in .xsession-errors on either
> R or L.
> 
> I was able to run remotely from another machine (call it A) that was
> also running an older version of Debian (though maybe not quite as
> old).  And I can run and interact with the xfontself, launched from
> R, on L.
> 
> Aside from possible software differences between L and A, their
> connections to R differed.  A's connection was high-speed and
> probably not subject to a lot of port blocking.  L's connection is
> slower, somewhat unreliable, and through a router that does very
> selective port forwarding.
> 
> Downgrading the file on R seems as if it might solve the problem,
> though doing so without being able to run the GUI is a bit
> challenging (maybe somehow use lyx -x and LFUN_BUFFER_EXPORT, but I'm
> not sure of the exact syntax?).
> 
> And it would be nice if I could get the remote GUI to work, or at
> least be able to diagnose why it isn't working.
> 
> Any suggestions?
> 
> Thanks.
> Ross Boylan

Doesn't surprise me one bit. You're sending every X command over that
encrypted wire, not just document parts. What you're describing sounds
consistent with the results I've gotten running X programs over ssh,
especially over the Internet.

Perhaps you could install LyX and the sshfs client on your laptop,
mount the directory with the LyX file via sshfs, and then have all your
X on the laptop side.

HTH,

SteveT

Steve Litt
August 2016 featured book: Manager's Guide to Technical Troubleshooting
  Brand new, second edition
http://www.troubleshooters.com/mgr