Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert_rgb filter causes syntax error #250

Open
Acemandinga opened this issue Sep 8, 2023 · 0 comments
Open

convert_rgb filter causes syntax error #250

Acemandinga opened this issue Sep 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Acemandinga
Copy link

Describe the bug
When using the convert_rgb filter (in my case {% macro to_rgba(color) %}rgba({{ color.color|convert_rgb }}, {{ color.opacity|int(100)/100 }}){% endmacro %}), the line will turn red with the error Passed #null into convert_rgb, needs to be in #87c95f format.

To Reproduce
Steps to reproduce the behavior:

  1. add the above macro to your code
  2. Run/build
  3. Notice red line and error in vscode

Expected behavior
No error, since a) it is a macro, and b) convert_rgb has no parameters (aka you can't do color|convert_rgb(#ffffff) according to the docs)

** Environment Versions: **

  • VSCode Version: 1.82.0
  • HubSpot VSCode Extension version: 1.2.1
  • OS: MacOS Ventura 13.5.2

Additional context
Add any other context about the problem here.

@Acemandinga Acemandinga added the bug Something isn't working label Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant