Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ruby code mangling #7129

Open
apsoto opened this issue Feb 18, 2025 · 2 comments
Open

Ruby code mangling #7129

apsoto opened this issue Feb 18, 2025 · 2 comments
Assignees
Labels
bug Something isn't working repo/cody

Comments

@apsoto
Copy link

apsoto commented Feb 18, 2025

Type: Bug

Extension Information

  • Cody Version: 1.68.0
  • VS Code Version: 1.97.2
  • Extension Host: desktop

Steps to Reproduce

  1. I put my curson on the line of a method definition and asked it to document the code
  2. It generated the docs fine, but it inserted the method definition again

NOTE the example below was generated by Cody, but I modified the comment docs slightly to remove product specific details. However the code itself is unchanged

    # Initializes a new API client with the given access URL.
    #
    # @param access_url [String] The access url provided via setup token exchange
    def initialize(access_url)
    def initialize(access_url)

Expected Behaviour

  1. Document the code without inserting syntax errors

cody_1739910688690.log

Logs

Extension version: 1.70.0
VS Code version: Code 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z)
OS version: Darwin arm64 24.3.0
Modes:

System Info
Item Value
CPUs Apple M3 (8 x 2400)
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
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 3, 2, 2
Memory (System) 24.00GB (0.14GB free)
Process Argv . --crash-reporter-id dca7819e-b45a-4767-a444-5f9b4c16239d
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc2:31192216
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputs:31238123
customenabled:31237564
9064b325:31222308
copilot_t_ci:31222730
jda6j935:31233686
g941i948:31240199

Copy link

linear bot commented Feb 18, 2025

@github-actions github-actions bot added bug Something isn't working repo/cody labels Feb 18, 2025
@PriNova
Copy link
Collaborator

PriNova commented Feb 20, 2025

Hey @apsoto

Thank you for reporting this issue. This problem can be observed with other languages too. The team is aware of it.

Sorry for the inconvenience.

@PriNova PriNova self-assigned this Feb 20, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working repo/cody
Projects
None yet
Development

No branches or pull requests

2 participants