Closed RaptorX closed 7 months ago
Yeah I'm getting these too.
This is completely valid code and runs fine, but every time the color
array is accessed, the addon freaks out:
F1::pick_a_color()
pick_a_color() {
; Default color set
static default_color := [
"FF0000",
"FFA800",
"6CFF00",
"00FFDE",
"9600FF",
"FF4E4E",
"FFFD4E",
"00FF72",
"0054FF",
"FF00FC"
]
; Color array to pull from
static color := []
; When color array is empty
if (color.Length < 1) {
color := []
for value in default_color
color.Push(value)
}
; Randomly pick a color and remove it
choice := color. ; <----immediately errors when the dot is typed
;; Error message: Request textDocument/completion failed.
;; Message: Request textDocument/completion failed with message: Invalid regular expression: /^\s*@(var)\s+{(.*[^\])?}\s+color(\s|$)/im: Unterminated character class
;; Code: -32603
; Send color choice
Send(choice)
}
Also this:
Type: Bug
I get this error when I start typing a completion of a static property that happens to be an object:
This property definition can be found on Descoladas UIA-v2 library. It was working fine before.
Extension version: 2.3.7 VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:20:17.278Z) OS version: Windows_NT x64 10.0.22621 Modes:
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz (4 x 3198)| |GPU Status|2d_canvas: enabledcanvas_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| |Load (avg)|undefined| |Memory (System)|31.88GB (20.82GB free)| |Process Argv|S:\\Prompt Assistant --crash-reporter-id 3e042e59-cb22-4371-968a-6f3e35abe666| |Screen Reader|no| |VM|0%|
A/B Experiments
``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 pydisww1:30991133 cppperfnew:30979542 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp1r6:30958156 dsvsc020:30976470 ```