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

duplicate code #6162

Open
Atomx3 opened this issue Nov 20, 2024 · 2 comments
Open

duplicate code #6162

Atomx3 opened this issue Nov 20, 2024 · 2 comments
Assignees
Labels
cody question Further information is requested repo/cody

Comments

@Atomx3
Copy link

Atomx3 commented Nov 20, 2024

Type: Bug

cody duplicate input main function at last of the program, it can not detect this error, even can duplicate to 3 same function s of main.
this kind of errors happen usually ! example as below.

if __name__ == "__main__":
    main()
if __name__ == "__main__":
    main()
    main()

Extension version: 1.42.0
VS Code version: Code 1.95.3 (Universal) (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Darwin x64 21.5.0
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 2, 2, 2
Memory (System) 32.00GB (7.93GB free)
Process Argv --crash-reporter-id 0a231bc3-3848-45a8-ad49-cff4acda8eac
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
jg8ic977:31013176
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
nativerepl2:31139839
pythonrstrctxt:31112756
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

Copy link

linear bot commented Nov 20, 2024

BUGS-757 duplicate code

@Kynlos Kynlos added the cody label Nov 21, 2024 — with Linear
@PriNova PriNova self-assigned this Nov 22, 2024
@PriNova PriNova added the question Further information is requested label Nov 22, 2024
@PriNova
Copy link
Collaborator

PriNova commented Nov 25, 2024

Hello @Atomx3

May you please describe in detail what you mean that Cody can't detect duplicated code.
Do you mean by asking Cody about that code or was it generated during the Documentation feature or elsewhere.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cody question Further information is requested repo/cody
Projects
None yet
Development

No branches or pull requests

3 participants