Package Details: cutemarked 0.11.3-1

Git Clone URL: https://aur.archlinux.org/cutemarked.git (read-only)
Package Base: cutemarked
Description: Qt Markdown Editor
Upstream URL: https://github.com/cloose/CuteMarkEd
Licenses: GPL2
Submitter: drevilt
Maintainer: Esspy
Last Packager: Esspy
Votes: 29
Popularity: 0.046055
First Submitted: 2013-09-29 19:36
Last Updated: 2016-12-06 14:23

Latest Comments

1 2 3 Next › Last »

LeOn83 commented on 2019-01-31 16:05

include <QAction> is missing in app/optionsdialog.cpp

for the prepare section:

sed -i -e '/#include <QTableWidgetItem>/a #include <QAction>' app/optionsdialog.cpp

dreieck commented on 2019-01-13 13:56

namcap says:

cutemarked E: Dependency hicolor-icon-theme detected and not included (needed for hicolor theme hierarchy)

dreieck commented on 2019-01-13 13:28

Build fails for me:

[...]
make[1]: Entering directory '/tmp/cutemarked/src/CuteMarkEd-0.11.3/app'
g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I. -I../libs/jsonconfig -I../app-static -I../libs -I../3rdparty/peg-markdown-highlight -isystem /usr/include/hunspell -isystem /usr/include/qt -isystem /usr/include/qt/QtWebKitWidgets -isystem /usr/include/qt/QtPrintSupport -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtWebKit -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/qt/mkspecs/linux-g++ -o optionsdialog.o optionsdialog.cpp
optionsdialog.cpp: In member function ‘void OptionsDialog::validateShortcut(int, int)’:
optionsdialog.cpp:221:46: error: invalid use of incomplete type ‘class QAction’
             new QTableWidgetItem(actions[row]->shortcut().toString()));
                                              ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:228:58: error: invalid use of incomplete type ‘class QAction’
                         new QTableWidgetItem(actions[row]->shortcut().toString()));
                                                          ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:229:129: error: invalid use of incomplete type ‘class QAction’
                     QMessageBox::information(this, tr("Conflict"), tr("This shortcut is already used for \"%1\"").arg(actions[c]->text().remove('&')));
                                                                                                                                 ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:237:40: error: invalid use of incomplete type ‘class QAction’
         font.setBold(ks != actions[row]->property("defaultshortcut").value<QKeySequence>());
                                        ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:237:88: error: expected primary-expression before ‘>’ token
         font.setBold(ks != actions[row]->property("defaultshortcut").value<QKeySequence>());
                                                                                        ^
optionsdialog.cpp:237:90: error: expected primary-expression before ‘)’ token
         font.setBold(ks != actions[row]->property("defaultshortcut").value<QKeySequence>());
                                                                                          ^
optionsdialog.cpp: In member function ‘void OptionsDialog::setupShortcutsTable()’:
optionsdialog.cpp:254:62: error: invalid use of incomplete type ‘class QAction’
         QTableWidgetItem *label = new QTableWidgetItem(action->text().remove('&'));
                                                              ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:256:51: error: invalid use of incomplete type ‘class QAction’
         const QKeySequence &defaultKeySeq = action->property("defaultshortcut").value<QKeySequence>();
                                                   ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:256:99: error: expected primary-expression before ‘>’ token
         const QKeySequence &defaultKeySeq = action->property("defaultshortcut").value<QKeySequence>();
                                                                                                   ^
optionsdialog.cpp:256:101: error: expected primary-expression before ‘)’ token
         const QKeySequence &defaultKeySeq = action->property("defaultshortcut").value<QKeySequence>();
                                                                                                     ^
optionsdialog.cpp:257:19: error: invalid use of incomplete type ‘class QAction’
         if (action->shortcut() != defaultKeySeq) {
                   ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:262:66: error: invalid use of incomplete type ‘class QAction’
         QTableWidgetItem *accel = new KeySequenceTableItem(action->shortcut());
                                                                  ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp: In member function ‘void OptionsDialog::readState()’:
optionsdialog.cpp:317:50: error: invalid use of incomplete type ‘class QAction’
         if (options->hasCustomShortcut(actions[i]->objectName())) {
                                                  ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:318:101: error: invalid use of incomplete type ‘class QAction’
             ui->shortcutsTable->item(i, 1)->setData(Qt::EditRole, options->customShortcut(actions[i]->objectName()));
                                                                                                     ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp: In member function ‘void OptionsDialog::saveState()’:
optionsdialog.cpp:358:46: error: invalid use of incomplete type ‘class QAction’
         options->addCustomShortcut(actions[i]->objectName(), customKeySeq);
                                              ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
make[1]: *** [Makefile:1619: optionsdialog.o] Error 1
make[1]: Leaving directory '/tmp/cutemarked/src/CuteMarkEd-0.11.3/app'
make: *** [Makefile:126: sub-app-make_first] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

It is the error as already reported on 2018-08-08 by @di72nn and works by inserting a #include <QAction> into app/optionsdialog.cpp.

@Esspy: Can you please incorporate this "patch", until upstream fixes it?

fawn commented on 2018-11-09 10:10

TO: di72nn Thanks, this patch is working.

di72nn commented on 2018-07-08 14:58

Hey!

Build fails: https://github.com/cloose/CuteMarkEd/issues/367

Adding the following seems to fix that: sed -i -e "20i#include <QAction>" app/optionsdialog.cpp

Esspy commented on 2016-07-02 16:33

to fix please make a patch on file discountmarkdownconverter.cpp. change initial options to

unsigned long converterOptions = MKD_TOC | MKD_NOSTYLE | MKD_FENCEDCODE;

I've added "|MKD_FENCEDCODE" to enable fencedcode again. now cutemarked render all md correctly.

cheers

Esspy commented on 2016-06-12 08:31

misrendering build-in snippets.

e.g.

~~~java
System.out.println(System.getProperty("java.version"));
~~~

renders to

<p><del>java
System.out.println(System.getProperty(&ldquo;java.version&rdquo;));
</del></p>

so every codeblock is strikedthrough.

Even downgrade discount to version 2.1.7 does not help.

JohnRobson commented on 2015-07-26 08:19

looking for conflicting packages...
:: discount and markdown are in conflict. Remove markdown? [y/N]
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: discount and markdown are in conflict

I need to remove markdown?!

Aetf commented on 2015-02-02 08:58

Oh I haven't thought about how CONFIG+=ordered worked before. Thank you for pointing that out. ;)

I have updated the pull request to upstream to declare the dependencies. Hopefully the buildfile can be adapted soon.

drevilt commented on 2015-02-01 15:47

Thank you.

If I understand it correctly CONFIG+=ordered just runs the build with a single core/thread. Just like an "make -j1" would do. In this case the two parallel builds which are currently in the buildfile are faster because they still are run in parallel even if the first one might fail.

The problem that causes that parallel build to fail is that upstream has not declared a dependency correctly in one module. I dont know which one.
you can read more about that here: http://blog.rburchell.com/2013/10/every-time-you-configordered-kitten-dies.html

Anyway, I think that upstream should declare that dependency and then the buildfile can be adapted to just use one make run.