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

Undue C++ namespace std error #185878

Closed
vitorfff opened this issue Jun 22, 2023 · 2 comments
Closed

Undue C++ namespace std error #185878

vitorfff opened this issue Jun 22, 2023 · 2 comments
Assignees

Comments

@vitorfff
Copy link

vitorfff commented Jun 22, 2023

Type: Bug

Error from Closed Issue #184167 still persists.

In C++ code, even with "using namespace std", code still sometimes shows "cout is ambiguous" error message. When clicking to run code it runs fine. Also if window is reopened error message disappears.

Code:
`#include
using namespace std;

int main()
{
cout << "test string" << endl;
cout << "another string";

return 0;

}`

EDIT: For some reason Github is not properly displaying pasted code. And thus it is missing the iostream header. Make sure to include that when copying/pasting the code.

Screen Shot 2023-06-22 at 6 58 58 AM Screen Shot 2023-06-22 at 6 59 05 AM

VS Code version: Code - Insiders 1.80.0-insider (636dbcf, 2023-06-21T08:21:53.800Z)
OS version: Darwin arm64 21.6.0
Modes:

System Info
Item Value
CPUs Apple M1 (8 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 2, 2, 2
Memory (System) 8.00GB (0.08GB free)
Process Argv --crash-reporter-id f324f5e2-5bae-4725-be16-5efc5b642d47
Screen Reader no
VM 0%
Extensions (4)
Extension Author (truncated) Version
code-runner for 0.12.0
copilot-chat Git 0.3.2023062201
copilot-nightly Git 1.92.179
cpptools ms- 1.16.1
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythontb:30258533
pythonptprofiler:30281269
vshan820:30294714
vscod805:30301674
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30404738
py29gd2263cf:30773604
vsclangdf:30492506
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30618038
pylantcb52:30590116
pyind779:30611226
pythonsymbol12:30651887
a9j8j154:30646983
showlangstatbar:30737417
pythonms35:30671666
03d35959:30757351
7ij38806:30687742
pythonfmttext:30716741
pythoncmvfstr:30726892
fixshowwlkth:30771523
showindicator:30766888
pythongtdpath:30726887
bgfeh915:30769767
gsof1:30771514
dh2dc718:30770000
pythonnosmt12:30773574
pythonidxpt:30768918
pythondjangots:30768917
pythonnoceb:30766855
copilotsettingt:30767686
e537b577:30772214

@sean-mcmanus
Copy link
Contributor

@vitorfff This was from the cpptools extension -- it's fixed with the latest 1.16.3 release.

@roblourens This was an important regression caused by the 1.16.0/1.16.1 (pre-release) of our cpptools extension. If any C++ issues from users with the cpptools extension installed could be moved to https://github.com/Microsoft/vscode-cpptools/issues that would be great.

@isidorn
Copy link
Contributor

isidorn commented Jun 27, 2023

@sean-mcmanus Sorry about that. Same as #185304 (comment)

@isidorn isidorn closed this as completed Jun 27, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Aug 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants