Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package codelite for openSUSE:Factory checked in at 2022-04-16 00:15:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/codelite (Old) and /work/SRC/openSUSE:Factory/.codelite.new.1941 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "codelite" Sat Apr 16 00:15:37 2022 rev:18 rq:970350 version:15.0.11 Changes: -------- --- /work/SRC/openSUSE:Factory/codelite/codelite.changes 2022-01-31 22:58:05.109273237 +0100 +++ /work/SRC/openSUSE:Factory/.codelite.new.1941/codelite.changes 2022-04-16 00:16:01.449791296 +0200 @@ -1,0 +2,179 @@ +Fri Apr 8 13:38:00 UTC 2022 - Peter Conrad <con...@quisquis.de> + +- Upgrade to upstream 15.0.11 + * Remove codelite-SpellChecker-unnest-classes.patch (obsoleted by upstream) + * Remove 0001-Fix-compilation-with-recent-glibc-where-SIGSTKSZ-is-.patch (obsoleted by upstream) + - Remove fix_compilation_JSON_wxWidgets.patch + * Add wxStl.patch for supporting wxWidgets built with -DwxUSE_STL=1 + * Add wxVersion.patch to fix build with wxWidgets-3.[01].* + * Expanded fix_node_env-script-interpreter.patch to cover new Runtime/codelite-remote script + * Upstream changes: + * Bug fixes + - Fixed: externally modified files are not reloaded + - Remove redundant file system scan + - Fixed: always pass `RootURI` when sending `Initialize` request to the LSP server, even if the user did not provide one + - Fixed: JSON encoding issue + - Fixed: `codelite-terminal` does not apply environment variables when generating `compile_flags.txt` file required by `clangd` + - Fixed: Linux: Move tab right / left with the keyboard does not work + - Fixed: file system workspace: in some cases, system scan is not working as intended and only scans the top level + - Fixed: code formatter regression which caused CodeLite to override the user's settings + - Fixed: GTK: right click on tab causes a weird behavior of selecting random file + - Fixed: Implement All Un-Implemented Functions not working when header and source are not placed in the same directory + - Fixed: wxCrafter: "Insert into new Sizer" should not be visible for wxAuiManager (by *rlbxku1r*) + - Fixed: CodeLite Makefile Generator - UNIX: Windows resource files are not compiled + - Fixed: "Closed other tabs" -> send "close event" for every closed tab + - fixed: PHP workspace: allow user to include the workspace or project folder when selecting `Find In Folder` from the context menu + - fixed: PHP workspace: make it multiple selection + - Fixed: make sure that the editor folder exists before writing + - Fixed: C++ workspace: post/pre build events: ignore empty commands + - Fixed: Feature request: include file extensions for [Drupal projects][2] + - Fixed: Fix Output View multi-byte text handling (*rlbxku1r*) + - Fixed: PHP settings: post parse-workspace event only when a PHP workspace is opened + - Fixed: spell checker: when calling "Check" on a file, do not uncheck the option of the 'continuous checking' + - Fixed: keyboard shortcuts are now working once again in wxCrafter + - Fixed: word completion is broken if a word contains letters with diacritics + - Fixed: avoid restarting any non C++ Language Server when the build process ends + - Fixed: crash when clicking on the "Link Editor" and no active editor is opened + - Fixed: colours and fonts dialog: changing the global theme now enables the `apply` button + - Fixed: Syntax highlight Dialog: when importing a theme, print its name in the completion dialog + - Fixed: use custom GTK code to get the parent bg colour + - Fixed: GTK assertions + - wxCrafter: Fix inconsistent style of option array strings. These strings are now properly wrapped according to the 'Generate Translatable Strings' setting (*rlbxku1r*) + - wxCrafter: Fix invalid string literal in auto-generated `wxHtmlWindow` code (*rlbxku1r*) + - wxCrafter: Add missing translations (*rlbxku1r*) + - Fixed: `codelite-terminal` should now start on `macOS` + - Fixed: `Quick Add Next` now ensures that if the match is in a hidden line (aka `folded`), it unfold it. fixes: https://github.com/eranif/codelite/issues/2748 + - Git plugin: operations on the tree view now uses the correct repository path + - Fixed: https://github.com/eranif/codelite/issues/2763 - Goto Declaration/Implementation doesn't work (well) with tabs + - fixed: on linux, on certain window managers, the tooltip size calculation is smaller than the size required for actually drawing it + - MSW: don't allow dark mode for text controls + - Removed the non maintained Notebook style: `TRAPEZOID` + - Fixed: [Wrap with brackets option not working][fixes: https://github.com/eranif/codelite/issues/2822] + - Find Replace Bar: fixed issue with no Latin charcters + - Fixed: code completion tooltip generated by the CTags code completion engine are not compatible with markdown syntax + - Fixed: function hover tip should not be rejected by the file system workspace (*rlbxku1r*) + - Fixed: changing the zoom in one editor, applies it to other editors as well + - CodeLiteDiff fixes + - Code Formatter: various fixes to `clang-format` + - Fixed: `Close other tabs` context menu entry, does not attempt the modified `this` tab + - Fixed navigation bar persistency issue (*rlbxku1r*) + - Fixed: `Remoty`: when `Remoty` is enabled, typing in the `Remote path` field manually, causes CodeLite to crash + - Fixed: Create New C++ Project: do not prompt the user to switch to `CodeLite Makefile Generator - UNIX` when using GCC from the **MinGW** MSYS repository + - Fixed: navigation bar commit message does not update with when changing lines + - Fixed: Syntax Highlight: clicking on the `Restore Defaults` button, will now restore the previous font + selected theme + - Fixed: GNU make & bash builder: Fix error with parent directory name containing spaces (*rlbxku1r*) + - Fixed: CodeFormatter: `Export .clang-format file` points to the workspace directory by default + - Fixed: Debugger: Fix a regression that the setting `Use CTRL key to evaluate expressions under the cursor` doesn't remember its value + - Fixed: Project Settings: Don't try to save or clone an unnamed compiler + - Fix Search & Replace for UTF-8 string + - Fixed: GTK: at times, right clicking inside an editor might trigger the tab control context menu this could happen when right clicking near the top edge of the editor. + - Fixed: GTK: output view/workspace view: choosing "hide" or "detach" from the tab context menu for a non active tab, would perform the selected action on the active tab + * Improvements + - Fixed: be more tolerant for language server implementations that do not implement the protocol as is (e.g. rust) + - Added `Rust` syntax highlight + - LSP: support completion item's doc implemented inside `MarkupContent` + - Added **new** `Rust` plugin: + - Debugger support via `rust-gdb` + - Project management + - Code completion via the Language Server Plugin using the `rls` server or the `rust-analyzer` LSP + - Build output is clickable and allows user to quickly open problematic source files + - Git Commit List dialog: layout changes. Make the diff window occupy half of the dialog + - clToolBar: honour the `wxTB_NODIVIDER` style flag + - use a more sensible colours for highligthing text in the various tree / list controls + - Implemented a custom Menu Bar + - General performance & stability fixes + - Added new Remote plugin which allows user to load a remote "File System Workspace" over SSH + - Task view removed. It is now part of the Find In Files dialog + - Colours and fonts dialog: updating the text selection colours is now done for all the languages supported for the currently active theme + - **Remoty plugin**: use the newly added `codelite-remote` interface which allows using various plugin on a remote machines: + - `Git` + - `find in files` + - `Language Server Plugin` over SSH + - Diff plugin + - UI updates + - Added new tab control style: `FIREFOX` (screenshot below) + - Build tab output rewritten: it now honours the terminal colours + - Git plugin log view re-written and it now uses the same control as the build output, which honours the terminal colours + - Project Settings: Improve dirty settings detection (*rlbxku1r*) + - Project Settings: Use `append` by default for PCH flags option (*rlbxku1r*) + - `clangd` + `clang-format` that comes with CodeLite for macOS and Windows are now using version `12.0.0` + - File System Workspace: support multi-line commands in the build pages + - When using the file system workspace, export a special enviroment variable `CXX_INCLUDE_PATHS` this variable contains a list of compiler search paths for header files, separated by `;` is useful when using `CMake` + `MinGW` + `file system workspace` under windows, where the `CMAKE_EXPORTS_COMPILE_COMMANDS` does not include the compiler search paths, which breaks `clangd` code completion + - GDB-MI output parser re-written to support custom file paths with unusual characters + - VIM:Add some new commands (`~`, `o`, `O`) (mx) + - When importing themes with true black colour as their background colour, soften the it a bit + - git plugin: better support for remote repository where the workspace is not set in the root folder of the workspace + - change the location of CodeLite temp folder into `/tmp/codelite/PID`. This should reduce the spam under the `/tmp` folder + - Support drawing multiline text in the clTreeCtrl + - Code completion entry tooltip: CodeLite now supports Markdown rendering + - New project wizard: more fixes to avoid problems when using `MSYS2` compiler on Windows (*rlbxku1r*) + - wxCrafter: Fix wrong tree order on the first sibling widget duplication (*rlbxku1r*) + - LSP `Find Symbol`: Make text selection `UTF-8` aware + - Multiple tooltip Markdown renderer fixes (*rlbxku1r*) + - Colouring of semantic tokens is now done by the Language Server plugin + - Updated the default themes that comes with CodeLite + - C++ context menu: `Find Declaration` & `Find Implementation` entries are now replaced withe single, intelligent `Find Symbol` entry + - [Implemented: Feature request: "Open resource" dialog should support optional [:line[:column]] "coordinates"][3] + - New: added an option to highlight the current line number (in the line number margin) + - C++ workspace dialog updated + - `MINIMAL` and `DEFAULT` tab design refreshed + - Build tab: added `Copy all` context menu entry + - Find bar: the search logic re-written from scratch. With the old search, replacing 1000+ string instances using `Replace All` on a file with size of 6MB took roughly 45 seconds (On Windows machine, 32GB memory and 24 cores) With the new code (which performs in-buffer replacement where it can) this takes roughly 300ms! + - CodeLite logo updated + - C++ new class wizard: use `C++11` features (*rlbxku1r*) + - C++ parser: fix parsing class with `final` (*rlbxku1r*) + - C++ parser: accept `C++17` nested namespaces (*rlbxku1r*) + - Improve compiler detection code (*rlbxku1r*) + - Semantic highlight should now work on files opens via `Remoty` + - Identify files starting with shebang `#!/usr/bin/env python3` as python files + - Various `codelite_indexer` fixes: (*rlbxku1r*) + - accept `C++11` type alias + - accept `C++11` `final` keyword + - accept `C++11` `alignas` keyword + - accept `C++11` `noexcept` keyword + - Accept `C++17` nested namespace notation + - Properly collect using aliases (e.g. `using std::shared_ptr;`) + - Script language keywords updated to include: `local`, `function`, `exit` and `return` + - Remoty: support for auto detection of: `pylsp` language server + - SFTP: attempt to compare checksums before re-downloading file from remote server + - Recognize `.ts` files types (`TypeScript`) + - Code cleanup: removed all `tern` code completion code, use `typescript-language-server` instead + - Added new language server tab to log LSP messages of type `logMessage`, `telemetry` and `showMessage` + - File types: `patch` and `diff` are now properly identified by CodeLite + - Better dark theme support for Linux built with `-DWITH_NATIVEBOOK=0` + - Language Server Plugin: implement semantic highlight (`textDocument/semanticTokens/full`) using the `textDocument/documentSymbol` message + - Updated the colour themes + - Source code formatter: added an option to disable the formatting engines + - Lexer: separate JSON from the JavaScript file + - CodeFormatter: added basic JSON formatter + - Handle various workspace files (`NodeJS`, `Docker`, `FSW`, `Rust`, `Remoty`) as `JSON` files + - The 'best project settings' for certain builders can be obtained from the builder object. (*rlbxku1r*) + - Auto-detect and set the output file extension (exe, lib, dll, a, so, dylib) for given project type. (*rlbxku1r*) + - Colour `.toml` files as `INI` files ("properties") + - Remoty: re-wrote the "Open workspace" dialog + - SFTP browser dialog: if the path in the "Browse" entry is a file path, remove the file name and just open the folder + - Add option to enable spell checking on wxTextCtrl from within wxCrafter (*iwbnwif*) + - [Allow the user the change the active project from the menu (Workspace -> Set active project) or from the "Goto Anything" dialog (`Ctrl-Shift-P`)][4] + - Language Server Protcol: implemented `Hover` request message + - Language Server Protocol: implemented `Find references`. This feature will only be shown for Language Servers that support it like + - `clangd` + - `python-lsp` + - `typescript-language-server` + - `rust-analyzer` + - The old code completion was removed from CodeLite (`codelite_indexer`), instead, we now provide our own C++ language server named `ctagsd` which a re-written from scratch code completion engine with excellent C++11/14 features + - Line margin: highlight the current line, in addition this feature performance is now in `O(1)` and is not depend on the size of the opened file + - Editor track changes: re-designed. Modified lines / saved lines are now marked using [dedicated line number colour][5] + - Colours: CodeLite now offers to ability to import VSCode themes (in the JSON format) + - We now provide wxCrafter standalone builds for Windows / GTK (experimental) + - wxCrafter: allow to keep sizers are members + - wxCrafter: fixed: crash when clicking on `Select virtual directory` while in standalone mode + - wxCrafter: event handlers are now using the `wx3.0` syntax of `Bind()`/`Unbind()` instead of `Connect()`/`Disconnect()` + - wxCrafter: by default, generate `.hpp` files instead of `.h` + - Remoty plugin: the way it launches language servers on the remote machine has changed. [See the docs for more details][6] + - Improved file syntax using the shebang + - Make the `Preferences` dialog more native to the host OS + - Added an option to enable/disable the newly added feature of highligting the current line number. This should allow CodeLite running on older machines with bad graphics cards to run smoother + - Improved type info tooltips (`ctagsd`) + - Find Bar: use the same text control as the main editor instead of `wxTextCtrl` + +------------------------------------------------------------------- Old: ---- 0001-Fix-compilation-with-recent-glibc-where-SIGSTKSZ-is-.patch codelite-15.0.tar.gz codelite-SpellChecker-unnest-classes.patch fix_compilation_JSON_wxWidgets.patch New: ---- 15.0.11.tar.gz wxStl.patch wxVersion.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ codelite.spec ++++++ --- /var/tmp/diff_new_pack.oA51oF/_old 2022-04-16 00:16:02.353792504 +0200 +++ /var/tmp/diff_new_pack.oA51oF/_new 2022-04-16 00:16:02.361792514 +0200 @@ -27,7 +27,7 @@ %bcond_without clang %endif Name: codelite -Version: 15.0.0 +Version: 15.0.11 Release: 0 Summary: Code editor for C, C++, PHP and Node.js # parts of package contain LGPL-3.0 licenced code thus license needs to be @@ -35,18 +35,17 @@ License: GPL-3.0-only Group: Development/Tools/IDE URL: http://codelite.org/ -Source0: https://github.com/eranif/%{name}/archive/%{short_ver}/%{name}-%{short_ver}.tar.gz +Source0: https://github.com/eranif/codelite/archive/refs/tags/%{version}.tar.gz # Template files are identified by RPMLint as Development-Files --> Ignore this errors Source1: %{name}-rpmlintrc -# PATCH-FIX-OPENSUSE fix_compilation_JSON_wxWidgets.patch andythe_gr...@pm.me gh#eranif/codelite#2649 -- wxWidgets builds on openSUSE cause Codelite to fail to compile. Upstream have workaround for Leap 15.2 but will fail on TW. -Patch0: fix_compilation_JSON_wxWidgets.patch +# PATCH-FIX-UPSTREAM wxStl.patch con...@quisquis.de -- Fix problem when wxWidgets was compile with wxUSE_STL=1 +Patch0: wxStl.patch # PATCH-FIX-OPENSUSE fix_node_env-script-interpreter.patch andythe_gr...@pm.me -- Fix RPMLINT warning env-script-interpreter. Patch1: fix_node_env-script-interpreter.patch -# PATCH-FIX-UPSTREAM -Patch2: 0001-Fix-compilation-with-recent-glibc-where-SIGSTKSZ-is-.patch -# PATCH-FIX-UPSTREAM codelite-SpellChecker-unnest-classes.patch deb#997219 badshah...@gmail.com -- Un-nest 2 nested classes: this fixes compilation with g++ 11.2.0; patchtaken from upstream commit and re-based for current version -Patch3: codelite-SpellChecker-unnest-classes.patch +# PATCH-FIX-UPSTREAM wxStl.patch con...@quisquis.de -- Fix problem with wx version 3.1.0 and 3.1.1 +Patch2: wxVersion.patch BuildRequires: cmake +BuildRequires: ctags BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: hicolor-icon-theme @@ -57,6 +56,7 @@ BuildRequires: pkgconfig(hunspell) BuildRequires: pkgconfig(libssh) BuildRequires: pkgconfig(sqlite3) +Requires: ctags Requires: hicolor-icon-theme Requires: xterm-bin %if %{with lldb} @@ -71,7 +71,7 @@ It uses an interface with which users can create, build and debug projects. %prep -%autosetup -p1 -n %{name}-%{short_ver} +%autosetup -p1 %build %cmake \ @@ -88,6 +88,8 @@ %install %cmake_install +%__rm %{buildroot}%{_bindir}/ctagsd-tests +%__ln_s -f ctags %{buildroot}%{_bindir}/codelite-ctags %find_lang %{name} ### Add mime types mkdir -p %{buildroot}%{_datadir}/mime/packages/ @@ -100,6 +102,7 @@ %license COPYING %doc about.html AUTHORS %{_bindir}/%{name}* +%{_bindir}/ctagsd %{_libdir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop ++++++ codelite-15.0.tar.gz -> 15.0.11.tar.gz ++++++ /work/SRC/openSUSE:Factory/codelite/codelite-15.0.tar.gz /work/SRC/openSUSE:Factory/.codelite.new.1941/15.0.11.tar.gz differ: char 12, line 1 ++++++ fix_node_env-script-interpreter.patch ++++++ --- /var/tmp/diff_new_pack.oA51oF/_old 2022-04-16 00:16:02.425792599 +0200 +++ /var/tmp/diff_new_pack.oA51oF/_new 2022-04-16 00:16:02.425792599 +0200 @@ -7,4 +7,12 @@ //===-------------------------------------------------------------------------------- // Copyright: Eran Ifrah +--- codelite-15.0.11/Runtime/codelite-remote.orig 2022-04-09 09:42:24.187982675 +0200 ++++ codelite-15.0.11/Runtime/codelite-remote 2022-04-09 09:42:38.432156566 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python3 ++#!/usr/bin/python3 + import sys + import os + import json ++++++ wxStl.patch ++++++ --- orig/CodeLite/JSON.cpp 2022-04-08 17:21:35.321282802 +0200 +++ new/CodeLite/JSON.cpp 2022-04-08 17:21:58.161543452 +0200 @@ -804,12 +804,3 @@ } return *this; } - -JSONItem& JSONItem::addProperty(const wxString& name, const wxVector<int>& arr_int) -{ - std::vector<int> V; - V.reserve(arr_int.size()); - - V.insert(V.end(), arr_int.begin(), arr_int.end()); - return addProperty(name, V); -} --- orig/CodeLite/JSON.h 2022-04-08 17:21:37.721310192 +0200 +++ new/CodeLite/JSON.h 2022-04-08 17:21:47.961427049 +0200 @@ -41,6 +41,7 @@ #endif #include "macros.h" #include <vector> +#include <type_traits> // clang-format on ////////////////////////////////////////////////////////////////////////// @@ -164,7 +165,11 @@ JSONItem& addProperty(const wxString& name, cJSON* pjson); JSONItem& addProperty(const wxString& name, const wxFileName& filename); JSONItem& addProperty(const wxString& name, const std::vector<int>& arr_int); - JSONItem& addProperty(const wxString& name, const wxVector<int>& arr_int); + template<class T = int> + typename std::enable_if<!std::is_same<wxVector<T>, std::vector<T>>::value, + JSONItem&>::type addProperty(const wxString& name, const wxVector<T>& arr_int) { + return addProperty(name, std::vector<T>(arr_int.begin(), arr_int.end())); + } #if wxUSE_GUI JSONItem& addProperty(const wxString& name, const wxSize& sz); --- orig/LiteEditor/quickfindbar.cpp 2022-04-08 17:32:47.496953563 +0200 +++ new/LiteEditor/quickfindbar.cpp 2022-04-08 17:33:50.077667723 +0200 @@ -778,7 +778,7 @@ bool isUTF8 = false; wxString input_buffer = m_sci->GetText(); - unsigned int utfLen = ::clUTF8Length(input_buffer, input_buffer.length()); + unsigned int utfLen = ::clUTF8Length(input_buffer.ToStdWstring().c_str(), input_buffer.length()); isUTF8 = (utfLen != input_buffer.length()); if(!IsReplacementRegex() && !isUTF8) { --- orig/LiteEditor/replaceinfilespanel.cpp 2022-04-08 17:33:04.889152040 +0200 +++ new/LiteEditor/replaceinfilespanel.cpp 2022-04-08 17:33:58.921768651 +0200 @@ -311,7 +311,7 @@ wxString replaceText = DoGetReplaceWith(res); int replaceLenInChars = (int)replaceText.Len(); - int replaceLen = (int)::clUTF8Length(replaceText, replaceLenInChars); + int replaceLen = (int)::clUTF8Length(replaceText.ToStdWstring().c_str(), replaceLenInChars); // extract originally matched text for safety check later wxString text = res.GetPattern().Mid(res.GetColumnInChars() - deltaInChars, res.GetLenInChars()); --- codelite-15.0.11/ctagsd/tests/tester.hpp.orig 2022-04-08 18:27:21.991227538 +0200 +++ codelite-15.0.11/ctagsd/tests/tester.hpp 2022-04-08 18:26:40.890746349 +0200 @@ -131,6 +131,13 @@ } \ } +static int strcmp(const wxString& str, const char* expc) { + return strcmp(str.ToStdString().c_str(), expc); +} +static int strcmp(const wxString& str, const wxString& expc) { + return strcmp(str.ToStdString().c_str(), expc.ToStdString().c_str()); +} + #define CHECK_STRING(str, expcStr) \ { \ ++m_testCount; \ ++++++ wxVersion.patch ++++++ --- codelite-15.0.11/Plugin/clButtonBase.cpp.orig 2022-04-08 17:58:57.751161897 +0200 +++ codelite-15.0.11/Plugin/clButtonBase.cpp 2022-04-08 18:03:48.538582896 +0200 @@ -14,6 +14,9 @@ #define TEXT_SPACER FromDIP(5) #else #define TEXT_SPACER 5 +#endif +#if wxCHECK_VERSION(3, 1, 2) +#else #define SetFractionalPointSize SetPointSize #define wxFONTWEIGHT_SEMIBOLD wxFONTWEIGHT_BOLD #endif