Re: KSyntaxHighlighting: My changes to data files don’t seem to affect test outputs
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 (0x7f40a371) 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 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.
Re: KSyntaxHighlighting: My changes to data files don’t seem to affect test outputs
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 (0x7f40a371) 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 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.
Re: KSyntaxHighlighting: My changes to data files don’t seem to affect test outputs
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 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. >
KSyntaxHighlighting: My changes to data files don’t seem to affect test outputs
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.