Closed ncduy0303 closed 4 years ago
The extension won't use task.json to compile, instead it will look for the compile line in $HOME/.acmx/languages/cpp.json
Check here: https://github.com/mfornet/acmx/wiki#custom-compile-and-run-command
The extension won't use task.json to compile, instead it will look for the compile line in $HOME/.acmx/languages/cpp.json
Check here: https://github.com/mfornet/acmx/wiki#custom-compile-and-run-command
So am I supposed to leave the Acmx › Configuration: Launch and Acmx › Configuration: Tasks blank? And where is $HOME/.acmx/languages/cpp.json located in Windows? Sorry I'm a little unfamiliar with this.
So am I supposed to leave the Acmx › Configuration: Launch and Acmx › Configuration: Tasks blank?
This extension doesn't use launch.json and tasks.json directly, but they are very useful to debug solutions, so this options allows you to populate both launch.json and tasks.json with your custom configuration automatically, so you can use them later for debugging. More about this in the wiki: https://github.com/mfornet/acmx/wiki/Debug-Test-Case
And where is $HOME/.acmx/languages/cpp.json located in Windows? Sorry I'm a little unfamiliar with this.
$HOME in Windows point to whatever the environment variable USERPROFILE points to, which should look similar to C:\Users\ncduy0303
. So the full path to the cpp.json is: C:/Users/ncduy0303/.acmx/languages/cpp.json
.
Here ncduy0303
stands for your username in your Windows Machine. More about USERPROFILE in Wikipedia https://en.wikipedia.org/wiki/Environment_variable#Default_values.
Notice that you can change the path to the default location of languages
. Quoting from the wiki https://github.com/mfornet/acmx/wiki#custom-compile-and-run-command:
In general language directory is located in acmx.configuration.homePath.
By default acmx.configuration.homePath points to $HOME/.acmx.
Thank you very much! I figure out the issue, so I will close this.
Compilation Error Message
``` C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/forward_list.h:1443:5: note: template argument deduction/substitution failed: In file included from C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/filesystem:37, from C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:127, from E:\Computing\acmx\solutions\Codeforces - Codeforces Round #646 (Div. 2)\A. Odd Selection\template.cpp:1: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h:237:60: note: 'std::filesystem::__cxx11::path' is not derived from 'const std::forward_list<_Tp, _Alloc>' || (__p.has_root_name() && __p.root_name() != root_name())) ^ In file included from C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/future:39, from C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:105, from E:\Computing\acmx\solutions\Codeforces - Codeforces Round #646 (Div. 2)\A. Odd Selection\template.cpp:1: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/thread:277:3: note: candidate: 'bool std::operator!=(std::thread::id, std::thread::id)' operator!=(thread::id __x, thread::id __y) noexcept ^~~~~~~~ C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/thread:277:3: note: no known conversion for argument 1 from 'std::filesystem::__cxx11::path' to 'std::thread::id' In file included from C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/random:49, from C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:108, from E:\Computing\acmx\solutions\Codeforces - Codeforces Round #646 (Div. 2)\A. Odd Selection\template.cpp:1: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/random.h:397:5: note: candidate: 'templateHere is the default launch file and tasks file that I used. I tested them manually and it works ok:
I keeps getting this error every time I try to use ACMX: Compile. PLease help.