Skip to content

Semantic highlighting fails to recognize method #7162

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

Open
D4n16l6 opened this issue Apr 26, 2025 · 1 comment
Open

Semantic highlighting fails to recognize method #7162

D4n16l6 opened this issue Apr 26, 2025 · 1 comment
Assignees
Labels
team needs to reproduce Issue has not been reproduced yet waiting for user response Requires more information from user

Comments

@D4n16l6
Copy link

D4n16l6 commented Apr 26, 2025

Type: Bug

I used Developer: Inspect Editor Tokens and Scopes to inspect this code (complete code is very long):

                self.signal_history_orderbook.append(combined_signal)
                if len(self.signal_history_orderbook) > self.signal_history_max_size:
                    self.signal_history_orderbook.pop(0)

                self.signal_history_counter += 1
                if self.signal_history_counter % 5 == 0:
                    # Calcola percentuali degli ultimi segnali
                    total_signals = len(self.signal_history_orderbook)
                    hold_count = self.signal_history_orderbook.count('hold')
                    buy_count = self.signal_history_orderbook.count('buy') 
                    sell_count = self.signal_history_orderbook.count('sell')

and the result is:

METHOD POP :

pop3 chars
language	python
standard token type	Other
foreground	#AA3731
background	#F5F5F5
contrast ratio	5.84
font style	bold
semantic token type	method
modifiers	builtin
foreground, bold, italic, underline, strikethrough	entity.name.function.member
entity.name.function
support.function
{ "fontStyle": "bold", "foreground": "#AA3731" }

METHOD COUNT :

count5 chars
language	python
standard token type	Other
foreground	#333333
background	#F5F5F5
contrast ratio	11.59
textmate scopes	meta.function-call.generic.python
meta.function-call.python
meta.member.access.python
source.python

METHOD APPEND:

append6 chars
language	python
standard token type	Other
foreground	#333333
background	#F5F5F5
contrast ratio	11.59
textmate scopes	meta.function-call.generic.python
meta.function-call.python
meta.member.access.python
source.python
foreground	No theme selector

Only POP is colorized ad method APPEND and COUNT not but not exception in execution.

Extension version: 2025.4.1
VS Code version: Code 1.99.3 (17baf841131aa23349f217ca7c570c76ee87b957, 2025-04-15T23:18:46.076Z)
OS version: Windows_NT x64 10.0.17134
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (8 x 3392)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 7.88GB (3.40GB free)
Process Argv --crash-reporter-id 615e4942-4e42-4304-8058-0d576a4c77f7
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscod805:30301674
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
pythonrstrctxt:31112756
nativeloc1:31192215
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
e5gg6876:31282496
cp15370_c:31280196
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
31787653:31262186
3e8i5726:31271747
996jf627:31283433
usemplatestapi:31292913
7bj51361:31289155
747dc170:31275177
aj496949:31278748
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
gendocf:31295004

@github-actions github-actions bot added the team needs to reproduce Issue has not been reproduced yet label Apr 26, 2025
@debonte
Copy link
Contributor

debonte commented Apr 28, 2025

Can you provide a complete code sample that reproduces the behavior that you are seeing?

@debonte debonte added the waiting for user response Requires more information from user label Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team needs to reproduce Issue has not been reproduced yet waiting for user response Requires more information from user
Projects
None yet
Development

No branches or pull requests

2 participants