Bug 33396 - Syntax errors when opening Python files in vim
Summary: Syntax errors when opening Python files in vim
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: has_procedure,MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2024-07-12 20:57 CEST by Dan Fandrich
Modified: 2024-08-01 08:01 CEST (History)
3 users (show)

See Also:
Source RPM: vim-9.1.411-1.mga9.src.rpm
CVE:
Status comment:


Attachments

Description Dan Fandrich 2024-07-12 20:57:54 CEST
Description of problem:
Opening a Python file with vim produces
Error detected while processing BufRead Autocommands for "*.py"..FileType Autocommands for "*"..func
tion <SNR>4_LoadFTPlugin[18]..script /usr/share/vim/ftplugin/python.vim:
line   17:
E518: Unknown option: ]\\?def\\|class\\)
Press ENTER or type command to continue

The problem has been fixed in Cauldron in vim-9.1.411-2.mga10

Version-Release number of selected component (if applicable):
vim-9.1.411-1

How reproducible:
100%

Steps to Reproduce:
1. vim -u /usr/share/vim/defaults.vim /usr/share/vim/tools/demoserver.py
The -u option is probably not necessary but guarantees that the user's .vimrc file doesn't set an option to make the problem not show up.
Comment 1 Lewis Smith 2024-07-12 21:42:37 CEST
Dan, thank you for the report.
It looks like you currently commit vim, so you will excuse me for assigning this to you for the Mageia 9 fix.

Assignee: bugsquad => dan

Comment 2 Dan Fandrich 2024-07-12 21:47:01 CEST
I'm happy to do it, but I didn't want to overrule the registered maintainer.
Comment 3 katnatek 2024-07-13 01:27:41 CEST
tv is the registered maintainer but Nicolas send the last

Assignee: dan => nicolas.salguero

Comment 4 Nicolas Salguero 2024-07-15 14:26:13 CEST
(In reply to Dan Fandrich from comment #2)
> I'm happy to do it, but I didn't want to overrule the registered maintainer.

Hi,

From my point of view, feel free to fix that bug.

Best regards,

Nico.

Assignee: nicolas.salguero => dan

Comment 5 Dan Fandrich 2024-07-31 06:38:31 CEST
The following are available in updates_testing:

RPMS:

vim-common-9.1.411-1.1.mga9
vim-minimal-9.1.411-1.1.mga9
vim-enhanced-9.1.411-1.1.mga9
vim-X11-9.1.411-1.1.mga9
vim-debuginfo-9.1.411-1.1.mga9
vim-debugsource-9.1.411-1.1.mga9

SRPMS:

vim-9.1.411-1.1.mga9


Suggested advisory description:

vim displayed an error message when opening a Python source file due to a upstream error. This version has corrected that error.

Assignee: dan => qa-bugs
CC: (none) => dan
Whiteboard: (none) => has_procedure
Status: NEW => ASSIGNED

katnatek 2024-07-31 18:46:30 CEST

Keywords: (none) => advisory

Comment 6 katnatek 2024-07-31 18:51:53 CEST
RH mageia 9 x86_64 

Confirm the bug

LC_ALL=C urpmi --auto --auto-update 
medium "QA Testing (32-bit)" is up-to-date
medium "QA Testing (64-bit)" is up-to-date
medium "Core Release (distrib1)" is up-to-date
medium "Core Updates (distrib3)" is up-to-date
medium "Nonfree Release (distrib11)" is up-to-date
medium "Nonfree Updates (distrib13)" is up-to-date
medium "Tainted Release (distrib21)" is up-to-date
medium "Tainted Updates (distrib23)" is up-to-date
medium "Core 32bit Release (distrib31)" is up-to-date
medium "Core 32bit Updates (distrib32)" is up-to-date
medium "Nonfree 32bit Release (distrib36)" is up-to-date
medium "Tainted 32bit Release (distrib41)" is up-to-date
medium "Tainted 32bit Updates (distrib42)" is up-to-date

installing vim-enhanced-9.1.411-1.1.mga9.x86_64.rpm vim-common-9.1.411-1.1.mga9.x86_64.rpm vim-minimal-9.1.411-1.1.mga9.x86_64.rpm vim-X11-9.1.411-1.1.mga9.x86_64.rpm from //home/katnatek/qa-testing/x86_64
Preparing...                     ##################################################################################################
      1/4: vim-common            ##################################################################################################
      2/4: vim-enhanced          ##################################################################################################
      3/4: vim-X11               ##################################################################################################
      4/4: vim-minimal           ##################################################################################################
      1/4: removing vim-X11-9.1.411-1.mga9.x86_64
                                 ##################################################################################################
      2/4: removing vim-enhanced-9.1.411-1.mga9.x86_64
                                 ##################################################################################################
      3/4: removing vim-common-9.1.411-1.mga9.x86_64
                                 ##################################################################################################  
      4/4: removing vim-minimal-9.1.411-1.mga9.x86_64
                                 ##################################################################################################

open a python file without see the message
open an edit other files OK

CC: (none) => andrewsfarm
Whiteboard: has_procedure => has_procedure,MGA9-64-OK

Comment 7 Thomas Andrews 2024-08-01 03:51:05 CEST
Validating.

CC: (none) => sysadmin-bugs
Keywords: (none) => validated_update

Comment 8 Mageia Robot 2024-08-01 08:01:16 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0174.html

Resolution: (none) => FIXED
Status: ASSIGNED => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.