Open axonasif opened 2 years ago
I cannot help much without seeing the build logs. GitHub Actions build and bundle all plugins correctly.
To see if the plugin is included in the app, check if there is Tags entry in Items config tab in Preferences dialog.
Oh sorry @hluk I had the logs copied but forgot to paste π
Here it goes:
Note [2022-02-08 12:30:44.538] <Server-15443>: No plugins loaded
Warning [2022-02-08 12:30:44.542] <Server-15443>: [kf.windowsystem] QtWarning: Could not find any platform plugin
Warning [2022-02-08 12:30:49.045] <Server-15443>: [qt.qpa.fonts] QtWarning: Populating font family aliases took 152 ms. Replace uses of missing font family "Monospace" with one that exists to avoid this cost.
Note [2022-02-08 12:32:05.636] <Server-15443>: Exception in command "Add a Tag": ScriptError: Plugin "itemtags" is not installed
Note [2022-02-08 12:32:05.636] <Server-15443>:
Note [2022-02-08 12:32:05.636] <Server-15443>: --- backtrace ---
Note [2022-02-08 12:32:05.636] <Server-15443>: get@:1
Note [2022-02-08 12:32:05.636] <Server-15443>: %entry@eval code:1
Note [2022-02-08 12:32:05.636] <Server-15443>: eval: plugins.itemtags.tag()
Note [2022-02-08 12:32:05.636] <Server-15443>: eval
Note [2022-02-08 12:32:05.636] <Server-15443>: --- end backtrace ---
Note [2022-02-08 12:32:05.638] <Server-15443>: Command βAdd a Tagβ
Note [2022-02-08 12:32:05.638] <Server-15443>: Exit code: 4
Note [2022-02-08 12:32:05.638] <Server-15443>: 1. copyq: plugins.itemtags.tag()
Note [2022-02-08 12:32:11.719] <Server-15443>: Exception in command "Add a Tag": ScriptError: Plugin "itemtags" is not installed
Note [2022-02-08 12:32:11.719] <Server-15443>:
Note [2022-02-08 12:32:11.719] <Server-15443>: --- backtrace ---
Note [2022-02-08 12:32:11.719] <Server-15443>: get@:1
Note [2022-02-08 12:32:11.719] <Server-15443>: %entry@eval code:1
Note [2022-02-08 12:32:11.719] <Server-15443>: eval: plugins.itemtags.tag()
Note [2022-02-08 12:32:11.719] <Server-15443>: eval
Note [2022-02-08 12:32:11.719] <Server-15443>: --- end backtrace ---
And here is a screenshot of the preferences dialog
.
Yup, no plugins included. Did they build fine? Or maybe there was a problem when creating the bundle.
Sorry for the late reply, I was using ./CopyQ.app
but not ./_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app
.
Here's what I did to build and their logs:
mkdir build && cd build
cmake -DCMAKE_PREFIX_PATH=(brew --prefix qt5) -DCMAKE_LISTS_TXT_PATH="$PWD/../CMakeLists.txt" -DCMAKE_LISTS_OR_SETTINGS_JSON=CMakeListsTxtAdvanced -DCMAKE_BUILD_TYPE=Release -DCMAKE_GENERATOR=Ninja -DWITH_TESTS=TRUE ../
# I use fish shell, so(brew --prefix qt5)
instead of$(brew --prefix qt5)
cmake --build .
cpack
As I said in the beginning, now while being on the build
dir, if I try to run: ./CopyQ.app/Contents/MacOS/CopyQ --version
, I get:
CopyQ Clipboard Manager 6.0.1-15-gff4f6705
Qt: 5.15.2
KNotifications: 5.87.0
Compiler: GCC
Arch: arm64-little_endian-lp64
OS: macOS 12.2
Here is the tree
logs for ./CopyQ.app
if it's helpful:
So this isn't the full application, but ./_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app
is. For some reason ./_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/MacOS/CopyQ
binary crashes with fish: Job 1, './_CPack_Packages/Darwin/Drag...' terminated by signal SIGKILL (Forced quit)
. I'm not sure how to trace binaries in MacOS yet, heard about dtrace
, gotta try that.
I had also tried building 6.0.1-gf4773644
, which is the same version as in the CopyQ x86_64 latest release at ^1 but made no difference.
Today I head back to using the x86(intel) version from ^1 since that just works with one drawback of the rosetta translation π
Lastly, thank you for your time π
Are the plugins built? E.g. is there plugins/libitemencrypted.so
in the build directory (or maybe in different subdirectory)?
Are the plugins built? E.g. is there
plugins/libitemencrypted.so
in the build directory (or maybe in different subdirectory)?
Yes
axon@MacBook-Air ~/C/build (master)> tree -L 2 plugins
plugins
βββ CMakeFiles
βββ cmake_install.cmake
βββ itemencrypted
βΒ Β βββ CMakeFiles
βΒ Β βββ cmake_install.cmake
βΒ Β βββ itemencrypted_autogen
βΒ Β βββ ui_itemencryptedsettings.h
βββ itemfakevim
βΒ Β βββ CMakeFiles
βΒ Β βββ cmake_install.cmake
βΒ Β βββ itemfakevim.qrc.depends
βΒ Β βββ itemfakevim_autogen
βΒ Β βββ qrc_itemfakevim.cpp
βΒ Β βββ ui_itemfakevimsettings.h
βββ itemimage
βΒ Β βββ CMakeFiles
βΒ Β βββ cmake_install.cmake
βΒ Β βββ itemimage_autogen
βΒ Β βββ ui_itemimagesettings.h
βββ itemnotes
βΒ Β βββ CMakeFiles
βΒ Β βββ cmake_install.cmake
βΒ Β βββ itemnotes_autogen
βΒ Β βββ ui_itemnotessettings.h
βββ itempinned
βΒ Β βββ CMakeFiles
βΒ Β βββ cmake_install.cmake
βΒ Β βββ itempinned_autogen
βββ itemsync
βΒ Β βββ CMakeFiles
βΒ Β βββ cmake_install.cmake
βΒ Β βββ itemsync_autogen
βΒ Β βββ ui_itemsyncsettings.h
βββ itemtags
βΒ Β βββ CMakeFiles
βΒ Β βββ cmake_install.cmake
βΒ Β βββ itemtags_autogen
βΒ Β βββ ui_itemtagssettings.h
βββ itemtext
βΒ Β βββ CMakeFiles
βΒ Β βββ cmake_install.cmake
βΒ Β βββ itemtext_autogen
βΒ Β βββ ui_itemtextsettings.h
βββ libitemencrypted.so
βββ libitemfakevim.so
βββ libitemimage.so
βββ libitemnotes.so
βββ libitempinned.so
βββ libitemsync.so
βββ libitemtags.so
βββ libitemtext.so
25 directories, 26 files
axon@MacBook-Air ~/C/build (master)> tree -L 2 _CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/
_CPack_Packages/Darwin/DragNDrop/copyq-6.0.1-15-gff4f6705-Darwin/CopyQ.app/Contents/PlugIns/
βββ bearer
βΒ Β βββ libqgenericbearer.dylib
βββ copyq
βΒ Β βββ libitemencrypted.so
βΒ Β βββ libitemfakevim.so
βΒ Β βββ libitemimage.so
βΒ Β βββ libitemnotes.so
βΒ Β βββ libitempinned.so
βΒ Β βββ libitemsync.so
βΒ Β βββ libitemtags.so
βΒ Β βββ libitemtext.so
βββ generic
βΒ Β βββ libqtuiotouchplugin.dylib
βββ iconengines
βΒ Β βββ libqsvgicon.dylib
βββ imageformats
βΒ Β βββ libqgif.dylib
βΒ Β βββ libqicns.dylib
βΒ Β βββ libqico.dylib
βΒ Β βββ libqjpeg.dylib
βΒ Β βββ libqmacheif.dylib
βΒ Β βββ libqmacjp2.dylib
βΒ Β βββ libqsvg.dylib
βΒ Β βββ libqtga.dylib
βΒ Β βββ libqtiff.dylib
βΒ Β βββ libqwbmp.dylib
βΒ Β βββ libqwebp.dylib
βββ platforminputcontexts
βΒ Β βββ libqtvirtualkeyboardplugin.dylib
βββ platforms
βΒ Β βββ libqcocoa.dylib
βΒ Β βββ libqminimal.dylib
βΒ Β βββ libqoffscreen.dylib
βΒ Β βββ libqwebgl.dylib
βββ platformthemes
βΒ Β βββ libqxdgdesktopportal.dylib
βββ qmltooling
βΒ Β βββ libqmldbg_debugger.dylib
βΒ Β βββ libqmldbg_inspector.dylib
βΒ Β βββ libqmldbg_local.dylib
βΒ Β βββ libqmldbg_messages.dylib
βΒ Β βββ libqmldbg_native.dylib
βΒ Β βββ libqmldbg_nativedebugger.dylib
βΒ Β βββ libqmldbg_preview.dylib
βΒ Β βββ libqmldbg_profiler.dylib
βΒ Β βββ libqmldbg_quickprofiler.dylib
βΒ Β βββ libqmldbg_server.dylib
βΒ Β βββ libqmldbg_tcp.dylib
βββ styles
βββ libqmacstyle.dylib
10 directories, 40 files
@hluk I think the issue is when cpack does the final linking stuff, invalidating the signatures. https://gitlab.kitware.com/cmake/cmake/-/issues/21854
How do we fix it? Should I try to follow the proposed workaround in the issue above?
Update: Doesn't work, I had tried to put set(CMAKE_XCODE_ATTRIBUTE_OTHER_CODE_SIGN_FLAGS "-o linker-signed")
on the project CMakeLists.txt
and also had tried by passing in the command line -DCMAKE_XCODE_ATTRIBUTE_OTHER_CODE_SIGN_FLAGS="-o linker-signed"
Please keep in mind that I have no idea about C++ development and cmake.
Here is the CopyQ
binary crash log with/without the workaround flags:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: CopyQ [23165]
Path: /Users/USER/*/CopyQ.app/Contents/MacOS/CopyQ
Identifier: io.github.hluk.CopyQ
Version: 6.0 (6.0.1-15-gff4f6705)
Code Type: ARM-64 (Native)
Parent Process: fish [3409]
Responsible: Terminal [579]
User ID: 501
Date/Time: 2022-02-12 21:43:11.3667 +0600
OS Version: macOS 12.2 (21D49)
Report Version: 12
Anonymous UUID: 49966BE9-A3A7-C70A-F5F9-15BF3E09D134
Sleep/Wake UUID: D4624B63-571C-40C2-9787-0DB458699042
Time Awake Since Boot: 27000 seconds
Time Since Wake: 9996 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Exception Codes: UNKNOWN_0x32 at 0x00000001034b0000
Exception Codes: 0x0000000000000032, 0x00000001034b0000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace CODESIGNING, Code 2
Hey @hluk! I was able to workaround it by doing the following in my build
dir:
codesign --force --deep --sign - $PWD/_CPack_Packages/Darwin/DragNDrop/copyq-*-Darwin/CopyQ.app
Will update the docs too π Thanks for sticking along with me.
Describe the bug I'm unable to assign tags to clipboard items, maybe the tags plugin is missing in my macOS build?
To Reproduce Steps to reproduce the behavior:
Expected behavior The itemtags plugin should be there and work properly
Screenshots None
Version, OS and Environment (Get details from
copyq version
command if possible.)