aparsloe | 30 Oct 04:02 2014
Picon

Change in treatment of \jobname in LyX2.1.2 from 2.1.0

The treatment of \jobname in LyX 2.1.2 has changed compared with 2.1.0 
-- although I'm having to rely on memory for that claim since I've 
uninstalled 2.1.0. But some latex code that worked with 2.1.0 no longer 
works with 2.1.2.

  If you create a LyX document,  call it test.lyx, and in it in ERT 
write \jobname then compile to pdf, the pdf contains the word "test". 
However if you wrap the ERT in a preview inset, it will snap into view 
with some name like "lyxpreviewbT4684", although the pdf still compiles 
to display "test". In other words, the preview is giving a false 
preview. Unfortunately my code which was designed to work in preview 
insets and used \jobname as referring to the wider document, fails as a 
result. (Perhaps this is a consequence of the countermeasures to the 
tabular bug in LyX 2.1.1?)

Andrew

Thomas Hartkens | 29 Oct 21:27 2014
Picon

New layout for moderncv class

Dear all,

The LaTex class "moderncv" provides commands for typesetting curriculum vitaes in various
styles. The current LyX layout requires many embedded native LaTeX commands which is quite difficult to learn for non-expert users.

I have re-written the layout and attached the layout to this file.

Now you can use the moderncv class within LyX without any embedded LaTex code. I hope this makes the fantastic moderncv class available to a wider range of users.

I also attached an example CV to this email. It makes sense to have a look at this example first and adopt it to your needs rather than starting from scratch.

Do you think it makes sense to add this layout including the example document to the standard distribution of LyX? In this case it would be even easier for LyX users to access this new layout ...

What do you think?

Best wishes,

Thomas


--
------------------------------------------------------------
Dr. Thomas Hartkens
13086 Berlin

www: www.hartkens.de/thomas
email: thomas <at> hartkens.de
skype: thomas.hartkens
Attachment (moderncv.layout): application/octet-stream, 10 KiB
Attachment (moderncv-example.tar.gz): application/x-gzip, 810 KiB
Scott Kostyshak | 28 Oct 12:03 2014

Help with patch for "word selection mode" on double click

I have a patch that enables "word selection mode" on double click. It
seems to work well. The patch is here:

http://www.lyx.org/trac/attachment/ticket/7890/0001-Fix-9160-and-7890.patch

The only major issue is that when dragging to the left, you cannot
highlight the first word. Does anyone have an idea for where to fix
this?

The following patch might give a clue as to where the problem is. When
applied, you can select the first word. It is not meant to be taken as
a correct patch:

http://www.lyx.org/trac/attachment/ticket/7890/0002-HACK-just-to-show-where-the-problem-is.patch

Scott

Richard Heck | 27 Oct 16:29 2014

Anyone Using 2.2dev on Windows?


Is anyone out there using 2.2dev on Windows? If so, could you have a 
look at bug #9234?

Thanks,
Richard

Richard Heck | 27 Oct 16:12 2014

Tarballs for 2.1.2.1


I have built the 2.1.2.1 release and put the tarballs here:
     ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/2.1.2.1/
Stephan, can you please test and build an official binary from them?

Richard

Stephan Witt | 25 Oct 23:56 2014
Picon
Picon

Compiler errors with Cmake build with clang6.0

I’ve tested the LyX build with clang6.0 - the system compiler of Mac OS X 10.10.
The automake build is working. The Cmake generated project build stops with
typedef redefinition errors. Somehow the strfwd.h causes the error about
redefinition of docstring and other types. I’d guess the compiler flags are
different. But are the typedefs really equivalent? Isn’t this a real problem?

Stephan

These are the error messages:

