<div dir="ltr"><div dir="ltr">That's awesome news, looking forward to those fixes!!!<div><br></div><div>In the meantime, in order to use the future dev snapshot I've tried to learn how to build QScintilla from sources so I wouldn't need to </div><div>wait for the pypi wheels and I've described all the steps I've followed as adviced:</div><div><br></div><div><div>BUILD QSCINTILLA.DLL</div><div>====================</div><div><br></div><div>1st attempt</div><div>-----------</div><div><br></div><div>- Start vs2015 x86 command prompt</div><div>- cd d:\ && mkdir test_qscintilla</div><div>- wget <a href="https://www.riverbankcomputing.com/static/Downloads/QScintilla/QScintilla_gpl-2.11.2.dev1905090903.zip">https://www.riverbankcomputing.com/static/Downloads/QScintilla/QScintilla_gpl-2.11.2.dev1905090903.zip</a></div><div>- 7z x QScintilla_gpl-2.11.2.dev1905090903.zip</div><div><br></div><div>Section `Installation on Windows` in the doc/html-Qt4Qt5/index.html says:</div><div><br></div><div>> Before compiling QScintilla on Windows you should remove the Qsci directory</div><div>> containing the QScintilla header files from any previous installation.</div><div><br></div><div>- cd Qt4Qt5</div><div>- rf -rf Qsci</div><div>- set path=c:\Qt\5.11.3\msvc2015\bin;%path%</div><div>- qmake -makefile <a href="http://qscintilla.pro">qscintilla.pro</a></div><div>- nmake</div><div><br></div><div>It'll complain the Qsci header files missing... so probably docs are wrong here</div><div><br></div><div>2nd attempt</div><div>-----------</div><div><br></div><div>Let's try again...</div><div><br></div><div>- cd d:\test_qscintilla</div><div>- rm -rf QScintilla_gpl-2.11.2.dev1905090903</div><div>- 7z x QScintilla_gpl-2.11.2.dev1905090903.zip</div><div>- Open <a href="http://qscintilla.pro">qscintilla.pro</a> with qtcreator + configure for msvc2015</div><div>- Select release + build, you should get qscintilla2_qt5.dll</div><div>- copy ..\Qt4Qt5\build-qscintilla-Desktop_Qt_5_11_3_MSVC2015_32bit-Release\release\qscintilla2_qt5.dll c:\Qt\5.11.3\msvc2015\bin</div><div><br></div><div>PYTHON BINDINGS</div><div>===============</div><div><br></div><div>First, let's make sure sip.exe is on path:</div><div><br></div><div>- set path=D:\virtual_envs\sip-4.19.14\sipgen;%path%</div><div><br></div><div>and to confirm just do `where sip`</div><div><br></div><div>Now let's enable some virtualenv with pyqt5 installed:</div><div><br></div><div>- cd d:\mcve_qscintilla\QScintilla_gpl-2.11.2.dev1905090903\Python</div><div>- d:\virtual_envs\py364_32\Scripts\activate</div><div><br></div><div>And finally we configure:</div><div><br></div><div>(py364_32) d:\mcve_qscintilla\QScintilla_gpl-2.11.2.dev1905090903\Python>python configure.py --pyqt=PyQt5 --qsci-incdir=d:\mcve_qscintilla\QScintilla_gpl-2.11.2.dev1905090903\Qt4Qt5 --qsci-libdir=d:\mcve_qscintilla\QScintilla_gpl-2.11.2.dev1905090903\Qt4Qt5\build-qscintilla-Desktop_Qt_5_11_3_MSVC2015_32bit-Release\release</div><div>Configuring QScintilla 2.11.2.dev1905090903...</div><div>QScintilla 2.11.2.dev1905090903 is being used.</div><div>The QScintilla .sip files will be installed in</div><div>D:\virtual_envs\py364_32\sip\PyQt5.</div><div>QScintilla will be installed in</div><div>D:\virtual_envs\py364_32\Lib\site-packages\PyQt5.</div><div>PyQt 5.12 is being used.</div><div>Qt 5.12.1 is being used.</div><div>sip 4.19.14 is being used.</div><div>The sip executable is D:\virtual_envs\sip-4.19.14\sipgen\sip.exe.</div><div>The PEP 484 stubs will be installed in</div><div>D:\virtual_envs\py364_32\Lib\site-packages\PyQt5.</div><div>The QScintilla API file will be installed in</div><div>C:/Qt/5.11.3/msvc2015\qsci\api\python.</div><div>Generating the C++ source for the Qsci module...</div><div>Generating the .pro file for the Qsci module...</div><div>Generating the QScintilla API file...</div><div>Generating the top-level .pro file...</div><div>Generating the Makefiles...</div><div><br></div><div>- I open QScintilla.pro on qtcreator + configure msvc2015 and I build, I'll get</div><div>these errors:</div><div><br></div><div><a href="https://dl.dropboxusercontent.com/s/6h275m4b8hptsp3/2019-05-15_12-37-00.txt">https://dl.dropboxusercontent.com/s/6h275m4b8hptsp3/2019-05-15_12-37-00.txt</a></div><div><br></div><div>QUESTIONS:</div><div><br></div><div>- Is it really necessary to copy qscintilla2_qt5 to the qt directory?</div><div>- If you look at the content of the python bindings compilation output, at which point I've messed up?</div></div><div>- Summing up, could you describe the right way to build the QScintilla python bindings from source on windows? It feels</div><div>to me the steps living in the documentation are outdated</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 15, 2019 at 11:36 AM Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 14/05/2019 22:59, Scener Spanish wrote:<br>
> That's a good advice, I'll try to allocate some time this week with all <br>
> the<br>
> steps and where I've got stuck, in the meantime... I'm sure you're <br>
> following<br>
> the other thread but if you don't Neil has explained a little bit about <br>
> the<br>
> meaning of that variable, pasting literally here:<br>
> <br>
> X has the concept of a ‘primary selection’ which is the most recently<br>
>> selected text in any application and which can be pasted by clicking <br>
>> the<br>
>> middle mouse button.<br>
>> selBackground2 is the colour used for the background of a<br>
>> non-primary-selection on X. It should never be seen on Windows or <br>
>> macOS<br>
>> which don’t have primary selections.<br>
>> When the user makes a selection on X, this is the primary selection <br>
>> but<br>
>> it should be displayed similarly to other platforms with the colours<br>
>> defined by SCI_SETSELBACK. But you still want a visual distinction <br>
>> between<br>
>> the primary selection and non-primary-selections (so you see which <br>
>> text<br>
>> will be used for a middle-click). Therefore the colour of this <br>
>> selection<br>
>> changes to selBackground2 once a new primary selection is made, <br>
>> commonly in<br>
>> a different application.<br>
>> Neil<br>
> <br>
> <br>
> Hope this helps... so yeah, this clarifies this indeed a QScintilla bug<br>
> afterall ;)<br>
<br>
Thanks - that was the clue I needed. Tonight's snapshot should fix both <br>
tests.<br>
<br>
Phil<br>
</blockquote></div>