Closed akshat-patel closed 3 years ago
Can you set "C_Cpp.default.browse.databaseFilename": "${workspaceFolder}/.vscode/vc.db"
in your workspace folder settings.json to see if that fixes it? It may be choosing a database location that it doesn't have access to.
When you do Help->Toggle Developer Tools->Console do you see any relevant errors? Do you see an "activating extension" message from our extension?
Is the cpptools process running? What is the CPU usage?
Can you set "C_Cpp.default.browse.databaseFilename": "${workspaceFolder}/.vscode/vc.db" in your workspace folder settings.json to see if that fixes it? It may be choosing a database location that it doesn't have access to.
- I did this and Intellisense temporarily started to work (for 10 seconds) and then stopped working. When you do Help->Toggle Developer Tools->Console do you see any relevant errors? Do you see an "activating extension" message from our extension?
- I see "activating extension" as well as "starting language server" as well as the following errors:
Is the cpptools process running? What is the CPU usage?
- When I enter
ps aux | grep cpptools
the output is the cpptools process and the memory usage is 2.2%. Additionally, the STAT code of the cpptools process is Sl, where S stands for "Interruptible sleep (waiting for an event to complete)" and l is "is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)".
It sounds the like the cpptools process may be stuck.
Can you set C_Cpp.loggingLevel to "Debug" and provide the logs from the "C/C++" output or see what the last lines of output are?
Also, are you able to attach a debugger to get a callstack? https://github.com/microsoft/vscode-cpptools/wiki/Attaching-debugger-to-cpptools-or-cpptools%E2%80%90srv
Also, are you able login to the machine and use VS Code without using SSH?
Can you set C_Cpp.loggingLevel to "Debug" and provide the logs from the "C/C++" output or see what the last lines of output are?
- Here's the output after I did this:
cpptools/didChangeCppProperties Attempting to get defaults from C compiler in "compilerPath" property: '/usr/bin/clang' Compiler query command line: "/usr/bin/clang" -std=c11 -Wp,-v -E -dD -x c -m64 -fno-blocks /dev/null terminating child process: 13014 Code browsing service initialized Attempting to get defaults from C++ compiler in "compilerPath" property: '/usr/bin/clang' Compiler query command line: "/usr/bin/clang" -std=c++14 -Wp,-v -E -dD -x c++ -m64 -fno-blocks /dev/null terminating child process: 13051 Folder: /usr/include/ will be indexed Folder: /usr/lib/llvm-6.0/lib/clang/6.0.0/include/ will be indexed Folder: /usr/local/include/ will be indexed Folder: /home/akshat7/hw4/ will be indexed textDocument/didOpen: file:///home/akshat7/hw4/mayday.cpp Populate include completion cache. Discovering files... cpptools/activeDocumentChange: file:///home/akshat7/hw4/mayday.cpp cpptools/textEditorSelectionChange cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 2) cpptools/getFoldingRanges: file:///home/akshat7/hw4/mayday.cpp (id: 3) cpptools/abortRequest cpptools/getSemanticTokens: file:///home/akshat7/hw4/mayday.cpp (id: 4) cpptools/getFoldingRanges: file:///home/akshat7/hw4/mayday.cpp (id: 5) cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 6) cpptools/getDocumentSymbols: file:///home/akshat7/hw4/mayday.cpp (id: 7) cpptools/getDocumentSymbols Processing folder (recursive): /usr/include/ tag parsing file: /home/akshat7/hw4/mayday.cpp idle loop: reparsing the active document Checking for syntax errors: file:///home/akshat7/hw4/mayday.cpp Database safe to open cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 8) cpptools/activeDocumentChange: file:///home/akshat7/hw4/mayday.cpp cpptools/textEditorSelectionChange cpptools/getDocumentSymbols: file:///home/akshat7/hw4/mayday.cpp (id: 9) cpptools/textEditorSelectionChange cpptools/getFoldingRanges: file:///home/akshat7/hw4/mayday.cpp (id: 10) cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 11) textDocument/hover: file:///home/akshat7/hw4/mayday.cpp (id: 12) IntelliSense client not available, using Tag Parser for go to definition. IntelliSense client not available, using Tag Parser for quick info. using Tag Parser for quick info cpptools/activeDocumentChange: file:///home/akshat7/hw4/mayday.cpp cpptools/textEditorSelectionChange cpptools/textEditorSelectionChange cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 13) textDocument/documentHighlight: file:///home/akshat7/hw4/mayday.cpp (id: 14) cpptools/textEditorSelectionChange cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 15) textDocument/didChange: file:///home/akshat7/hw4/mayday.cpp cpptools/textEditorSelectionChange textDocument/completion: file:///home/akshat7/hw4/mayday.cpp (id: 16) auto_complete::handle_completion: file:///home/akshat7/hw4/mayday.cpp (55:12) Request canceled: 16 cpptools/getFoldingRanges: file:///home/akshat7/hw4/mayday.cpp (id: 17) cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 18) cpptools/getDocumentSymbols: file:///home/akshat7/hw4/mayday.cpp (id: 19) textDocument/didChange: file:///home/akshat7/hw4/mayday.cpp cpptools/abortRequest cpptools/textEditorSelectionChange textDocument/completion: file:///home/akshat7/hw4/mayday.cpp (id: 20) auto_complete::handle_completion: file:///home/akshat7/hw4/mayday.cpp (55:11) Request canceled: 20 cpptools/getFoldingRanges: file:///home/akshat7/hw4/mayday.cpp (id: 21) cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 22) cpptools/getDocumentSymbols: file:///home/akshat7/hw4/mayday.cpp (id: 23) textDocument/didChange: file:///home/akshat7/hw4/mayday.cpp cpptools/abortRequest cpptools/textEditorSelectionChange cpptools/getFoldingRanges: file:///home/akshat7/hw4/mayday.cpp (id: 24) cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 25) cpptools/getDocumentSymbols: file:///home/akshat7/hw4/mayday.cpp (id: 26) idle loop: reparsing the active document tag parsing file: /home/akshat7/hw4/SiteNumber.h cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 27) tag parsing file: /usr/include/c++/7/iostream tag parsing file: /usr/include/c++/7/iomanip tag parsing file: /home/akshat7/hw4/mayday.cpp tag parsing file: /usr/include/c++/7/string Database safe to open cpptools/getDocumentSymbols cpptools/getDocumentSymbols cpptools/getDocumentSymbols cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 28) cpptools/getDocumentSymbols tag parsing file: /usr/include/c++/7/fstream tag parsing file: /usr/include/c++/7/sstream cpptools/activeDocumentChange: file:///home/akshat7/hw4/mayday.cpp cpptools/textEditorSelectionChange textDocument/documentHighlight: file:///home/akshat7/hw4/mayday.cpp (id: 29) cpptools/textEditorSelectionChange cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 30) idle loop: reparsing the active document textDocument/documentHighlight: file:///home/akshat7/hw4/mayday.cpp (id: 31) cpptools/textEditorSelectionChange cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 32) cpptools/textEditorSelectionChange cpptools/textEditorSelectionChange cpptools/textEditorSelectionChange cpptools/textEditorSelectionChange cpptools/textEditorSelectionChange cpptools/textEditorSelectionChange cpptools/textEditorSelectionChange cpptools/textEditorSelectionChange cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 33) textDocument/didChange: file:///home/akshat7/hw4/mayday.cpp cpptools/textEditorSelectionChange textDocument/completion: file:///home/akshat7/hw4/mayday.cpp (id: 34) auto_complete::handle_completion: file:///home/akshat7/hw4/mayday.cpp (55:4) Offering completion completionItem/resolve (id: 35) cpptools/getFoldingRanges: file:///home/akshat7/hw4/mayday.cpp (id: 36) cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 37) textDocument/didChange: file:///home/akshat7/hw4/mayday.cpp cpptools/textEditorSelectionChange cpptools/getFoldingRanges: file:///home/akshat7/hw4/mayday.cpp (id: 38) cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 39) textDocument/didChange: file:///home/akshat7/hw4/mayday.cpp cpptools/textEditorSelectionChange cpptools/getFoldingRanges: file:///home/akshat7/hw4/mayday.cpp (id: 40) cpptools/getCodeActions: file:///home/akshat7/hw4/mayday.cpp (id: 41) textDocument/hover: file:///home/akshat7/hw4/mayday.cpp (id: 42) IntelliSense client not available, using Tag Parser for go to definition. IntelliSense client not available, using Tag Parser for quick info. using Tag Parser for quick info
Also, are you able to attach a debugger to get a callstack?
Superuser access is required to attach to a process. Attaching as superuser can potentially harm your computer. Do you want to continue?
Also, are you able login to the machine and use VS Code without using SSH?
- I'm not sure how to do this. I assumed the only way to login to the machine and use VS Code is through SSH.
The logs show that the IntelliSense process is not launching and I don't see any indication that it's stuck. Is your C_Cpp.intelliSenseEngine set to "Default"? What is the logging show when you invoke formatting? It's possible your computer is really slow and the IntelliSense process launching is stuck waiting for tag parsing to finish (I noticed it's parsing some system header files). Do any more tag parsing messages appear in the logs or is that finished?
Hmm, I'm not sure why you're getting that "superuser access" message. You shouldn't need superuser access to attach unless the process you're attaching to has superuser access. @WardenGnaw Do you know about this? I'm not aware of how attaching to our cpptools process could harm your computer in any way even with superuser access.
We were thinking your might be able to remote desktop into the machine -- if your IT administrators haven't explained how you can do this then it might not be possible.
Is your C_Cpp.intelliSenseEngine set to "Default"?
- Yes, it is. What is the logging show when you invoke formatting?
- Formatting takes a very long time, but I've copied the entire log below:
Database safe to open cpptools/getDocumentSymbols: file:///home/akshat7/hw4/Closer.h (id: 73) cpptools/getCodeActions: file:///home/akshat7/hw4/Facility.cpp (id: 74) cpptools/getDocumentSymbols textDocument/didOpen: file:///home/akshat7/hw4/Facility.cpp cpptools/activeDocumentChange: file:///home/akshat7/hw4/Facility.cpp cpptools/textEditorSelectionChange cpptools/getDocumentSymbols: file:///home/akshat7/hw4/Facility.cpp (id: 75) cpptools/getSemanticTokens: file:///home/akshat7/hw4/Facility.cpp (id: 76) cpptools/getFoldingRanges: file:///home/akshat7/hw4/Facility.cpp (id: 77) cpptools/abortRequest textDocument/didClose: file:///home/akshat7/hw4/mayday.cpp cpptools/textEditorSelectionChange cpptools/getCodeActions: file:///home/akshat7/hw4/Facility.cpp (id: 80) textDocument/hover: file:///home/akshat7/hw4/Facility.cpp (id: 83) IntelliSense client not available, using Tag Parser for go to definition. IntelliSense client not available, using Tag Parser for quick info. using Tag Parser for quick info cpptools/textEditorSelectionChange cpptools/getCodeActions: file:///home/akshat7/hw4/Facility.cpp (id: 84) cpptools/formatDocument: file:///home/akshat7/hw4/Facility.cpp (id: 85) Formatting input: #include "Facility.h" #include "gcdistance.h" #include <iostream> #include <sstream> Facility::Facility(std::string s) : site_number_(s.substr(0, 10)), type_(s.substr(11, 13)), code_(s.substr(24, 4)), name_(s.substr(130, 50)), latitude_(convert_latitude(s.substr(535, 12))), longitude_(convert_longitude(s.substr(562, 12))) { }
std::string Facility::site_number(void) const { return sitenumber; }
std::string Facility::type(void) const { return type_; }
std::string Facility::code(void) const { return code_; }
std::string Facility::name(void) const { return name_; }
double Facility::latitude(void) const { return latitude_; }
double Facility::longitude(void) const { return longitude_; }
double Facility::distance(double lat, double lon) const { return gcdistance(lat, lon, latitude, longitude); }
double Facility::convert_latitude(std::string s) const { double latitude; char direction; const int sec_to_degrees = 3600; std::istringstream lat_str(s); lat_st... Formatting document: file:///home/akshat7/hw4/Facility.cpp Formatting Engine: clangFormat tag parsing file: /home/akshat7/hw4/Facility.cpp cpptools/getDocumentSymbols tag parsing file: /home/akshat7/hw4/gcdistance.h tag parsing file: /usr/include/c++/7/bits/basic_ios.h tag parsing file: /usr/lib/llvm-6.0/lib/clang/6.0.0/include/stdint.h tag parsing file: /usr/include/wchar.h tag parsing file: /usr/include/c++/7/ext/new_allocator.h tag parsing file: /usr/include/c++/7/clocale tag parsing file: /usr/include/ctype.h tag parsing file: /usr/include/c++/7/bits/boost_concept_check.h tag parsing file: /usr/include/c++/7/debug/helper_functions.h tag parsing file: /usr/include/c++/7/bits/exception_defines.h tag parsing file: /usr/include/c++/7/debug/macros.h tag parsing file: /usr/include/c++/7/debug/functions.h tag parsing file: /usr/include/c++/7/parallel/base.h tag parsing file: /usr/include/x86_64-linux-gnu/c++/7/bits/gthr.h tag parsing file: /usr/include/c++/7/parallel/find.h tag parsing file: /usr/include/x86_64-linux-gnu/c++/7/bits/atomic_word.h tag parsing file: /usr/include/c++/7/parallel/find_selectors.h tag parsing file: /usr/include/c++/7/bits/locale_classes.tcc tag parsing file: /usr/include/x86_64-linux-gnu/c++/7/bits/error_constants.h tag parsing file: /usr/include/c++/7/bits/alloc_traits.h tag parsing file: /usr/include/c++/7/cwctype tag parsing file: /usr/include/x86_64-linux-gnu/c++/7/bits/ctype_base.h tag parsing file: /usr/include/c++/7/bits/string_view.tcc tag parsing file: /usr/include/c++/7/bits/streambuf_iterator.h tag parsing file: /usr/include/x86_64-linux-gnu/c++/7/bits/ctype_inline.h tag parsing file: /usr/include/c++/7/bits/locale_facets.tcc tag parsing file: /usr/include/c++/7/cerrno tag parsing file: /usr/include/c++/7/ctime tag parsing file: /usr/include/c++/7/bits/hash_bytes.h tag parsing file: /usr/include/x86_64-linux-gnu/c++/7/bits/time_members.h tag parsing file: /usr/include/stdc-predef.h tag parsing file: /usr/include/x86_64-linux-gnu/c++/7/bits/messages_members.h tag parsing file: /usr/include/x86_64-linux-gnu/sys/cdefs.h tag parsing file: /usr/include/c++/7/bits/locale_facets_nonio.tcc tag parsing file: /usr/include/x86_64-linux-gnu/gnu/stubs.h tag parsing file: /usr/include/c++/7/bits/unique_ptr.h tag parsing file: /usr/include/c++/7/bits/exception.h tag parsing file: /usr/include/c++/7/bits/exception_ptr.h tag parsing file: /usr/include/c++/7/bits/nested_exception.h tag parsing file: /usr/include/c++/7/bits/basic_ios.tcc tag parsing file: /usr/include/x86_64-linux-gnu/bits/libc-header-start.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/floatn.h tag parsing file: /usr/lib/llvm-6.0/lib/clang/6.0.0/include/stddef.h tag parsing file: /usr/lib/llvm-6.0/lib/clang/6.0.0/include/stdarg.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/wchar.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/types/wint_t.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/types.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/types/FILE.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/types/FILE.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/types/locale_t.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/libio.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/wchar2.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/stdio_lim.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/wchar-ldbl.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/sys_errlist.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/getopt_posix.h tag parsing file: /usr/include/locale.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/stdio.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/stdio2.h tag parsing file: /usr/include/endian.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/stdio-ldbl.h tag parsing file: /usr/include/c++/7/debug/formatter.h tag parsing file: /usr/include/c++/7/parallel/tags.h tag parsing file: /usr/include/omp.h tag parsing file: /usr/include/c++/7/parallel/settings.h tag parsing file: /usr/include/c++/7/parallel/features.h tag parsing file: /usr/include/c++/7/parallel/iterator.h tag parsing file: /usr/include/c++/7/parallel/basic_iterator.h tag parsing file: /usr/include/c++/7/parallel/sort.h tag parsing file: /usr/include/c++/7/parallel/parallel.h tag parsing file: /usr/include/c++/7/parallel/workstealing.h tag parsing file: /usr/include/c++/7/parallel/par_loop.h tag parsing file: /usr/include/c++/7/parallel/compatibility.h tag parsing file: /usr/include/c++/7/parallel/omp_loop.h tag parsing file: /usr/include/c++/7/parallel/equally_split.h tag parsing file: /usr/include/c++/7/parallel/omp_loop_static.h tag parsing file: /usr/include/x86_64-linux-gnu/c++/7/bits/gthr-default.h tag parsing file: /usr/include/c++/7/parallel/for_each_selectors.h tag parsing file: /usr/include/c++/7/parallel/for_each.h tag parsing file: /usr/include/c++/7/parallel/search.h tag parsing file: /usr/include/errno.h tag parsing file: /usr/include/c++/7/parallel/random_shuffle.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/wordsize.h tag parsing file: /usr/include/c++/7/parallel/partition.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/long-double.h tag parsing file: /usr/include/c++/7/parallel/merge.h tag parsing file: /usr/include/x86_64-linux-gnu/gnu/stubs-32.h tag parsing file: /usr/include/c++/7/parallel/unique_copy.h tag parsing file: /usr/include/x86_64-linux-gnu/gnu/stubs-64.h tag parsing file: /usr/include/c++/7/parallel/set_operations.h tag parsing file: /usr/include/x86_64-linux-gnu/gnu/stubs-x32.h tag parsing file: /usr/include/c++/7/debug/safe_base.h tag parsing file: /usr/include/c++/7/bits/cxxabi_init_exception.h tag parsing file: /usr/include/c++/7/debug/safe_sequence.tcc tag parsing file: /usr/include/c++/7/typeinfo tag parsing file: /usr/include/c++/7/debug/safe_iterator.tcc tag parsing file: /usr/include/c++/7/profile/impl/profiler.h Tag parsing encountered an error, but it may not matter. Let us know if symbols in the file can't be found: /usr/include/c++/7/profile/impl/profiler.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/floatn-common.h tag parsing file: /usr/lib/llvm-6.0/lib/clang/6.0.0/include/stddef_max_align_t.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h tag parsing file: /usr/include/c++/7/tr1/special_function_util.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/types/locale_t.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/locale.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/typesizes.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/endian.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/byteswap.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/uintn-identity.h tag parsing file: /usr/include/wctype.h tag parsing file: /usr/include/c++/7/parallel/compiletime_settings.h tag parsing file: /usr/include/time.h tag parsing file: /usr/include/c++/7/parallel/types.h tag parsing file: /usr/include/libintl.h tag parsing file: /usr/include/sched.h tag parsing file: /usr/include/c++/7/tuple tag parsing file: /usr/include/pthread.h tag parsing file: /usr/include/unistd.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/errno.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/byteswap-16.h tag parsing file: /usr/include/c++/7/tr1/cstdint tag parsing file: /usr/include/x86_64-linux-gnu/bits/types/time_t.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/_G_config.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/libio-ldbl.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/getopt_core.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/sched.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/cpu-set.h tag parsing file: /usr/include/c++/7/parallel/checkers.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h tag parsing file: /usr/include/c++/7/parallel/multiway_mergesort.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/setjmp.h tag parsing file: /usr/include/c++/7/parallel/quicksort.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/posix_opt.h tag parsing file: /usr/include/c++/7/parallel/balanced_quicksort.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/environments.h tag parsing file: /usr/include/c++/7/parallel/random_number.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/confname.h tag parsing file: /usr/include/c++/7/bits/stl_numeric.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/unistd.h tag parsing file: /usr/include/c++/7/parallel/multiseq_selection.h tag parsing file: /usr/include/c++/7/ext/concurrence.h tag parsing file: /usr/include/c++/7/profile/impl/profiler_hash_func.h tag parsing file: /usr/include/c++/7/profile/impl/profiler_hashtable_size.h tag parsing file: /usr/include/linux/errno.h tag parsing file: /usr/include/c++/7/profile/impl/profiler_map_to_unordered_map.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/time.h tag parsing file: /usr/include/c++/7/profile/impl/profiler_vector_size.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/types/clock_t.h tag parsing file: /usr/include/c++/7/profile/impl/profiler_vector_to_list.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h tag parsing file: /usr/include/c++/7/profile/impl/profiler_list_to_slist.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h tag parsing file: /usr/include/c++/7/profile/impl/profiler_list_to_vector.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/types/timer_t.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h tag parsing file: /usr/include/gconv.h tag parsing file: /usr/include/x86_64-linux-gnu/asm/errno.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/timex.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h tag parsing file: /usr/include/c++/7/array tag parsing file: /usr/include/c++/7/bits/uses_allocator.h tag parsing file: /usr/include/c++/7/bits/invoke.h tag parsing file: /usr/include/asm-generic/errno.h tag parsing file: /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h tag parsing file: /usr/include/asm-generic/errno-base.h Formatting raw output:
Facility::Facility(std::string s) : sitenumber(s.substr(0, 10)), type(s.substr(11, 13)), code(s.substr(24, 4)), name(s.substr(130, 50)), latitude(convertlatitude(s.substr(535, 12))), longitude(convert_longitude(s.substr(562, 12))) { }
std::string Facility::site_number(void) const { return sitenumber; }
std::string Facility::type(void) const { return type_; }
std::string Facility::code(void) const { return code_; }
std::string Facility::name(void) const { return name_; }
double Facility::latitude(void) const { return latitude_; }
double Facility::longitude(void) const { return longitude_; }
double Facility::distance(double lat, double lon) const { return gcdistance(lat, lon, latitude, longitude); }
double Facility::convert_latitude(std::string s) const { double latitude; char direction; const int sec_to_degrees = 3600; std::istringstream lat_str(s); lat_st... terminating child process: 21826 cpptools/getCodeActions: file:///home/akshat7/hw4/Facility.cpp (id: 86) cpptools/textEditorSelectionChange cpptools/getCodeActions: file:///home/akshat7/hw4/Facility.cpp (id: 87) cpptools/textEditorSelectionChange cpptools/getCodeActions: file:///home/akshat7/hw4/Facility.cpp (id: 89) cpptools/getCodeActions: file:///home/akshat7/hw4/Facility.cpp (id: 92) 0 include path suggestion(s) discovered. cpptools/getCodeActions: file:///home/akshat7/hw4/Facility.cpp (id: 93) 0 include path suggestion(s) discovered. cpptools/textEditorSelectionChange cpptools/getCodeActions: file:///home/akshat7/hw4/Facility.cpp (id: 95) 0 include path suggestion(s) discovered. cpptools/getCodeActions: file:///home/akshat7/hw4/Facility.cpp (id: 98) 0 include path suggestion(s) discovered. cpptools/getCodeActions: file:///home/akshat7/hw4/Facility.cpp (id: 99) cpptools/activeDocumentChange: file:///home/akshat7/hw4/Facility.cpp cpptools/textEditorSelectionChange cpptools/getDocumentSymbols: file:///home/akshat7/hw4/Facility.cpp (id: 100) cpptools/textEditorSelectionChange cpptools/getFoldingRanges: file:///home/akshat7/hw4/Facility.cpp (id: 101) cpptools/getDocumentSymbols cpptools/getCodeActions: file:///home/akshat7/hw4/Facility.cpp (id: 102) 0 include path suggestion(s) discovered. cpptools/activeDocumentChange: file:///home/akshat7/hw4/Facility.cpp cpptools/textEditorSelectionChange cpptools/getCodeActions: file:///home/akshat7/hw4/Facility.cpp (id: 107) 0 include path suggestion(s) discovered. textDocument/hover: file:///home/akshat7/hw4/Facility.cpp (id: 108) IntelliSense client not available, using Tag Parser for go to definition. IntelliSense client not available, using Tag Parser for quick info. using Tag Parser for quick info cpptools/activeDocumentChange: file:///home/akshat7/hw4/Facility.cpp cpptools/textEditorSelectionChange textDocument/documentHighlight: file:///home/akshat7/hw4/Facility.cpp (id: 109) cpptools/textEditorSelectionChange cpptools/getCodeActions: file:///home/akshat7/hw4/Facility.cpp (id: 110) idle loop: reparsing the active document Checking for syntax errors: file:///home/akshat7/hw4/Facility.cpp tag parsing file: /usr/include/c++/7/parallel/multiway_merge.h tag parsing file: /usr/include/c++/7/parallel/queue.h tag parsing file: /usr/include/c++/7/tr1/random tag parsing file: /usr/include/c++/7/queue tag parsing file: /usr/include/c++/7/profile/impl/profiler_node.h tag parsing file: /usr/include/c++/7/profile/impl/profiler_trace.h tag parsing file: /usr/include/c++/7/profile/impl/profiler_state.h tag parsing file: /usr/include/c++/7/profile/impl/profiler_container_size.h tag parsing file: /usr/include/c++/7/debug/array tag parsing file: /usr/include/c++/7/profile/array tag parsing file: /usr/include/c++/7/parallel/losertree.h tag parsing file: /usr/include/c++/7/tr1/type_traits tag parsing file: /usr/include/c++/7/tr1/cmath tag parsing file: /usr/include/c++/7/tr1/random.h tag parsing file: /usr/include/c++/7/tr1/random.tcc tag parsing file: /usr/include/c++/7/deque tag parsing file: /usr/include/c++/7/bits/stl_queue.h tag parsing file: /usr/include/execinfo.h tag parsing file: /usr/include/c++/7/unordered_map tag parsing file: /usr/include/c++/7/tr1/unordered_map tag parsing file: /usr/include/c++/7/profile/impl/profiler_algos.h tag parsing file: /usr/include/c++/7/bits/stl_deque.h tag parsing file: /usr/include/c++/7/bits/deque.tcc tag parsing file: /usr/include/c++/7/debug/deque tag parsing file: /usr/include/c++/7/profile/deque tag parsing file: /usr/include/c++/7/ext/aligned_buffer.h tag parsing file: /usr/include/c++/7/bits/hashtable.h tag parsing file: /usr/include/c++/7/bits/unordered_map.h tag parsing file: /usr/include/c++/7/debug/unordered_map tag parsing file: /usr/include/c++/7/profile/unordered_map tag parsing file: /usr/include/c++/7/tr1/functional_hash.h tag parsing file: /usr/include/c++/7/tr1/hashtable.h tag parsing file: /usr/include/c++/7/tr1/unordered_map.h tag parsing file: /usr/include/c++/7/bits/hashtable_policy.h tag parsing file: /usr/include/c++/7/bits/node_handle.h tag parsing file: /usr/include/c++/7/debug/safe_unordered_container.h tag parsing file: /usr/include/c++/7/debug/safe_local_iterator.h tag parsing file: /usr/include/c++/7/profile/unordered_base.h tag parsing file: /usr/include/c++/7/tr1/hashtable_policy.h tag parsing file: /usr/include/c++/7/optional tag parsing file: /usr/include/c++/7/debug/safe_unordered_base.h tag parsing file: /usr/include/c++/7/debug/safe_unordered_container.tcc tag parsing file: /usr/include/c++/7/debug/safe_local_iterator.tcc tag parsing file: /usr/include/c++/7/bits/enable_special_members.h sending compilation args for /home/akshat7/hw4/mayday.cpp include: /usr/include/c++/7 include: /usr/include/x86_64-linux-gnu/c++/7 include: /usr/include/c++/7/backward include: /usr/lib/llvm-6.0/lib/clang/6.0.0/include include: /usr/local/include include: /usr/include/x86_64-linux-gnu include: /usr/include include: /home/akshat7/hw4 define: llvm=1 define: clang=1 define: clang_major=6 define: clang_minor=0 define: clang_patchlevel=0 define: clang_version="6.0.0 (tags/RELEASE_600/final)" define: GNUC_MINOR=2 define: GNUC_PATCHLEVEL=1 define: GNUC=4 define: GXX_ABI_VERSION=1002 define: ATOMIC_RELAXED=0 define: ATOMIC_CONSUME=1 define: __ATOMIC_ACQUIRE=2 define: ATOMIC_RELEASE=3 define: ATOMIC_ACQ_REL=4 define: ATOMIC_SEQ_CST=5 define: OPENCL_MEMORY_SCOPE_WORK_ITEM=0 define: OPENCL_MEMORY_SCOPE_WORK_GROUP=1 define: OPENCL_MEMORY_SCOPE_DEVICE=2 define: __OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3 define: OPENCL_MEMORY_SCOPE_SUB_GROUP=4 define: PRAGMA_REDEFINE_EXTNAME=1 define: VERSION="4.2.1 Compatible Clang 6.0.0 (tags/RELEASE_600/final)" define: __STRICT_ANSI=1 define: GXX_EXPERIMENTAL_CXX0X=1 define: OBJC_BOOL_IS_BOOL=0 define: __CONSTANT_CFSTRINGS=1 define: EXCEPTIONS=1 define: GXX_RTTI=1 define: DEPRECATED=1 define: GNUG=4 define: GXX_WEAK=1 define: private_extern=extern define: ORDER_LITTLE_ENDIAN=1234 define: ORDER_BIG_ENDIAN=4321 define: ORDER_PDP_ENDIAN=3412 define: BYTE_ORDER=ORDER_LITTLE_ENDIAN define: LITTLE_ENDIAN=1 define: _LP64=1 define: LP64=1 define: __CHAR_BIT=8 define: SCHAR_MAX=127 define: SHRT_MAX=32767 define: INT_MAX=2147483647 define: LONG_MAX=9223372036854775807L define: LONG_LONG_MAX=9223372036854775807LL define: WCHAR_MAX=2147483647 define: WINT_MAX=4294967295U define: INTMAX_MAX=9223372036854775807L define: SIZE_MAX=18446744073709551615UL define: UINTMAX_MAX=18446744073709551615UL define: PTRDIFF_MAX=9223372036854775807L define: INTPTR_MAX=9223372036854775807L define: UINTPTR_MAX=18446744073709551615UL define: SIZEOF_DOUBLE=8 define: SIZEOF_FLOAT=4 define: SIZEOF_INT=4 define: SIZEOF_LONG=8 define: SIZEOF_LONG_DOUBLE=16 define: SIZEOF_LONG_LONG=8 define: SIZEOF_POINTER=8 define: SIZEOF_SHORT=2 define: SIZEOF_PTRDIFF_T=8 define: SIZEOF_SIZE_T=8 define: SIZEOF_WCHAR_T=4 define: SIZEOF_WINT_T=4 define: SIZEOF_INT128=16 define: INTMAX_TYPE=long int define: INTMAX_FMTd="ld" define: INTMAX_FMTi="li" define: INTMAX_C_SUFFIX=L define: UINTMAX_TYPE=long unsigned int define: UINTMAX_FMTo="lo" define: UINTMAX_FMTu="lu" define: UINTMAX_FMTx="lx" define: UINTMAX_FMTX="lX" define: UINTMAX_C_SUFFIX=UL define: INTMAX_WIDTH=64 define: PTRDIFF_TYPE=long int define: PTRDIFF_FMTd="ld" define: PTRDIFF_FMTi="li" define: PTRDIFF_WIDTH=64 define: INTPTR_TYPE=long int define: INTPTR_FMTd="ld" define: INTPTR_FMTi="li" define: INTPTR_WIDTH=64 define: SIZE_TYPE=long unsigned int define: SIZE_FMTo="lo" define: SIZE_FMTu="lu" define: SIZE_FMTx="lx" define: SIZE_FMTX="lX" define: SIZE_WIDTH=64 define: WCHAR_TYPE=int define: WCHAR_WIDTH=32 define: WINT_TYPE=unsigned int define: WINT_WIDTH=32 define: SIG_ATOMIC_WIDTH=32 define: SIG_ATOMIC_MAX=2147483647 define: CHAR16_TYPE=unsigned short define: CHAR32_TYPE=unsigned int define: UINTMAX_WIDTH=64 define: UINTPTR_TYPE=long unsigned int define: UINTPTR_FMTo="lo" define: UINTPTR_FMTu="lu" define: UINTPTR_FMTx="lx" define: UINTPTR_FMTX="lX" define: UINTPTR_WIDTH=64 define: FLT16_DENORM_MIN=5.9604644775390625e-8F16 define: FLT16_HAS_DENORM=1 define: FLT16_DIG=3 define: FLT16_DECIMAL_DIG=5 define: FLT16_EPSILON=9.765625e-4F16 define: FLT16_HAS_INFINITY=1 define: FLT16_HAS_QUIET_NAN=1 define: FLT16_MANT_DIG=11 define: FLT16_MAX_10_EXP=4 define: FLT16_MAX_EXP=15 define: FLT16_MAX=6.5504e+4F16 define: FLT16_MIN_10_EXP=(-13) define: FLT16_MIN_EXP=(-14) define: FLT16_MIN=6.103515625e-5F16 define: FLT_DENORM_MIN=1.40129846e-45F define: FLT_HAS_DENORM=1 define: FLT_DIG=6 define: FLT_DECIMAL_DIG=9 define: FLT_EPSILON=1.19209290e-7F define: FLT_HAS_INFINITY=1 define: FLT_HAS_QUIET_NAN=1 define: FLT_MANT_DIG=24 define: FLT_MAX_10_EXP=38 define: FLT_MAX_EXP=128 define: FLT_MAX=3.40282347e+38F define: FLT_MIN_10_EXP=(-37) define: FLT_MIN_EXP=(-125) define: FLT_MIN=1.17549435e-38F define: DBL_DENORM_MIN=4.9406564584124654e-324 define: DBL_HAS_DENORM=1 define: DBL_DIG=15 define: DBL_DECIMAL_DIG=17 define: DBL_EPSILON=2.2204460492503131e-16 define: DBL_HAS_INFINITY=1 define: DBL_HAS_QUIET_NAN=1 define: DBL_MANT_DIG=53 define: DBL_MAX_10_EXP=308 define: DBL_MAX_EXP=1024 define: DBL_MAX=1.7976931348623157e+308 define: DBL_MIN_10_EXP=(-307) define: DBL_MIN_EXP=(-1021) define: DBL_MIN=2.2250738585072014e-308 define: LDBL_DENORM_MIN=3.64519953188247460253e-4951L define: LDBL_HAS_DENORM=1 define: LDBL_DIG=18 define: LDBL_DECIMAL_DIG=21 define: LDBL_EPSILON=1.08420217248550443401e-19L define: LDBL_HAS_INFINITY=1 define: LDBL_HAS_QUIET_NAN=1 define: LDBL_MANT_DIG=64 define: LDBL_MAX_10_EXP=4932 define: LDBL_MAX_EXP=16384 define: LDBL_MAX=1.18973149535723176502e+4932L define: LDBL_MIN_10_EXP=(-4931) define: LDBL_MIN_EXP=(-16381) define: LDBL_MIN=3.36210314311209350626e-4932L define: POINTER_WIDTH=64 define: BIGGEST_ALIGNMENT=16 define: WINT_UNSIGNED=1 define: INT8_TYPE=signed char define: INT8_FMTd="hhd" define: INT8_FMTi="hhi" define: INT8_C_SUFFIX= define: INT16_TYPE=short define: INT16_FMTd="hd" define: INT16_FMTi="hi" define: INT16_C_SUFFIX= define: INT32_TYPE=int define: INT32_FMTd="d" define: INT32_FMTi="i" define: INT32_C_SUFFIX= define: INT64_TYPE=long int define: INT64_FMTd="ld" define: INT64_FMTi="li" define: INT64_C_SUFFIX=L define: UINT8_TYPE=unsigned char define: UINT8_FMTo="hho" define: UINT8_FMTu="hhu" define: UINT8_FMTx="hhx" define: UINT8_FMTX="hhX" define: UINT8_C_SUFFIX= define: UINT8_MAX=255 define: INT8_MAX=127 define: UINT16_TYPE=unsigned short define: UINT16_FMTo="ho" define: UINT16_FMTu="hu" define: UINT16_FMTx="hx" define: UINT16_FMTX="hX" define: UINT16_C_SUFFIX= define: UINT16_MAX=65535 define: INT16_MAX=32767 define: UINT32_TYPE=unsigned int define: UINT32_FMTo="o" define: UINT32_FMTu="u" define: UINT32_FMTx="x" define: UINT32_FMTX="X" define: UINT32_C_SUFFIX=U define: UINT32_MAX=4294967295U define: INT32_MAX=2147483647 define: UINT64_TYPE=long unsigned int define: UINT64_FMTo="lo" define: UINT64_FMTu="lu" define: UINT64_FMTx="lx" define: UINT64_FMTX="lX" define: UINT64_C_SUFFIX=UL define: UINT64_MAX=18446744073709551615UL define: INT64_MAX=9223372036854775807L define: INT_LEAST8_TYPE=signed char define: INT_LEAST8_MAX=127 define: INT_LEAST8_FMTd="hhd" define: INT_LEAST8_FMTi="hhi" define: UINT_LEAST8_TYPE=unsigned char define: UINT_LEAST8_MAX=255 define: UINT_LEAST8_FMTo="hho" define: UINT_LEAST8_FMTu="hhu" define: UINT_LEAST8_FMTx="hhx" define: UINT_LEAST8_FMTX="hhX" define: INT_LEAST16_TYPE=short define: INT_LEAST16_MAX=32767 define: INT_LEAST16_FMTd="hd" define: INT_LEAST16_FMTi="hi" define: UINT_LEAST16_TYPE=unsigned short define: UINT_LEAST16_MAX=65535 define: UINT_LEAST16_FMTo="ho" define: UINT_LEAST16_FMTu="hu" define: UINT_LEAST16_FMTx="hx" define: UINT_LEAST16_FMTX="hX" define: INT_LEAST32_TYPE=int define: INT_LEAST32_MAX=2147483647 define: INT_LEAST32_FMTd="d" define: INT_LEAST32_FMTi="i" define: UINT_LEAST32_TYPE=unsigned int define: UINT_LEAST32_MAX=4294967295U define: UINT_LEAST32_FMTo="o" define: UINT_LEAST32_FMTu="u" define: UINT_LEAST32_FMTx="x" define: UINT_LEAST32_FMTX="X" define: INT_LEAST64_TYPE=long int define: INT_LEAST64_MAX=9223372036854775807L define: INT_LEAST64_FMTd="ld" define: INT_LEAST64_FMTi="li" define: UINT_LEAST64_TYPE=long unsigned int define: UINT_LEAST64_MAX=18446744073709551615UL define: UINT_LEAST64_FMTo="lo" define: UINT_LEAST64_FMTu="lu" define: UINT_LEAST64_FMTx="lx" define: UINT_LEAST64_FMTX="lX" define: INT_FAST8_TYPE=signed char define: INT_FAST8_MAX=127 define: INT_FAST8_FMTd="hhd" define: INT_FAST8_FMTi="hhi" define: UINT_FAST8_TYPE=unsigned char define: UINT_FAST8_MAX=255 define: UINT_FAST8_FMTo="hho" define: UINT_FAST8_FMTu="hhu" define: UINT_FAST8_FMTx="hhx" define: UINT_FAST8_FMTX="hhX" define: INT_FAST16_TYPE=short define: INT_FAST16_MAX=32767 define: INT_FAST16_FMTd="hd" define: INT_FAST16_FMTi="hi" define: UINT_FAST16_TYPE=unsigned short define: UINT_FAST16_MAX=65535 define: UINT_FAST16_FMTo="ho" define: UINT_FAST16_FMTu="hu" define: UINT_FAST16_FMTx="hx" define: UINT_FAST16_FMTX="hX" define: INT_FAST32_TYPE=int define: INT_FAST32_MAX=2147483647 define: INT_FAST32_FMTd="d" define: INT_FAST32_FMTi="i" define: UINT_FAST32_TYPE=unsigned int define: UINT_FAST32_MAX=4294967295U define: UINT_FAST32_FMTo="o" define: UINT_FAST32_FMTu="u" define: UINT_FAST32_FMTx="x" define: UINT_FAST32_FMTX="X" define: INT_FAST64_TYPE=long int define: INT_FAST64_MAX=9223372036854775807L define: INT_FAST64_FMTd="ld" define: INT_FAST64_FMTi="li" define: UINT_FAST64_TYPE=long unsigned int define: UINT_FAST64_MAX=18446744073709551615UL define: UINT_FAST64_FMTo="lo" define: UINT_FAST64_FMTu="lu" define: UINT_FAST64_FMTx="lx" define: UINT_FAST64_FMTX="lX" define: USER_LABEL_PREFIX= define: FINITE_MATH_ONLY=0 define: GNUC_GNU_INLINE=1 define: GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 define: CLANG_ATOMIC_BOOL_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR_LOCK_FREE=2 define: __CLANG_ATOMIC_CHAR16_T_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR32_T_LOCK_FREE=2 define: CLANG_ATOMIC_WCHAR_T_LOCK_FREE=2 define: CLANG_ATOMIC_SHORT_LOCK_FREE=2 define: CLANG_ATOMIC_INT_LOCK_FREE=2 define: CLANG_ATOMIC_LONG_LOCK_FREE=2 define: CLANG_ATOMIC_LLONG_LOCK_FREE=2 define: CLANG_ATOMIC_POINTER_LOCK_FREE=2 define: GCC_ATOMIC_BOOL_LOCK_FREE=2 define: GCC_ATOMIC_CHAR_LOCK_FREE=2 define: GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 define: GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 define: GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 define: GCC_ATOMIC_SHORT_LOCK_FREE=2 define: GCC_ATOMIC_INT_LOCK_FREE=2 define: GCC_ATOMIC_LONG_LOCK_FREE=2 define: GCC_ATOMIC_LLONG_LOCK_FREE=2 define: GCC_ATOMIC_POINTER_LOCK_FREE=2 define: NO_INLINE=1 define: FLT_EVAL_METHOD=0 define: FLT_RADIX=2 define: DECIMAL_DIG=LDBL_DECIMAL_DIG define: amd64=1 define: amd64=1 define: x86_64=1 define: x86_64=1 define: k8=1 define: k8=1 define: __tune_k8=1 define: REGISTER_PREFIX= define: NO_MATH_INLINES=1 define: FXSR=1 define: SSE2=1 define: __SSE2_MATH=1 define: SSE=1 define: SSE_MATH=1 define: MMX=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 define: SIZEOF_FLOAT128=16 define: unix=1 define: unix=1 define: linux=1 define: linux=1 define: gnu_linux=1 define: ELF=1 define: _GNU_SOURCE=1 define: FLOAT128=1 define: STDC=1 define: STDC_HOSTED=1 define: cplusplus=201402L define: STDCPP_DEFAULT_NEW_ALIGNMENT=16UL define: STDC_UTF_16=1 define: STDC_UTF_32=1 other: --clang other: --clang_version=60000 stdver: c++14 intelliSenseMode: linux-clang-x64 Checking for syntax errors: file:///home/akshat7/hw4/Closer.h Queueing IntelliSense update for files in translation unit of: /home/akshat7/hw4/mayday.cpp terminating child process: 23819 Database safe to open cpptools/finishUpdateSquiggles Error squiggle count: 2 terminating child process: 23842 cpptools/getFoldingRanges: file:///home/akshat7/hw4/Facility.cpp (id: 111) cpptools/getSemanticTokens: file:///home/akshat7/hw4/Closer.h (id: 112) sending compilation args for /home/akshat7/hw4/mayday.cpp include: /usr/include/c++/7 include: /usr/include/x86_64-linux-gnu/c++/7 include: /usr/include/c++/7/backward include: /usr/lib/llvm-6.0/lib/clang/6.0.0/include include: /usr/local/include include: /usr/include/x86_64-linux-gnu include: /usr/include define: llvm=1 define: clang=1 define: __clang_major=6 define: clang_minor=0 define: clang_patchlevel=0 define: clang_version__="6.0.0 (tags/RELEASE_600/final)" define: GNUC_MINOR=2 define: GNUC_PATCHLEVEL=1 define: GNUC=4 define: GXX_ABI_VERSION=1002 define: ATOMIC_RELAXED=0 define: __ATOMIC_CONSUME=1 define: ATOMIC_ACQUIRE=2 define: ATOMIC_RELEASE=3 define: ATOMIC_ACQ_REL=4 define: ATOMIC_SEQ_CST=5 define: OPENCL_MEMORY_SCOPE_WORK_ITEM=0 define: OPENCL_MEMORY_SCOPE_WORK_GROUP=1 define: __OPENCL_MEMORY_SCOPE_DEVICE=2 define: OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3 define: OPENCL_MEMORY_SCOPE_SUB_GROUP=4 define: PRAGMA_REDEFINE_EXTNAME=1 define: VERSION="4.2.1 Compatible Clang 6.0.0 (tags/RELEASE_600/final)" define: STRICT_ANSI=1 define: GXX_EXPERIMENTAL_CXX0X=1 define: OBJC_BOOL_IS_BOOL=0 define: CONSTANT_CFSTRINGS=1 define: EXCEPTIONS=1 define: GXX_RTTI=1 define: DEPRECATED=1 define: GNUG=4 define: GXX_WEAK=1 define: private_extern=extern define: ORDER_LITTLE_ENDIAN=1234 define: ORDER_BIG_ENDIAN=4321 define: ORDER_PDP_ENDIAN=3412 define: BYTE_ORDER=ORDER_LITTLE_ENDIAN define: LITTLE_ENDIAN__=1 define: _LP64=1 define: LP64=1 define: CHAR_BIT=8 define: SCHAR_MAX=127 define: SHRT_MAX=32767 define: INT_MAX=2147483647 define: LONG_MAX=9223372036854775807L define: LONG_LONG_MAX=9223372036854775807LL define: WCHAR_MAX=2147483647 define: WINT_MAX=4294967295U define: INTMAX_MAX=9223372036854775807L define: SIZE_MAX=18446744073709551615UL define: UINTMAX_MAX=18446744073709551615UL define: PTRDIFF_MAX=9223372036854775807L define: INTPTR_MAX=9223372036854775807L define: UINTPTR_MAX=18446744073709551615UL define: SIZEOF_DOUBLE=8 define: SIZEOF_FLOAT=4 define: SIZEOF_INT=4 define: SIZEOF_LONG=8 define: SIZEOF_LONG_DOUBLE=16 define: SIZEOF_LONG_LONG=8 define: SIZEOF_POINTER=8 define: SIZEOF_SHORT=2 define: SIZEOF_PTRDIFF_T=8 define: SIZEOF_SIZE_T=8 define: SIZEOF_WCHAR_T=4 define: SIZEOF_WINT_T=4 define: SIZEOF_INT128=16 define: INTMAX_TYPE=long int define: INTMAX_FMTd="ld" define: INTMAX_FMTi="li" define: INTMAX_C_SUFFIX=L define: UINTMAX_TYPE=long unsigned int define: UINTMAX_FMTo="lo" define: UINTMAX_FMTu="lu" define: UINTMAX_FMTx="lx" define: UINTMAX_FMTX="lX" define: UINTMAX_C_SUFFIX=UL define: INTMAX_WIDTH=64 define: PTRDIFF_TYPE=long int define: PTRDIFF_FMTd="ld" define: PTRDIFF_FMTi="li" define: PTRDIFF_WIDTH=64 define: INTPTR_TYPE=long int define: INTPTR_FMTd="ld" define: INTPTR_FMTi="li" define: INTPTR_WIDTH=64 define: SIZE_TYPE=long unsigned int define: SIZE_FMTo="lo" define: SIZE_FMTu="lu" define: SIZE_FMTx="lx" define: SIZE_FMTX="lX" define: SIZE_WIDTH=64 define: WCHAR_TYPE=int define: WCHAR_WIDTH=32 define: WINT_TYPE=unsigned int define: WINT_WIDTH=32 define: SIG_ATOMIC_WIDTH=32 define: SIG_ATOMIC_MAX=2147483647 define: CHAR16_TYPE=unsigned short define: CHAR32_TYPE=unsigned int define: UINTMAX_WIDTH=64 define: UINTPTR_TYPE=long unsigned int define: UINTPTR_FMTo="lo" define: UINTPTR_FMTu="lu" define: UINTPTR_FMTx="lx" define: UINTPTR_FMTX="lX" define: UINTPTR_WIDTH=64 define: FLT16_DENORM_MIN=5.9604644775390625e-8F16 define: FLT16_HAS_DENORM=1 define: FLT16_DIG=3 define: FLT16_DECIMAL_DIG=5 define: FLT16_EPSILON=9.765625e-4F16 define: FLT16_HAS_INFINITY=1 define: FLT16_HAS_QUIET_NAN=1 define: FLT16_MANT_DIG=11 define: FLT16_MAX_10_EXP=4 define: FLT16_MAX_EXP=15 define: FLT16_MAX=6.5504e+4F16 define: FLT16_MIN_10_EXP=(-13) define: FLT16_MIN_EXP=(-14) define: FLT16_MIN=6.103515625e-5F16 define: FLT_DENORM_MIN=1.40129846e-45F define: FLT_HAS_DENORM=1 define: FLT_DIG=6 define: FLT_DECIMAL_DIG=9 define: FLT_EPSILON=1.19209290e-7F define: FLT_HAS_INFINITY=1 define: FLT_HAS_QUIET_NAN=1 define: FLT_MANT_DIG=24 define: FLT_MAX_10_EXP=38 define: FLT_MAX_EXP=128 define: FLT_MAX=3.40282347e+38F define: FLT_MIN_10_EXP=(-37) define: FLT_MIN_EXP=(-125) define: FLT_MIN=1.17549435e-38F define: DBL_DENORM_MIN=4.9406564584124654e-324 define: DBL_HAS_DENORM=1 define: DBL_DIG=15 define: DBL_DECIMAL_DIG=17 define: DBL_EPSILON=2.2204460492503131e-16 define: DBL_HAS_INFINITY=1 define: DBL_HAS_QUIET_NAN=1 define: DBL_MANT_DIG=53 define: DBL_MAX_10_EXP=308 define: DBL_MAX_EXP=1024 define: DBL_MAX=1.7976931348623157e+308 define: DBL_MIN_10_EXP=(-307) define: DBL_MIN_EXP=(-1021) define: DBL_MIN=2.2250738585072014e-308 define: LDBL_DENORM_MIN=3.64519953188247460253e-4951L define: LDBL_HAS_DENORM=1 define: LDBL_DIG=18 define: LDBL_DECIMAL_DIG=21 define: LDBL_EPSILON=1.08420217248550443401e-19L define: LDBL_HAS_INFINITY=1 define: LDBL_HAS_QUIET_NAN=1 define: LDBL_MANT_DIG=64 define: LDBL_MAX_10_EXP=4932 define: LDBL_MAX_EXP=16384 define: LDBL_MAX=1.18973149535723176502e+4932L define: LDBL_MIN_10_EXP=(-4931) define: LDBL_MIN_EXP=(-16381) define: LDBL_MIN=3.36210314311209350626e-4932L define: POINTER_WIDTH=64 define: BIGGEST_ALIGNMENT=16 define: WINT_UNSIGNED=1 define: INT8_TYPE=signed char define: INT8_FMTd="hhd" define: INT8_FMTi="hhi" define: INT8_C_SUFFIX= define: INT16_TYPE=short define: INT16_FMTd="hd" define: INT16_FMTi="hi" define: INT16_C_SUFFIX= define: INT32_TYPE=int define: INT32_FMTd="d" define: INT32_FMTi="i" define: INT32_C_SUFFIX= define: INT64_TYPE=long int define: INT64_FMTd="ld" define: INT64_FMTi="li" define: INT64_C_SUFFIX=L define: UINT8_TYPE=unsigned char define: UINT8_FMTo="hho" define: UINT8_FMTu="hhu" define: UINT8_FMTx="hhx" define: UINT8_FMTX="hhX" define: UINT8_C_SUFFIX= define: UINT8_MAX=255 define: INT8_MAX=127 define: UINT16_TYPE=unsigned short define: UINT16_FMTo="ho" define: UINT16_FMTu="hu" define: UINT16_FMTx="hx" define: UINT16_FMTX="hX" define: UINT16_C_SUFFIX= define: UINT16_MAX=65535 define: INT16_MAX=32767 define: UINT32_TYPE=unsigned int define: UINT32_FMTo="o" define: UINT32_FMTu="u" define: UINT32_FMTx="x" define: UINT32_FMTX="X" define: UINT32_C_SUFFIX=U define: UINT32_MAX=4294967295U define: INT32_MAX=2147483647 define: UINT64_TYPE=long unsigned int define: UINT64_FMTo="lo" define: UINT64_FMTu="lu" define: UINT64_FMTx="lx" define: UINT64_FMTX="lX" define: UINT64_C_SUFFIX=UL define: UINT64_MAX=18446744073709551615UL define: INT64_MAX=9223372036854775807L define: INT_LEAST8_TYPE=signed char define: INT_LEAST8_MAX=127 define: INT_LEAST8_FMTd="hhd" define: INT_LEAST8_FMTi="hhi" define: UINT_LEAST8_TYPE=unsigned char define: UINT_LEAST8_MAX=255 define: UINT_LEAST8_FMTo="hho" define: UINT_LEAST8_FMTu="hhu" define: UINT_LEAST8_FMTx="hhx" define: UINT_LEAST8_FMTX="hhX" define: INT_LEAST16_TYPE=short define: INT_LEAST16_MAX=32767 define: INT_LEAST16_FMTd="hd" define: INT_LEAST16_FMTi="hi" define: UINT_LEAST16_TYPE=unsigned short define: UINT_LEAST16_MAX=65535 define: UINT_LEAST16_FMTo="ho" define: UINT_LEAST16_FMTu="hu" define: UINT_LEAST16_FMTx="hx" define: UINT_LEAST16_FMTX="hX" define: INT_LEAST32_TYPE=int define: INT_LEAST32_MAX=2147483647 define: INT_LEAST32_FMTd="d" define: INT_LEAST32_FMTi="i" define: UINT_LEAST32_TYPE=unsigned int define: UINT_LEAST32_MAX=4294967295U define: UINT_LEAST32_FMTo="o" define: UINT_LEAST32_FMTu="u" define: UINT_LEAST32_FMTx="x" define: UINT_LEAST32_FMTX="X" define: INT_LEAST64_TYPE=long int define: INT_LEAST64_MAX=9223372036854775807L define: INT_LEAST64_FMTd="ld" define: INT_LEAST64_FMTi="li" define: UINT_LEAST64_TYPE=long unsigned int define: UINT_LEAST64_MAX=18446744073709551615UL define: UINT_LEAST64_FMTo="lo" define: UINT_LEAST64_FMTu="lu" define: UINT_LEAST64_FMTx="lx" define: UINT_LEAST64_FMTX="lX" define: INT_FAST8_TYPE=signed char define: INT_FAST8_MAX=127 define: INT_FAST8_FMTd="hhd" define: INT_FAST8_FMTi="hhi" define: UINT_FAST8_TYPE=unsigned char define: UINT_FAST8_MAX=255 define: UINT_FAST8_FMTo="hho" define: UINT_FAST8_FMTu="hhu" define: UINT_FAST8_FMTx="hhx" define: UINT_FAST8_FMTX="hhX" define: INT_FAST16_TYPE=short define: INT_FAST16_MAX=32767 define: INT_FAST16_FMTd="hd" define: INT_FAST16_FMTi="hi" define: UINT_FAST16_TYPE=unsigned short define: UINT_FAST16_MAX=65535 define: UINT_FAST16_FMTo="ho" define: UINT_FAST16_FMTu="hu" define: UINT_FAST16_FMTx="hx" define: UINT_FAST16_FMTX="hX" define: INT_FAST32_TYPE=int define: INT_FAST32_MAX=2147483647 define: INT_FAST32_FMTd="d" define: INT_FAST32_FMTi="i" define: UINT_FAST32_TYPE=unsigned int define: UINT_FAST32_MAX=4294967295U define: UINT_FAST32_FMTo="o" define: UINT_FAST32_FMTu="u" define: UINT_FAST32_FMTx="x" define: UINT_FAST32_FMTX="X" define: INT_FAST64_TYPE=long int define: INT_FAST64_MAX=9223372036854775807L define: INT_FAST64_FMTd="ld" define: INT_FAST64_FMTi="li" define: UINT_FAST64_TYPE=long unsigned int define: UINT_FAST64_MAX=18446744073709551615UL define: UINT_FAST64_FMTo="lo" define: UINT_FAST64_FMTu="lu" define: UINT_FAST64_FMTx="lx" define: UINT_FAST64_FMTX="lX" define: USER_LABEL_PREFIX= define: FINITE_MATH_ONLY=0 define: GNUC_GNU_INLINE=1 define: GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 define: CLANG_ATOMIC_BOOL_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR16_T_LOCK_FREE=2 define: __CLANG_ATOMIC_CHAR32_T_LOCK_FREE=2 define: CLANG_ATOMIC_WCHAR_T_LOCK_FREE=2 define: CLANG_ATOMIC_SHORT_LOCK_FREE=2 define: CLANG_ATOMIC_INT_LOCK_FREE=2 define: CLANG_ATOMIC_LONG_LOCK_FREE=2 define: CLANG_ATOMIC_LLONG_LOCK_FREE=2 define: CLANG_ATOMIC_POINTER_LOCK_FREE=2 define: GCC_ATOMIC_BOOL_LOCK_FREE=2 define: GCC_ATOMIC_CHAR_LOCK_FREE=2 define: GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 define: GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 define: __GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 define: GCC_ATOMIC_SHORT_LOCK_FREE=2 define: GCC_ATOMIC_INT_LOCK_FREE=2 define: GCC_ATOMIC_LONG_LOCK_FREE=2 define: GCC_ATOMIC_LLONG_LOCK_FREE=2 define: GCC_ATOMIC_POINTER_LOCK_FREE=2 define: NO_INLINE=1 define: FLT_EVAL_METHOD=0 define: FLT_RADIX=2 define: DECIMAL_DIG=LDBL_DECIMAL_DIG define: amd64=1 define: amd64=1 define: __x86_64=1 define: x86_64=1 define: k8=1 define: k8=1 define: tune_k8=1 define: REGISTER_PREFIX= define: NO_MATH_INLINES=1 define: FXSR=1 define: SSE2=1 define: SSE2_MATH=1 define: SSE=1 define: SSE_MATH=1 define: MMX=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 define: SIZEOF_FLOAT128=16 define: unix=1 define: unix=1 define: linux=1 define: linux=1 define: gnu_linux=1 define: ELF=1 define: _GNU_SOURCE=1 define: FLOAT128=1 define: STDC=1 define: STDC_HOSTED=1 define: cplusplus=201402L define: STDCPP_DEFAULT_NEW_ALIGNMENT=16UL define: STDC_UTF_16=1 define: STDC_UTF_32__=1 other: --clang other: --clang_version=60000 stdver: c++14 intelliSenseMode: linux-clang-x64 Shutting down IntelliSense server: /home/akshat7/hw4/mayday.cpp terminating child process: 23865 Database safe to open sending compilation args for /home/akshat7/hw4/Facility.cpp include: /usr/include/c++/7 include: /usr/include/x86_64-linux-gnu/c++/7 include: /usr/include/c++/7/backward include: /usr/lib/llvm-6.0/lib/clang/6.0.0/include include: /usr/local/include include: /usr/include/x86_64-linux-gnu include: /usr/include define: llvm=1 define: clang=1 define: clang_major=6 define: clang_minor=0 define: clang_patchlevel=0 define: clang_version="6.0.0 (tags/RELEASE_600/final)" define: __GNUC_MINOR=2 define: GNUC_PATCHLEVEL=1 define: GNUC=4 define: GXX_ABI_VERSION=1002 define: __ATOMIC_RELAXED=0 define: ATOMIC_CONSUME=1 define: ATOMIC_ACQUIRE=2 define: __ATOMIC_RELEASE=3 define: ATOMIC_ACQ_REL=4 define: ATOMIC_SEQ_CST=5 define: OPENCL_MEMORY_SCOPE_WORK_ITEM=0 define: OPENCL_MEMORY_SCOPE_WORK_GROUP=1 define: OPENCL_MEMORY_SCOPE_DEVICE=2 define: OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3 define: OPENCL_MEMORY_SCOPE_SUB_GROUP=4 define: PRAGMA_REDEFINE_EXTNAME=1 define: VERSION="4.2.1 Compatible Clang 6.0.0 (tags/RELEASE_600/final)" define: STRICT_ANSI=1 define: GXX_EXPERIMENTAL_CXX0X=1 define: OBJC_BOOL_IS_BOOL=0 define: CONSTANT_CFSTRINGS=1 define: EXCEPTIONS=1 define: __GXX_RTTI=1 define: DEPRECATED=1 define: GNUG=4 define: GXX_WEAK=1 define: private_extern=extern define: ORDER_LITTLE_ENDIAN=1234 define: ORDER_BIG_ENDIAN=4321 define: ORDER_PDP_ENDIAN=3412 define: BYTE_ORDER=ORDER_LITTLE_ENDIAN define: LITTLE_ENDIAN=1 define: _LP64=1 define: LP64=1 define: CHAR_BIT=8 define: SCHAR_MAX=127 define: SHRT_MAX=32767 define: INT_MAX=2147483647 define: LONG_MAX=9223372036854775807L define: LONG_LONG_MAX=9223372036854775807LL define: WCHAR_MAX=2147483647 define: WINT_MAX=4294967295U define: INTMAX_MAX=9223372036854775807L define: SIZE_MAX=18446744073709551615UL define: UINTMAX_MAX=18446744073709551615UL define: PTRDIFF_MAX=9223372036854775807L define: INTPTR_MAX=9223372036854775807L define: UINTPTR_MAX=18446744073709551615UL define: SIZEOF_DOUBLE=8 define: SIZEOF_FLOAT=4 define: SIZEOF_INT=4 define: SIZEOF_LONG=8 define: SIZEOF_LONG_DOUBLE=16 define: SIZEOF_LONG_LONG=8 define: SIZEOF_POINTER=8 define: SIZEOF_SHORT=2 define: SIZEOF_PTRDIFF_T=8 define: SIZEOF_SIZE_T=8 define: SIZEOF_WCHAR_T=4 define: SIZEOF_WINT_T=4 define: SIZEOF_INT128=16 define: INTMAX_TYPE=long int define: INTMAX_FMTd="ld" define: INTMAX_FMTi="li" define: INTMAX_C_SUFFIX=L define: UINTMAX_TYPE=long unsigned int define: UINTMAX_FMTo="lo" define: UINTMAX_FMTu="lu" define: UINTMAX_FMTx="lx" define: UINTMAX_FMTX="lX" define: UINTMAX_C_SUFFIX=UL define: INTMAX_WIDTH=64 define: PTRDIFF_TYPE=long int define: PTRDIFF_FMTd="ld" define: PTRDIFF_FMTi="li" define: PTRDIFF_WIDTH=64 define: INTPTR_TYPE=long int define: INTPTR_FMTd="ld" define: INTPTR_FMTi="li" define: INTPTR_WIDTH=64 define: SIZE_TYPE=long unsigned int define: SIZE_FMTo="lo" define: SIZE_FMTu="lu" define: SIZE_FMTx="lx" define: SIZE_FMTX="lX" define: SIZE_WIDTH=64 define: WCHAR_TYPE=int define: WCHAR_WIDTH=32 define: WINT_TYPE=unsigned int define: WINT_WIDTH=32 define: SIG_ATOMIC_WIDTH=32 define: SIG_ATOMIC_MAX=2147483647 define: CHAR16_TYPE=unsigned short define: CHAR32_TYPE=unsigned int define: UINTMAX_WIDTH=64 define: UINTPTR_TYPE=long unsigned int define: UINTPTR_FMTo="lo" define: UINTPTR_FMTu="lu" define: UINTPTR_FMTx="lx" define: UINTPTR_FMTX="lX" define: UINTPTR_WIDTH=64 define: FLT16_DENORM_MIN=5.9604644775390625e-8F16 define: FLT16_HAS_DENORM=1 define: FLT16_DIG=3 define: FLT16_DECIMAL_DIG=5 define: FLT16_EPSILON=9.765625e-4F16 define: FLT16_HAS_INFINITY=1 define: FLT16_HAS_QUIET_NAN=1 define: FLT16_MANT_DIG=11 define: FLT16_MAX_10_EXP=4 define: FLT16_MAX_EXP=15 define: FLT16_MAX=6.5504e+4F16 define: FLT16_MIN_10_EXP=(-13) define: FLT16_MIN_EXP=(-14) define: FLT16_MIN=6.103515625e-5F16 define: FLT_DENORM_MIN=1.40129846e-45F define: FLT_HAS_DENORM=1 define: FLT_DIG=6 define: FLT_DECIMAL_DIG=9 define: FLT_EPSILON=1.19209290e-7F define: FLT_HAS_INFINITY=1 define: FLT_HAS_QUIET_NAN=1 define: FLT_MANT_DIG=24 define: FLT_MAX_10_EXP=38 define: FLT_MAX_EXP=128 define: FLT_MAX=3.40282347e+38F define: FLT_MIN_10_EXP=(-37) define: FLT_MIN_EXP=(-125) define: FLT_MIN=1.17549435e-38F define: DBL_DENORM_MIN=4.9406564584124654e-324 define: DBL_HAS_DENORM=1 define: DBL_DIG=15 define: DBL_DECIMAL_DIG=17 define: DBL_EPSILON=2.2204460492503131e-16 define: DBL_HAS_INFINITY=1 define: DBL_HAS_QUIET_NAN=1 define: DBL_MANT_DIG=53 define: DBL_MAX_10_EXP=308 define: DBL_MAX_EXP=1024 define: DBL_MAX=1.7976931348623157e+308 define: DBL_MIN_10_EXP=(-307) define: DBL_MIN_EXP=(-1021) define: DBL_MIN=2.2250738585072014e-308 define: LDBL_DENORM_MIN=3.64519953188247460253e-4951L define: LDBL_HAS_DENORM=1 define: LDBL_DIG=18 define: LDBL_DECIMAL_DIG=21 define: LDBL_EPSILON=1.08420217248550443401e-19L define: LDBL_HAS_INFINITY=1 define: LDBL_HAS_QUIET_NAN=1 define: LDBL_MANT_DIG=64 define: LDBL_MAX_10_EXP=4932 define: LDBL_MAX_EXP=16384 define: LDBL_MAX=1.18973149535723176502e+4932L define: LDBL_MIN_10_EXP=(-4931) define: LDBL_MIN_EXP=(-16381) define: LDBL_MIN=3.36210314311209350626e-4932L define: POINTER_WIDTH=64 define: BIGGEST_ALIGNMENT=16 define: WINT_UNSIGNED=1 define: INT8_TYPE=signed char define: INT8_FMTd="hhd" define: INT8_FMTi="hhi" define: INT8_C_SUFFIX= define: INT16_TYPE=short define: INT16_FMTd="hd" define: INT16_FMTi="hi" define: INT16_C_SUFFIX= define: INT32_TYPE=int define: INT32_FMTd="d" define: INT32_FMTi="i" define: INT32_C_SUFFIX= define: INT64_TYPE=long int define: INT64_FMTd="ld" define: INT64_FMTi="li" define: INT64_C_SUFFIX=L define: UINT8_TYPE=unsigned char define: UINT8_FMTo="hho" define: UINT8_FMTu="hhu" define: UINT8_FMTx="hhx" define: UINT8_FMTX="hhX" define: UINT8_C_SUFFIX= define: UINT8_MAX=255 define: INT8_MAX=127 define: UINT16_TYPE=unsigned short define: UINT16_FMTo="ho" define: UINT16_FMTu="hu" define: UINT16_FMTx="hx" define: UINT16_FMTX="hX" define: UINT16_C_SUFFIX= define: UINT16_MAX=65535 define: INT16_MAX=32767 define: UINT32_TYPE=unsigned int define: UINT32_FMTo="o" define: UINT32_FMTu="u" define: UINT32_FMTx="x" define: UINT32_FMTX="X" define: UINT32_C_SUFFIX=U define: UINT32_MAX=4294967295U define: INT32_MAX=2147483647 define: UINT64_TYPE=long unsigned int define: UINT64_FMTo="lo" define: UINT64_FMTu="lu" define: UINT64_FMTx="lx" define: UINT64_FMTX="lX" define: UINT64_C_SUFFIX=UL define: UINT64_MAX=18446744073709551615UL define: INT64_MAX=9223372036854775807L define: INT_LEAST8_TYPE=signed char define: INT_LEAST8_MAX=127 define: INT_LEAST8_FMTd="hhd" define: INT_LEAST8_FMTi="hhi" define: UINT_LEAST8_TYPE=unsigned char define: UINT_LEAST8_MAX=255 define: UINT_LEAST8_FMTo="hho" define: UINT_LEAST8_FMTu="hhu" define: UINT_LEAST8_FMTx="hhx" define: UINT_LEAST8_FMTX="hhX" define: INT_LEAST16_TYPE=short define: INT_LEAST16_MAX=32767 define: INT_LEAST16_FMTd="hd" define: INT_LEAST16_FMTi="hi" define: UINT_LEAST16_TYPE=unsigned short define: UINT_LEAST16_MAX=65535 define: UINT_LEAST16_FMTo="ho" define: UINT_LEAST16_FMTu="hu" define: UINT_LEAST16_FMTx="hx" define: UINT_LEAST16_FMTX="hX" define: INT_LEAST32_TYPE=int define: INT_LEAST32_MAX=2147483647 define: INT_LEAST32_FMTd="d" define: INT_LEAST32_FMTi="i" define: UINT_LEAST32_TYPE=unsigned int define: UINT_LEAST32_MAX=4294967295U define: UINT_LEAST32_FMTo="o" define: UINT_LEAST32_FMTu="u" define: UINT_LEAST32_FMTx="x" define: UINT_LEAST32_FMTX="X" define: INT_LEAST64_TYPE=long int define: INT_LEAST64_MAX=9223372036854775807L define: INT_LEAST64_FMTd="ld" define: INT_LEAST64_FMTi="li" define: UINT_LEAST64_TYPE=long unsigned int define: UINT_LEAST64_MAX=18446744073709551615UL define: UINT_LEAST64_FMTo="lo" define: UINT_LEAST64_FMTu="lu" define: UINT_LEAST64_FMTx="lx" define: UINT_LEAST64_FMTX="lX" define: INT_FAST8_TYPE=signed char define: INT_FAST8_MAX=127 define: INT_FAST8_FMTd="hhd" define: INT_FAST8_FMTi="hhi" define: UINT_FAST8_TYPE=unsigned char define: UINT_FAST8_MAX=255 define: UINT_FAST8_FMTo="hho" define: UINT_FAST8_FMTu="hhu" define: UINT_FAST8_FMTx="hhx" define: UINT_FAST8_FMTX="hhX" define: INT_FAST16_TYPE=short define: INT_FAST16_MAX=32767 define: INT_FAST16_FMTd="hd" define: INT_FAST16_FMTi="hi" define: UINT_FAST16_TYPE=unsigned short define: UINT_FAST16_MAX=65535 define: UINT_FAST16_FMTo="ho" define: UINT_FAST16_FMTu="hu" define: UINT_FAST16_FMTx="hx" define: UINT_FAST16_FMTX="hX" define: INT_FAST32_TYPE=int define: INT_FAST32_MAX=2147483647 define: INT_FAST32_FMTd="d" define: INT_FAST32_FMTi="i" define: UINT_FAST32_TYPE=unsigned int define: UINT_FAST32_MAX=4294967295U define: UINT_FAST32_FMTo="o" define: UINT_FAST32_FMTu="u" define: UINT_FAST32_FMTx="x" define: UINT_FAST32_FMTX="X" define: INT_FAST64_TYPE=long int define: INT_FAST64_MAX=9223372036854775807L define: INT_FAST64_FMTd="ld" define: INT_FAST64_FMTi="li" define: UINT_FAST64_TYPE=long unsigned int define: UINT_FAST64_MAX=18446744073709551615UL define: UINT_FAST64_FMTo="lo" define: UINT_FAST64_FMTu="lu" define: UINT_FAST64_FMTx="lx" define: UINT_FAST64_FMTX="lX" define: USER_LABEL_PREFIX= define: FINITE_MATH_ONLY=0 define: GNUC_GNU_INLINE=1 define: GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 define: CLANG_ATOMIC_BOOL_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR16_T_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR32_T_LOCK_FREE=2 define: __CLANG_ATOMIC_WCHAR_T_LOCK_FREE=2 define: CLANG_ATOMIC_SHORT_LOCK_FREE=2 define: CLANG_ATOMIC_INT_LOCK_FREE=2 define: CLANG_ATOMIC_LONG_LOCK_FREE=2 define: CLANG_ATOMIC_LLONG_LOCK_FREE=2 define: CLANG_ATOMIC_POINTER_LOCK_FREE=2 define: GCC_ATOMIC_BOOL_LOCK_FREE=2 define: GCC_ATOMIC_CHAR_LOCK_FREE=2 define: GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 define: GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 define: GCC_ATOMIC_SHORT_LOCK_FREE=2 define: GCC_ATOMIC_INT_LOCK_FREE=2 define: GCC_ATOMIC_LONG_LOCK_FREE=2 define: GCC_ATOMIC_LLONG_LOCK_FREE=2 define: GCC_ATOMIC_POINTER_LOCK_FREE=2 define: NO_INLINE=1 define: FLT_EVAL_METHOD=0 define: FLT_RADIX=2 define: DECIMAL_DIG=LDBL_DECIMAL_DIG define: amd64=1 define: amd64=1 define: x86_64=1 define: __x86_64=1 define: k8=1 define: k8=1 define: tune_k8=1 define: REGISTER_PREFIX= define: NO_MATH_INLINES=1 define: FXSR=1 define: SSE2=1 define: SSE2_MATH=1 define: SSE=1 define: SSE_MATH=1 define: MMX=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 define: SIZEOF_FLOAT128=16 define: unix=1 define: unix=1 define: linux=1 define: linux=1 define: gnu_linux=1 define: ELF=1 define: _GNU_SOURCE=1 define: FLOAT128=1 define: STDC=1 define: STDC_HOSTED=1 define: cplusplus=201402L define: __STDCPP_DEFAULT_NEW_ALIGNMENT=16UL define: STDC_UTF_16=1 define: STDC_UTF_32=1 other: --clang other: --clang_version=60000 stdver: c++14 intelliSenseMode: linux-clang-x64 Queueing IntelliSense update for files in translation unit of: /home/akshat7/hw4/Facility.cpp cpptools/finishUpdateSquiggles Error squiggle count: 0 terminating child process: 23956 Update IntelliSense time (sec): 2356.717 cpptools/getFoldingRanges: file:///home/akshat7/hw4/Facility.cpp (id: 113) cpptools/getCodeActions: file:///home/akshat7/hw4/Facility.cpp (id: 114) Replaced placeholder file record
> Do any more tag parsing messages appear in the logs or is that finished?
- There were probably more tag parsing messages, but it was taking forever to output more. Sorry for only copying some of them.
> We were thinking your might be able to remote desktop into the machine -- if your IT administrators haven't explained how you can do this then it might not be possible.
- I'm pretty sure I can do this. I need to ask my IT administrators how and will get back to you if it works.
It's possible your computer is really slow and the IntelliSense process launching is stuck waiting for tag parsing to finish
- I have a feeling this might be the case since Intellisense works (autosuggestion is fast but the dialog box is stuck at "Loading...") intermittently. Only when I give it a "break" for some time does it work properly for a few seconds.
After the logging shows "Formatting Engine: clangFormat" it appears that the clang-format process is taking a long time to do the formatting -- you could confirm that via running something like top/htop to see the CPU usage. During that time it appears to be tag parsing more system includes. You may want to try waiting for cpptools to enter an idle state (stop tag parsing) before doing a formatting to see if that gives better results (but I don't know a reason tag parsing would block formatting). You could also compare the performance of running clang-format for the Facility.cpp file directly on the command line (my guess is that it would be equally slow).
Also, there is strange behavior with the IntelliSense processing for mayday.cpp. I see it process a didClose for that file, but then it appears to launch the IntelliSense process for that file 2 more times and then shutting down and that appears to delay the launching of the IntelliSense process for Facility.cpp -- this may indicate the queue for IntelliSense work is backlogged with old work.
Is there any way to fix this issue of slowness? Would doing a remote desktop into my school computer resolve it?
Since everything appears to be running on the remote computer without any remote calls between computers, I wouldn't expect alternative remoting methods to yield different results, although it may still be worth trying. Are other tasks on the machine equally slow, such as tasks on the command line such as compiling or clang-format? Are multiple students remoting into the same machine?
Are other tasks on the machine equally slow, such as tasks on the command line such as compiling or clang-format?
- Other tasks on the command line like compiling or clang-format are much faster. Are multiple students remoting into the same machine?
- Yes, there are likely multiple students remoting into the same machine, so that explains the slowness.
We've found/fixed a performance bug (https://github.com/microsoft/vscode-cpptools/issues/7159) when formatting occurs which could cause didChange processing to take a long time. I'm not sure if that's what you were hitting or not though, because your logs don't seem to indicate that, but it could block the main thread for several seconds after a format occurred.
We've fixed a bug with format performance with https://github.com/microsoft/vscode-cpptools/releases/tag/1.3.0-insiders , although your performance issue sounds like it still might not be resolved.
Issue Type: Bug
I recently connected to my school's computer using the Remote - SSH extension. I have installed the C/C++ extension on my school computer as well. However, Intellisense is not working. These are the steps I followed to get to where I am now:
VS Code is able to successfully connect to the host since the built-in terminal shows the home directory of my school's PC. Additionally, the configuration now running is Linux as shown in the bottom right. However, I am having the following issues with Intellisense:
All of these features work on my local computer.
Extension version: 1.2.2 VS Code version: Code 1.54.1 (f30a9b73e8ffc278e71575118b6bf568f04587c8, 2021-03-04T22:42:18.719Z) OS version: Darwin x64 20.3.0 Remote OS version: Linux x64 4.15.0-136-generic
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz (8 x 2300)| |GPU Status|2d_canvas: enabledgpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled| |Load (avg)|2, 2, 2| |Memory (System)|8.00GB (0.12GB free)| |Process Argv|--crash-reporter-id 6eda11e3-d929-4a56-81ad-83e0d39be8d1| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|SSH: pc28.cs.ucdavis.edu| |OS|Linux x64 4.15.0-136-generic| |CPUs|Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (8 x 2500)| |Memory (System)|15.61GB (13.97GB free)| |VM|0%|
A/B Experiments
``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstry914:30256638 pythonvsdeb440:30248342 pythonvsded773:30248341 pythonvspyt875:30259475 dockersubset:30265998 pythontbcf:30265426 vspre833cf:30267465 ```