CompileC
/Users/stephan/git/lyx-build/cmake/2.2.0dev/src/graphics/LyX.build/Debug/graphics.build/Objects-normal/x86_64/GraphicsCacheItem.o
src/graphics/GraphicsCacheItem.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/stephan/git/LyX-2.2-2.2.0dev
    export LANG=en_US.US-ASCII

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack
-fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers
-Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual
-Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function
-Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body
-Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion
-Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion
-Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\"Debug\"
-DBOOST_SIGNALS_NO_DEPRECATION_WARNING=1 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
-fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof
-mmacosx-version-min=10.10 -Wno-sign-conversion
-I/Users/stephan/git/lyx-build/cmake/2.2.0dev/lib/Debug/include
-I/Users/stephan/git/lyx-build/cmake/2.2.0dev -I/Users/stephan/git/LyX-2.2-2.2.0dev/src
-I/Users/Shared/LyX/utilities/include -I/Users/stephan/git/LyX-2.2-2.2.0dev/boost
-I/Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics
-I/Users/stephan/git/lyx-build/cmake/2.2.0dev/src/graphics/LyX.build/Debug/graphics.build/DerivedSources/x86_64
-I/Users/stephan/git/lyx-build/cmake/2.2.0dev/src/graphics/LyX.build/Debug/graphics.build/DerivedSources
-Wmost -Wno-four-char-constants -Wno-unknown-pragmas
-F/Users/stephan/git/lyx-build/cmake/2.2.0dev/lib/Debug -Wall -Wunused-parameter
-fno-strict-aliasing -Wall -Wunused-parameter -fno-strict-aliasing -D_DEBUG -g3
-DBOOST_USER_CONFIG=<config.h> -MMD -MT dependencies -MF
/Users/stephan/git/lyx-build/cmake/2.2.0dev/src/graphics/LyX.build/Debug/graphics.build/Objects-normal/x86_64/GraphicsCacheItem.d
--serialize-diagnostics
/Users/stephan/git/lyx-build/cmake/2.2.0dev/src/graphics/LyX.build/Debug/graphics.build/Objects-normal/x86_64/GraphicsCacheItem.dia
-c /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp -o /Users/stephan/git/lyx-build/cmake/2.2.0dev/src/graphics/LyX.build/Debug/graphics.build/Objects-normal/x86_64/GraphicsCacheItem.o

In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:22:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/Format.h:15:
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/docstring.h:27:38: error: typedef
redefinition with different types ('std::basic_string<char_type>' vs
'std::basic_string<char_type, std::char_traits<char_type>, std::allocator<char_type> >')
typedef std::basic_string<char_type> docstring;
                                     ^
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:15:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.h:31:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsTypes.h:18:
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/strfwd.h:73:30: note: previous definition is here
        std::allocator<char_type> > docstring;
                                    ^
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:22:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/Format.h:17:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/OutputParams.h:17:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/Changes.h:20:
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/docstream.h:37:39: error: typedef
redefinition with different types ('std::basic_istream<char_type>' vs
'std::basic_istream<char_type, std::char_traits<char_type> >')
typedef std::basic_istream<char_type> idocstream;
                                      ^
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:15:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.h:31:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsTypes.h:18:
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/strfwd.h:76:69: note: previous definition is here
typedef std::basic_istream<char_type, std::char_traits<char_type> > idocstream;
                                                                    ^
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:22:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/Format.h:17:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/OutputParams.h:17:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/Changes.h:20:
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/docstream.h:49:39: error: typedef
redefinition with different types ('std::basic_ostream<char_type>' vs
'std::basic_ostream<char_type, std::char_traits<char_type> >')
typedef std::basic_ostream<char_type> odocstream;
                                      ^
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:15:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.h:31:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsTypes.h:18:
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/strfwd.h:79:69: note: previous definition is here
typedef std::basic_ostream<char_type, std::char_traits<char_type> > odocstream;
                                                                    ^
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:22:
/Users/stephan/git/LyX-2.2-2.2.0dev/src/Format.h:63:34: error: incompatible operand types
('const std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') and
'const value_type' (aka 'const std::__1::basic_string<char>'))
                return extension_list_.empty() ? empty_string() : extension_list_[0];
                                               ^ ~~~~~~~~~~~~~~   ~~~~~~~~~~~~~~~~~~
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:25:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/support/FileName.h:15:
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/os.h:156:25: error: no viable conversion from
'const std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') to
'const std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >')
                  std::string const & path = empty_string());
                                      ^      ~~~~~~~~~~~~~~
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:15:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.h:33:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signal.hpp:27:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/signal0.hpp:24:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/signal_template.hpp:21:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/slot.hpp:15:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/trackable.hpp:13:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/type_traits.hpp:49:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/type_traits/is_complex.hpp:12:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:247:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:131:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:15:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:1293:5:
note: candidate constructor not viable: cannot convert argument of incomplete type 'const
std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') to 'const
std::__1::basic_string<char> &'
    basic_string(const basic_string& __str);

