Bug 1200875 - suse.vimrc fails to load on *.sls files
Summary: suse.vimrc fails to load on *.sls files
Status: RESOLVED DUPLICATE of bug 1200184
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Salt (show other bugs)
Version: Leap 15.4
Hardware: x86-64 openSUSE Leap 15.4
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: E-Mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-23 12:17 UTC by Georg Pfuetzenreuter
Modified: 2022-06-24 09:50 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georg Pfuetzenreuter 2022-06-23 12:17:42 UTC
Hi,

this is a fresh install of openSUSE Leap 15.4.

Creating/editing a .sls file using `vim` causes some errors:

georg@georg-dev02 /s/salt> vim vim/init.sls
Error detected while processing /usr/share/vim/vim82/suse.vimrc[10]../usr/share/vim/vim82/syntax/syntax.vim[43]..BufRead Autocommands for "*.sls"..function DetectSls[5]..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>3_SynSet[25]..script /usr/share/vim/site/syntax/sls.vim:
line   67:
E723: Missing end of Dictionary '}': 
line   68:
E10: \ should be followed by /, ? or &
line   69:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue

georg@georg-dev02 /s/salt> zypper se -iv vim                                                                          
Loading repository data...                                                                                            
Reading installed packages...                              
                                                                                                                      
S  | Name                      | Type    | Version                | Arch   | Repository                                       
---+---------------------------+---------+------------------------+--------+-----------------------------------------------------------
--                                                                                                                            
i  | vim                       | package | 8.2.5038-150000.5.21.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 
15                                                         
    name: vim                                                                                                                 
i+ | vim-data                  | package | 8.2.5038-150000.5.21.1 | noarch | Update repository with updates from SUSE Linux Enterprise 
15                                                         
    name: vim-data                                                                                                            
i+ | vim-data-common           | package | 8.2.5038-150000.5.21.1 | noarch | Update repository with updates from SUSE Linux Enterprise 
15                                                                                                                    
    name: vim-data-common                                                                                                     
i+ | vim-plugin-salt           | package | 0.0.1-bp154.2.18       | noarch | repo-oss                                                  
    name: vim-plugin-salt                                                                                                     
i+ | vim-plugin-searchcomplete | package | 1.1-bp154.2.18         | noarch | repo-oss                                                  
    name: vim-plugin-searchcomplete

I tried to force re-install vim-plugin-salt but it did not help.

Best,
Georg
Comment 1 Pablo Suárez Hernández 2022-06-23 14:20:01 UTC
The error is not for ".sls" files but a general issue on vim configuration.

This is a duplicated of https://bugzilla.suse.com/show_bug.cgi?id=1200184

Closing this one. Thanks for reporting!

*** This bug has been marked as a duplicate of bug 1200184 ***
Comment 2 Georg Pfuetzenreuter 2022-06-23 14:28:41 UTC
Thank you - however the other bug suggests the error to occur at every start of vim and it being resolved after installing `vim-data`.

In my case the error only occurs when I try to open/edit a .sls file, typing `vim foo.py` or simply `vim` works with no issues - and I do already have `vim-data` installed.
Comment 3 Georg Pfuetzenreuter 2022-06-24 07:24:12 UTC
Based on this, would it be o.k. with you to re-open this ticket?
Comment 4 Pablo Suárez Hernández 2022-06-24 09:50:37 UTC
Hey Georg,
this should be the same issue: the current "suse.vimrc" was messy and caused these unexpected issues when opening new files or certain files.

I've tested this, also getting as you, the error message when opening new "sls" files, but I got the issue solved as soon as I upgraded "vim" to latest version coming from:

https://download.opensuse.org/repositories/editors/openSUSE_Leap_15.4/editors.repo

The fix is already submitted to openSUSE:Factory and should get soon also into Leap.

Is this update also fixing the issue for you?