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

Python varible theme is not matching VS Code #46

Closed
zhiyaot opened this issue Jan 16, 2022 · 3 comments
Closed

Python varible theme is not matching VS Code #46

zhiyaot opened this issue Jan 16, 2022 · 3 comments

Comments

@zhiyaot
Copy link

zhiyaot commented Jan 16, 2022

What the issue is?

The theme for python in both CLion and PyCharm is not exactly matching VSCode

Screenshots

image
^^^ this is in CLion

image
^^^ in VSCode

Which is more concerning, or I suspect a bug from Jetbrain

image
^^^ This is what the setting page gives as a preview of the python code

image
^^^ Copied to the editor, notice that the light blue for local variable x is gone

How would you fix it?

I have no idea :(

Additional info

Q A
Plugin Version 2.5
IDE and version CLion 2021.3.2
Operating system Window 10, Ubuntu 20.04
@samdark
Copy link
Owner

samdark commented Jan 16, 2022

Thanks for reporting. Would you please attach the file in question?

@zhiyaot
Copy link
Author

zhiyaot commented Jan 16, 2022

import argparse
import logging
import pathlib
import sys
from datetime import date

if __name__ == "__main__":
    parser = argparse.ArgumentParser(description='bert_gen', prog='bert_gen')
    parser.add_argument("baseDir", help='Directory of the file_gen.tcl output')
    parser.add_argument("--log")
    parser.add_argument('--version', action='version', version='%(prog)s 1.0')
    args = parser.parse_args()

    logger = logging.getLogger('bert_gen')

    if sys.platform.startswith('win32'):
        print("Detected Windows System")

    elif sys.platform.startswith('linux'):
        print("hahha")
@decorator(param=1)
def f(x):
    """
    Syntax Highlighting Demo
    @param x Parameter

    Semantic highlighting:
    Generated spectrum to pick colors for local variables and parameters:
     Color#1 SC1.1 SC1.2 SC1.3 SC1.4 Color#2 SC2.1 SC2.2 SC2.3 SC2.4 Color#3
     Color#3 SC3.1 SC3.2 SC3.3 SC3.4 Color#4 SC4.1 SC4.2 SC4.3 SC4.4 Color#5
    """

    def nested_func(y):
        print(y + 1)

    s = ("Test", 2+3, {'a': 'b'}, f'{x!s:{"^10"}}')   # Comment
    f(s[0].lower())
    nested_func(42)

class Foo:
    tags: List[str]

    def __init__(self: Foo):
        byte_string: bytes = b'newline:\n also newline:\x0a'
        text_string = u"Cyrillic Я is \u042f. Oops: \u042g"
        self.make_sense(whatever=1)

    def make_sense(self, whatever):
        self.sense = whatever

x = len('abc')
print(f.__doc__)

@samdark
Copy link
Owner

samdark commented Jan 17, 2022

Thanks. I can't promise I'll look into it anytime soon so anyone that has time and can help adjusting the color schema, you're very welcome.

@samdark samdark closed this as completed Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants