zachflower / vscode-uncrustify

Uncrustify code formatter extension for Visual Studio Code
MIT License
7 stars 4 forks source link

Copy paste duplication in dev container #11

Open epac-tom opened 2 years ago

epac-tom commented 2 years ago

Issue Type: Bug

Remote-Containers: Try a Development Container Sample... Select C++ option Install Uncrustify extension in Dev Container Install uncrusity (apt install uncrustify) in Dev Container Create uncrustify.cfg, with default config Copy any line in file Paste line Result is the entire file (?) is duplicated at that line.

Example: Copy line 12 of main.cpp - return 0; and paste on line below this is the result:

include

include

using namespace std;

int main() { cout << "Hello World\n"; cout << "Input: "; string data; getline(cin, data); cout << "Output: " << data << "\n\n"; return 0;

include

include

using namespace std;

int main() { cout << "Hello World\n"; cout << "Input: "; string data; getline(cin, data); cout << "Output: " << data << "\n\n"; return 0; return 0; } }

Extension version: 3.2.0 VS Code version: Code 1.68.1 (30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-14T12:48:58.283Z) OS version: Windows_NT x64 10.0.19044 Restricted Mode: No Connection to 'dev-container+633a5c6465766f707364656d6f735c7870635f6170706c69636174696f6e' could not be established

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz (16 x 2496)| |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
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|31.20GB (5.24GB free)| |Process Argv|--folder-uri vscode-remote://dev-container%2B633a5c6465766f707364656d6f735c7870635f6170706c69636174696f6e/workspaces/xpc_application --crash-reporter-id f295f7a2-3e2f-4a78-90b0-66d65453804b| |Screen Reader|no| |VM|0%| Connection to 'dev-container+633a5c6465766f707364656d6f735c7870635f6170706c69636174696f6e' could not be established
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 vscscmwlcmt:30465135 cppdebug:30492333 vscaac:30438847 vsclangdc:30486549 841h4636:30513947 ```
eofferma commented 2 years ago

I have this exact error too ... how can We build the old Laurent's version meanwhile.

epac-tom commented 2 years ago

I'm getting this locally now as well, not associated with working within a container