language-cython-for-vscode icon indicating copy to clipboard operation
language-cython-for-vscode copied to clipboard

comments uses // instead of #

Open T4mmi opened this issue 5 years ago • 9 comments

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 (//, /**)

T4mmi avatar May 14 '19 08:05 T4mmi

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)?

guyskk avatar May 16 '19 01:05 guyskk

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...

T4mmi avatar May 16 '19 07:05 T4mmi

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

guyskk avatar May 16 '19 07:05 guyskk

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

T4mmi avatar May 16 '19 07:05 T4mmi

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

Salsa0780 avatar Apr 23 '20 15:04 Salsa0780

@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

kasliwalr avatar Feb 17 '21 17:02 kasliwalr

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

Mechazo11 avatar Sep 18 '22 22:09 Mechazo11

same issue with macOS

mauhcs avatar Nov 17 '22 03:11 mauhcs

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": [ "\"\"\"", "\"\"\"" ]
    },

valentynbez avatar Dec 07 '22 08:12 valentynbez