Giter Club home page Giter Club logo

Comments (4)

ap avatar ap commented on July 27, 2024

Thank you for reporting this.

the highlighting of vim-color-css seems to not be affected, at least at first glance.

It will indeed not be affected. Only performance might, in very bloated files.

I’m not sure what’s going on as ⓐ I don’t think I can reproduce the error despite using Vim 9 as my daily driver (but only 9.0.0065; who knows if that’s relevant) and ⓑ there’s quite a bit going on in that line but the error does not obviously seem connected to any of it, and so the change you made does not obviously look like it should fix it.

Does opening an empty HTML/Markdown file throw the error too?

If you are willing to help me narrow this down, can you try this line instead and tell me if that also triggers the error?

call filter( range( line('w0'), line('w$') ), 'substitute( getline(v:val), b:css_color_pat, ''\=s:create_syn_match()'', ''g'' )' )

from vim-css-color.

Aryailia avatar Aryailia commented on July 27, 2024

I went about recreating a clean vim config environment to test this issue, and the issues magically disappeared. I deleted my vim directory and checking it out again from my dotfiles repo seems to have fixed it magically. So I guess either I made a mistake the first time around, or an update (though my vim version didn't change), or something tweaking a long the way fixed something.

So uhh... sorry for crying wolf.

from vim-css-color.

ap avatar ap commented on July 27, 2024

No worries, happens to all of us. 🙂 Thanks for going to the trouble of trying to reproduce the issue cleanly, even if the outcome was that it just up and disappeared (sort of an inverse of the stages of debugging I guess (“how did that ever not work?”)). I’d rather err on the side of the occasional false positive than an occasional real issue going unreported, even if it means wasting a few minutes.

from vim-css-color.

Jefferson-Faseler avatar Jefferson-Faseler commented on July 27, 2024

I am also having this same issue with markdown files.

I ran your debug line from the comment above in command mode and as a vimscript and got

E120: Using <SID> not in a script context: s:create_syn_match

As a vimscript

:so debug.vim

Error detected while processing /Users/whoami/code/team-utils/debug.vim:
line    1:
E117: Unknown function: s:create_syn_match
Press ENTER or type command to continue

I won't pretend to be a vimscript expert, and I'm pretty swamped to understand loading files today but I can run further debugging if you need.

And to answer your other question about it happening in an empty md file, yes. It still happens. Seems to be just any md filetype. However, it isn't happening on html files like the original issue message.

from vim-css-color.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.