[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-frameworks-devel
Subject:    =?UTF-8?Q?Re=3A_KSyntaxHighlighting=3A_My_changes_to_data_files_?= =?UTF-8?Q?don=E2=80=99t_seem_to_a
From:       Adrian Chaves <adrian () chaves ! io>
Date:       2019-11-12 17:36:25
Message-ID: 82cf542a288a627dc83329d66bb1fff2 () chaves ! io
[Download RAW message or body]

I'll go ahead and work on the system-level file to test changes, but
please do let me know if you can think an way that I can avoid that in
the future. 

On 2019-11-01 11:34, Adrian Chaves wrote:

> > What does `ldd build/bin/syntax/testhighlighter_test` tell you?
> 
> [adrian@pondal build]$ ldd bin/testhighlighter_test | grep \
> libKF5SyntaxHighlighting.so.5 libKF5SyntaxHighlighting.so.5 => \
> /home/adrian/proxectos/syntax-highlighting/build/bin/libKF5SyntaxHighlighting.so.5 \
> (0x00007f40a3710000) 
> > What, if you first source build/prefix.sh?
> 
> Tried rm -rf build && mkdir build && cd build && cmake .. && make -j8 && source \
> prefix.sh && make test 
> The contents of build/autotests/html.output/highlight.rst.html still do not reflect \
> my changes to data/syntax/rest.xml :( 
> On the other hand, I've copied data/syntax/rest.xml into \
> /usr/share/org.kde.syntax-highlighting/syntax/rest.xml and confirmed that the tests \
> are picking up the file at /usr/share/org.kde.syntax-highlighting/syntax/rest.xml \
> instead of data/syntax/rest.xml. 
> On 2019-10-27 19:22, Dominik Haumann wrote:
> 
> What does `ldd build/bin/syntax/testhighlighter_test` tell you?
> What, if you first source build/prefix.sh?
> 
> Likely the wrong lib is used.
> 
> Greetings
> Dominik
> 
> Adrian Chaves <adrian@chaves.io> schrieb am So., 27. Okt. 2019, 17:49:
> 
> I emptied data/syntax/rest.xml (made it a valid syntax file that would
> mark all text as normal).
> 
> Then I run:
> 
> rm -rf build && mkdir build && cd build
> cmake .. && make -j8 && make test
> 
> But the contents of build/autotests/html.output/highlight.rst.html are
> still those that would be generated if data/syntax/rest.xml had not been
> changed.


[Attachment #3 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" \
/></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'> \
<p>I&rsquo;ll go ahead and work on the system-level file to test changes, but please \
do let me know if you can think an way that I can avoid that in the future.</p> <p \
id="reply-intro">On 2019-11-01 11:34, Adrian Chaves wrote:</p> <blockquote \
type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"> <div \
class="pre" style="margin: 0; padding: 0; font-family: monospace"> <blockquote \
type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><span \
style="white-space: nowrap;">What&nbsp;does&nbsp;`ldd&nbsp;build/bin/syntax/testhighlighter_test`&nbsp;tell&nbsp;you?</span></blockquote>
 <br />[adrian@pondal build]$ ldd bin/testhighlighter_test | grep \
libKF5SyntaxHighlighting.so.5<br />libKF5SyntaxHighlighting.so.5 =&gt; \
/home/adrian/proxectos/syntax-highlighting/build/bin/libKF5SyntaxHighlighting.so.5 \
(0x00007f40a3710000)<br /><br /> <blockquote type="cite" style="padding: 0 0.4em; \
border-left: #1010ff 2px solid; margin: 0"><span style="white-space: \
nowrap;">What,&nbsp;if&nbsp;you&nbsp;first&nbsp;source&nbsp;build/prefix.sh?</span></blockquote>
 <br />Tried rm -rf build &amp;&amp; mkdir build &amp;&amp; cd build &amp;&amp; cmake \
.. &amp;&amp; make -j8 &amp;&amp; source prefix.sh &amp;&amp; make test<br /><br \
/>The contents of build/autotests/html.output/highlight.rst.html still do not reflect \
my changes to data/syntax/rest.xml :(<br /><br />On the other hand, I&rsquo;ve copied \
data/syntax/rest.xml into /usr/share/org.kde.syntax-highlighting/syntax/rest.xml and \
confirmed that the tests are picking up the file at \
/usr/share/org.kde.syntax-highlighting/syntax/rest.xml instead of \
data/syntax/rest.xml.<br /><br /><span style="white-space: \
nowrap;">On&nbsp;2019-10-27&nbsp;19:22,&nbsp;Dominik&nbsp;Haumann&nbsp;wrote:</span><br \
/><br /> <blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px \
solid; margin: 0"><span style="white-space: \
nowrap;">What&nbsp;does&nbsp;`ldd&nbsp;build/bin/syntax/testhighlighter_test`&nbsp;tell&nbsp;you?</span><br \
/><span style="white-space: \
nowrap;">What,&nbsp;if&nbsp;you&nbsp;first&nbsp;source&nbsp;build/prefix.sh?</span><br \
/><br /><span style="white-space: \
nowrap;">Likely&nbsp;the&nbsp;wrong&nbsp;lib&nbsp;is&nbsp;used.</span><br /><br \
/>Greetings<br />Dominik<br /><br /><span style="white-space: \
nowrap;">Adrian&nbsp;Chaves&nbsp;&lt;<a \
href="mailto:adrian@chaves.io">adrian@chaves.io</a>&gt;&nbsp;schrieb&nbsp;am&nbsp;So.,&nbsp;27.&nbsp;Okt.&nbsp;2019,&nbsp;17:49:</span><br \
/><br /> <blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px \
solid; margin: 0"><span style="white-space: \
nowrap;">I&nbsp;emptied&nbsp;data/syntax/rest.xml&nbsp;(made&nbsp;it&nbsp;a&nbsp;valid&nbsp;syntax&nbsp;file&nbsp;that&nbsp;would</span><br \
/><span style="white-space: \
nowrap;">mark&nbsp;all&nbsp;text&nbsp;as&nbsp;normal).</span><br /><br /><span \
style="white-space: nowrap;">Then&nbsp;I&nbsp;run:</span><br /><br /><span \
style="white-space: nowrap;">rm&nbsp;-rf&nbsp;build&nbsp;&amp;&amp;&nbsp;mkdir&nbsp;build&nbsp;&amp;&amp;&nbsp;cd&nbsp;build</span><br \
/><span style="white-space: \
nowrap;">cmake&nbsp;..&nbsp;&amp;&amp;&nbsp;make&nbsp;-j8&nbsp;&amp;&amp;&nbsp;make&nbsp;test</span><br \
/><br /><span style="white-space: \
nowrap;">But&nbsp;the&nbsp;contents&nbsp;of&nbsp;build/autotests/html.output/highlight.rst.html&nbsp;are</span><br \
/>still those that would be generated if data/syntax/rest.xml had not been<br /><span \
style="white-space: nowrap;">changed.</span></blockquote> </blockquote>
</div>
</blockquote>
<p><br /></p>

</body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic