<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Am 16.07.21 um 17:15 schrieb Da Viper
      via Kde-finance-apps:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEtKUfjX6xoE4xfJBPmnOObPBFyM+7e4cP=P=3A1zOxKzvm9vQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="auto">Hello there,
          <div dir="auto"><br>
          </div>
          <div dir="auto">Yeah I see the error, </div>
          <div>So i made more test for schemes `mailto`, `ftp` and
            `https` in those qurl recognise the scheme</div>
          <div><br>
          </div>
          <div dir="auto">i think that QUrl  does not recognise that
            `file:` in the front  is a scheme  </div>
          <div>here is where i check if it a scheme  <a
href="https://invent.kde.org/ebuka/gdb_printers/-/blob/master/printers/qtprinters.py#L751"
              moz-do-not-send="true">https://invent.kde.org/ebuka/gdb_printers/-/blob/master/printers/qtprinters.py#L751</a></div>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    <p><a class="moz-txt-link-rfc2396E">just remove the 'file:' prefix
        in the check<br>
      </a></p>
    Regards<br>
    Ralf<br>
    <blockquote type="cite"
cite="mid:CAEtKUfjX6xoE4xfJBPmnOObPBFyM+7e4cP=P=3A1zOxKzvm9vQ@mail.gmail.com">
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Fri, 16 Jul 2021, 01:02
          Ralf Habacker via Kde-finance-apps, <<a
            href="mailto:kde-finance-apps@kde.org" target="_blank"
            moz-do-not-send="true">kde-finance-apps@kde.org</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">
          <div>
            <div>Am 14.07.21 um 15:13 schrieb Da Viper via
              Kde-finance-apps:<br>
            </div>
            <blockquote type="cite">
              <div dir="auto">Hello there module import problem has been
                fixed.
                <div dir="auto"><br>
                </div>
                <div dir="auto">You could check it.</div>
                <div dir="auto"><br>
                </div>
              </div>
            </blockquote>
            <p>Yes, got more success now, but see the log</p>
            <p>----->-----------<br>
            </p>
            <p>ralf@xxx:~/src/gdb_printers> ./run.py </p>
            [RUN][INFO]: Building CMakeLists file<br>
            Installing in /usr/local. Run
            /home/ralf/src/gdb_printers/tests/cpp_src_test/cmake_build/prefix.sh
            to set the environment for testQstring.<br>
            -- Configuring done<br>
            -- Generating done<br>
            -- Build files have been written to:
            /home/ralf/src/gdb_printers/tests/cpp_src_test/cmake_build<br>
            [ 25%] Automatic MOC and UIC for target test_bin<br>
            [ 25%] Built target test_bin_autogen<br>
            [100%] Built target test_bin<br>
            [RUN][INFO]: Adding Printers Directory to the PYTHONPATH
            environment variable<br>
            [INFO][PYTHON ENV PATH]
            :/home/ralf/src/gdb_printers/printers:/home/ralf/src/gdb_printers/tests<br>
            [RUN][INFO]: Starting GDB ...<br>
            *** GDB version: 10.1<br>
            *** Python version: 3.6.12 (default, Dec 02 2020, 09:44:23)
            [GCC]<br>
            [QT_PRINTERS][INFO]: Registering QT Printers ***<br>
            [QT_PRINTERS][INFO]: Running unit tests<br>
            QCharPrinterTest::test_initialized_with_no_variables ... ok<br>
            QCharPrinterTest::test_initialized_with_variables ... ok<br>
            QStringPrinterTest::test_initialized_with_no_variables ...
            ok<br>
            QStringPrinterTest::test_initialized_with_variables ... ok<br>
            QStringPrinterTest::test_not_initialized ... ok<br>
            QUrlPrinterTest::test_initialized_with_no_variables ... ok<br>
            QUrlPrinterTest::test_initialized_with_variables ... FAIL<br>
            <br>
======================================================================<br>
            FAIL: QUrlPrinterTest::test_initialized_with_variables<br>
----------------------------------------------------------------------<br>
            Traceback (most recent call last):<br>
              File
            "/home/ralf/src/gdb_printers/tests/test_qtprinters.py", line
            88, in test_initialized_with_variables<br>
                check_equals(self, 'file', <a rel="noreferrer"
              moz-do-not-send="true">"file:qml/main.qml"</a>,
            self.display_hint, None)<br>
              File
            "/home/ralf/src/gdb_printers/tests/test_qtprinters.py", line
            40, in check_equals<br>
                obj.assertEqual(org_string, string)<br>
            AssertionError: 'qml/main.qml' != '<a rel="noreferrer"
              moz-do-not-send="true">file:qml/main.qml</a>'<br>
            - qml/main.qml<br>
            + <a rel="noreferrer" moz-do-not-send="true">file:qml/main.qml</a><br>
            ? +++++<br>
            <br>
            <br>
----------------------------------------------------------------------<br>
            Ran 7 tests in 4.346s<br>
            <br>
            FAILED (failures=1)<br>
            [QT_PRINTERS][INFO]: Finished test<br>
            <p>--------<---------------<br>
            </p>
            <p>In case gdb needs the python commands mentioned in the
              readme, you may place them in a file in your git repo and
              use gdb  -ix <local-gdbinit-file>  command line
              option to point to that file, which make your script
              independent from  the global .gdbinit file.</p>
            <p>Regards</p>
            <p>Ralf<br>
            </p>
            <blockquote type="cite">
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">On Wed, 14 Jul 2021,
                  13:31 Da Viper, <<a
                    href="mailto:yerimyah1@gmail.com" rel="noreferrer"
                    target="_blank" moz-do-not-send="true">yerimyah1@gmail.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">
                  <div dir="auto">My bad I jest realized with was only
                    running with preset environment variables
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">Would fix it now</div>
                  </div>
                  <br>
                  <div class="gmail_quote">
                    <div dir="ltr" class="gmail_attr">On Wed, 14 Jul
                      2021, 12:16 Da Viper, <<a
                        href="mailto:yerimyah1@gmail.com"
                        rel="noreferrer noreferrer" target="_blank"
                        moz-do-not-send="true">yerimyah1@gmail.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">
                      <div dir="auto">Hello could you check if the repo
                        is up to date from git ?
                        <div dir="auto"><br>
                        </div>
                        <div dir="auto">  I ran it in cloned from gitlab
                          it ran ok
                          <div dir="auto"><br>
                          </div>
                          <div dir="auto">Thanks</div>
                        </div>
                      </div>
                      <br>
                      <div class="gmail_quote">
                        <div dir="ltr" class="gmail_attr">On Wed, 14 Jul
                          2021, 07:04 Ralf Habacker via
                          Kde-finance-apps, <<a
                            href="mailto:kde-finance-apps@kde.org"
                            rel="noreferrer noreferrer noreferrer"
                            target="_blank" moz-do-not-send="true">kde-finance-apps@kde.org</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">Hi Ebuka,<br>
                          I checkout latest code from you gdb_printer
                          repo, did run and got an<br>
                          error as shown below:<br>
                          <br>
                          $:~/src/gdb_printers> tests/run.py<br>
                          [RUN][INFO]: Building CMakeLists file<br>
                          -- Configuring done<br>
                          -- Generating done<br>
                          -- Build files have been written to:<br>
/home/xxx/src/gdb_printers/tests/cpp_src_test/cmake_build<br>
                          [ 25%] Automatic MOC and UIC for target
                          test_bin<br>
                          [ 25%] Built target test_bin_autogen<br>
                          [100%] Built target test_bin<br>
                          [RUN][INFO]: Adding Printers Directory to the
                          PYTHONPATH environment<br>
                          variable<br>
                          [RUN][INFO]: Starting GDB ...<br>
                          Traceback (most recent call last):<br>
                            File
                          "/home/xxx/src/gdb_printers/tests/test_qtprinters.py",
                          line 9, in<br>
                          <module><br>
                              from tests.test_helpers import
                          start_at_function,<br>
                          stop_after_init_function,
                          stop_after_end_function<br>
                          ModuleNotFoundError: No module named
                          'tests.test_helpers'<br>
                          <br>
                          Can you take a look and fix that issue ?<br>
                          <br>
                          <br>
                          > [RUN][INFO]: Starting GDB ...<br>
                          <br>
                          I suggest to add the output of the dbg_args
                          variable to that line - it<br>
                          makes debugging easier.<br>
                          <br>
                          [RUN][INFO]: Starting GDB ... ['gdb', '--nx',
                          '-q', '--batch', '-x',<br>
'/home/xxx/src/gdb_printers/tests/test_qtprinters.py',<br>
'/home/xxx/src/gdb_printers/tests/cpp_src_test/cmake_build/test_bin']<br>
                          <br>
                          Regards<br>
                          Ralf<br>
                          <br>
                        </blockquote>
                      </div>
                    </blockquote>
                  </div>
                </blockquote>
              </div>
            </blockquote>
          </div>
        </blockquote>
      </div>
    </blockquote>
  </body>
</html>