^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:1302:31:
note: candidate constructor not viable: cannot convert argument of incomplete type 'const
std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') to 'const
value_type *' (aka 'const char *')
    _LIBCPP_INLINE_VISIBILITY basic_string(const value_type* __s);
                              ^
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:25:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/support/FileName.h:15:
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/os.h:156:25: note: passing argument to
parameter 'path' here
                  std::string const & path = empty_string());
                                      ^
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:25:
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/FileName.h:264:46: error: no viable conversion
from 'const std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') to
'const std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >')
        std::string relFileName(std::string const & buffer_path = empty_string()) const;
                                                    ^             ~~~~~~~~~~~~~~
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:15:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.h:33:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signal.hpp:27:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/signal0.hpp:24:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/signal_template.hpp:21:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/slot.hpp:15:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/trackable.hpp:13:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/type_traits.hpp:49:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/type_traits/is_complex.hpp:12:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:247:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:131:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:15:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:1293:5:
note: candidate constructor not viable: cannot convert argument of incomplete type 'const
std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') to 'const
std::__1::basic_string<char> &'
    basic_string(const basic_string& __str);

^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:1302:31:
note: candidate constructor not viable: cannot convert argument of incomplete type 'const
std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') to 'const
value_type *' (aka 'const char *')
    _LIBCPP_INLINE_VISIBILITY basic_string(const value_type* __s);
                              ^
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:25:
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/FileName.h:264:46: note: passing argument to
parameter 'buffer_path' here
        std::string relFileName(std::string const & buffer_path = empty_string()) const;
                                                    ^
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/FileName.h:266:49: error: no viable conversion
from 'const std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') to
'const std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >')
        std::string outputFileName(std::string const & buf_path = empty_string()) const;
                                                       ^          ~~~~~~~~~~~~~~
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:15:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.h:33:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signal.hpp:27:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/signal0.hpp:24:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/signal_template.hpp:21:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/slot.hpp:15:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/trackable.hpp:13:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/type_traits.hpp:49:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/type_traits/is_complex.hpp:12:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:247:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:131:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:15:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:1293:5:
note: candidate constructor not viable: cannot convert argument of incomplete type 'const
std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') to 'const
std::__1::basic_string<char> &'
    basic_string(const basic_string& __str);

^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:1302:31:
note: candidate constructor not viable: cannot convert argument of incomplete type 'const
std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') to 'const
value_type *' (aka 'const char *')
    _LIBCPP_INLINE_VISIBILITY basic_string(const value_type* __s);
                              ^
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:25:
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/FileName.h:266:49: note: passing argument to
parameter 'buf_path' here
        std::string outputFileName(std::string const & buf_path = empty_string()) const;
                                                       ^
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/FileName.h:289:38: error: no viable conversion
from 'const std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') to
'const std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >')
        mangledFileName(std::string const & dir = empty_string()) const;
                                            ^     ~~~~~~~~~~~~~~
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:15:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.h:33:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signal.hpp:27:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/signal0.hpp:24:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/signal_template.hpp:21:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/slot.hpp:15:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/signals/trackable.hpp:13:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/type_traits.hpp:49:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/boost/boost/type_traits/is_complex.hpp:12:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:247:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:131:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:15:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:1293:5:
note: candidate constructor not viable: cannot convert argument of incomplete type 'const
std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') to 'const
std::__1::basic_string<char> &'
    basic_string(const basic_string& __str);

^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:1302:31:
note: candidate constructor not viable: cannot convert argument of incomplete type 'const
std::string' (aka 'const basic_string<char, char_traits<char>, allocator<char> >') to 'const
value_type *' (aka 'const char *')
    _LIBCPP_INLINE_VISIBILITY basic_string(const value_type* __s);
                              ^
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:25:
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/FileName.h:289:38: note: passing argument to
parameter 'dir' here
        mangledFileName(std::string const & dir = empty_string()) const;
                                            ^
/Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:378:39: error:
implicit instantiation of undefined template 'std::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >'
        docstring const displayed_filename = makeDisplayPath(filename_.absFileName());
                                             ^
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:15:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.h:31:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsTypes.h:18:
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/strfwd.h:54:64: note: template is declared here
template<typename Char, typename Traits, typename Alloc> class basic_string;
                                                               ^
/Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:378:18: error:
implicit instantiation of undefined template 'std::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >'
        docstring const displayed_filename = makeDisplayPath(filename_.absFileName());
                        ^
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.cpp:15:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsCacheItem.h:31:
In file included from /Users/stephan/git/LyX-2.2-2.2.0dev/src/graphics/GraphicsTypes.h:18:
/Users/stephan/git/LyX-2.2-2.2.0dev/src/support/strfwd.h:54:64: note: template is declared here
template<typename Char, typename Traits, typename Alloc> class basic_string;
                                                               ^
10 errors generated.

Uwe Stöhr | 26 Oct 13:37 2014
Picon

3 compilation warnings in trunk with conversion of double to int

After a long time I found time to take care of LyX. At first I compiles 
master and got 3 compilation warnings:

* ..\..\src\Row.cpp(386): warning C4244: '=': conversion from 'double' 
to 'int', possible dataloss 
[D:\LyXGit\Master\compile-result\src\LyX.vcxproj]

* ..\..\src\Row.cpp(408): warning C4244: '=': conversion from 'double' 
to 'int', possible dataloss 
[D:\LyXGit\Master\compile-result\src\LyX.vcxproj]

* ..\..\src\TextMetrics.cpp(807): warning C4244: '=': conversion from 
'double' to 'int', possible dataloss 
[D:\LyXGit\Master\compile-result\src\LyX.vcxproj]

Can anybody plase have a look?

thanks and regards
Uwe

p.s. the 2.1.x branch compiles without warnings

Richard Heck | 26 Oct 23:01 2014

Test


Is the list working now? Sent at 10PM GMT on Sunday.

Stephan Witt | 26 Oct 01:00 2014
Picon
Picon

PATCH to solve the sub process problems on Mac OS X 10.10 (Yosemite)

Hi LyXers,

the latest days we got more and more reports about LyX not working
on the newest Mac OS X Yosemite. See here for an excellent analysis
of the cause of the problem:
http://tex.stackexchange.com/questions/208181/why-did-my-tex-related-gui-program-stop-working-in-mac-os-x-yosemite

I've made a patch to fix the problems for LyX 2.1.2. See the attachment.
This patch may be the core of an emergency release LyX 2.1.2.1.

Alternatively, a new version 2.1.3 can be made with this patch on top of
the 2.1.x branch. This may be an option if possible in short time.

Is there any good argument pro or contra for the alternatives?
Is there a important bug fix in 2.1.x since 2.1.2 we should include?
I'd like to hear opinions from others.

Stephan

In case one is on Yosemite already I've uploaded the disk image of
a release candidate to test it here:

https://dl.dropboxusercontent.com/u/27842660/LyX-2.1.2%2Bqt4-x86_64-cocoa.dmg
https://dl.dropboxusercontent.com/u/27842660/LyX-2.1.2%2Bqt4-x86_64-cocoa.dmg.sig
Attachment (0002-stable-Yosemite.patch): application/octet-stream, 6583 bytes

Scott Kostyshak | 23 Oct 11:38 2014

Coding practice: OK to leave dangling pointer if not currently used?

A commit that I introduced earlier caused crashes and I had to revert.
The reason was because I used a dangling pointer. It did not occur to
me that the pointer could be dangling. I just assumed it would not be
(I've learned my lesson). The reason why it becomes dangling is
because I add code after a dispatch and thus the buffer view might
have been destroyed (e.g. from closing a buffer or closing a view).

My solution is to simply refresh the pointer (I can get it from
currentBufferView()). However, this got me thinking: shouldn't we set
the pointer to null every time we know that it was destroyed? What if
we don't use that pointer again (as was the case before my commit)?
Looking back, it is pretty obvious that the pointer could have become
dangling and I should have realized this potential problem.

I guess I have two questions:
(1) Are there any comments on my patch?

(2) Even if I did not want to add code to GuiView::dispatch, would it
have been a reasonable patch to _only_ refresh the pointer after the
dispatch, just in case someone wanted to add code to it eventually?

Scott
Danilo Diedrichs | 15 Oct 20:27 2014

www.lyx.org

Hello,

The link to download LyX-2.1.2 for Windows (both the “Bundle” and “Installer”) seem to be broken.  Can you fix them?

Thanks!

 

D. Diedrichs

 


Gmane