Bug 33396 - Syntax errors when opening Python files in vim
Summary: Syntax errors when opening Python files in vim
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Dan Fandrich
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-12 20:57 CEST by Dan Fandrich
Modified: 2024-07-15 14:26 CEST (History)
0 users

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


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