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

comments uses // instead of # #7

Open
T4mmi opened this issue May 14, 2019 · 9 comments
Open

comments uses // instead of # #7

T4mmi opened this issue May 14, 2019 · 9 comments

Comments

@T4mmi
Copy link

T4mmi commented May 14, 2019

Hi,
Thanks for the cython syntax support !
Just a quick feedback : It should be useful to get a python-like comments when toogle code comments (block & line) instead of a C/C++ like (//, /**)

@guyskk
Copy link
Owner

guyskk commented May 16, 2019

Hi, I can not reproduce your problem, the plugin works as expected(comment with '#').
Can you provide more details(eg: OS version, vscode version and plugin version, and/or screenshot)?

@T4mmi
Copy link
Author

T4mmi commented May 16, 2019

Hi,
I'm using the last stable versions of VSCode (1.33.1) and Language-Cython (0.0.5).
The issue is when using the Edit>Toggle Line Comment or Toggle Block Comment (or shortcuts) with the Cython syntax activated it comment using // instead of #.
However the color syntax is correct, it detects # as comments and // as regular characters...

@guyskk
Copy link
Owner

guyskk commented May 16, 2019

I use the same version with you, but still can't reproduce. What's your OS version? Do you install other plugins about cython?

@T4mmi
Copy link
Author

T4mmi commented May 16, 2019

Sorry, I'm under Windows 10 Pro, I don't have any other cython plugins :(

@Salsa0780
Copy link

On Linux (Ubuntu 19.10), I fixed this problem by reloading the window:
Ctrl+Shift+P:Reload Window

@kasliwalr
Copy link

@stowejt this worked for me.
Using Ubuntu 20.04, VS code 1.53 and Language-Cython 0.0.6, and having the same problem as @T4mmi

@Mechazo11
Copy link

Same issue as @kasliwalr in Windows 10 and V.S. code 1.72.1

@mauhcs
Copy link

mauhcs commented Nov 17, 2022

same issue with macOS

@valentynbez
Copy link

valentynbez commented Dec 7, 2022

Same issue, Windows 10 and VS Code 1.73.1
The problem is in cython.configuration.json. I manually fixed it by replacing the old comments section in the file:

"comments": {
        // symbol used for single line comment. Remove this entry if your language does not support line comments
        "lineComment": "#",
        // symbols used for start and end a block comment. Remove this entry if your language does not support block comments
        "blockComment": [ "\"\"\"", "\"\"\"" ]
    },

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

7 participants