Skip to content

Commit 1b00d07

Browse files
committed
update logic for python code execution
1 parent 533aaed commit 1b00d07

File tree

14 files changed

+1739
-76
lines changed

14 files changed

+1739
-76
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6363
- updated the logic for fetchTestCases.ts (basically adding logic for second selector to account for every question on leetcode)
6464

6565
### Fixed
66-
- change python version to python3 (install python3 to execute the code)
66+
- modified executeCode.ts file such that before proceeding it check for the python version (either python or python3) that is installed in the machine
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"requests":[{"kind":"cache","version":2},{"kind":"codemodel","version":2},{"kind":"toolchains","version":1},{"kind":"cmakeFiles","version":1}]}

build/CMakeCache.txt

Lines changed: 337 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,337 @@
1+
# This is the CMakeCache file.
2+
# For build in directory: /home/ashishexe/Documents/GitHub/cph-vscode-extension-leetcode/build
3+
# It was generated by CMake: /usr/bin/cmake
4+
# You can edit this file to change values found and used by cmake.
5+
# If you do not want to change any of the values, simply exit the editor.
6+
# If you do want to change a value, simply edit, save, and exit the editor.
7+
# The syntax for the file is as follows:
8+
# KEY:TYPE=VALUE
9+
# KEY is the name of a variable in the cache.
10+
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
11+
# VALUE is the current value for the KEY.
12+
13+
########################
14+
# EXTERNAL cache entries
15+
########################
16+
17+
//Path to a program.
18+
CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line
19+
20+
//Path to a program.
21+
CMAKE_AR:FILEPATH=/usr/bin/ar
22+
23+
//No help, variable specified on the command line.
24+
CMAKE_BUILD_TYPE:STRING=Debug
25+
26+
//Enable/Disable color output during build.
27+
CMAKE_COLOR_MAKEFILE:BOOL=ON
28+
29+
//No help, variable specified on the command line.
30+
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++
31+
32+
//C compiler
33+
CMAKE_C_COMPILER:STRING=/usr/bin/gcc
34+
35+
//A wrapper around 'ar' adding the appropriate '--plugin' option
36+
// for the GCC compiler
37+
CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-13
38+
39+
//A wrapper around 'ranlib' adding the appropriate '--plugin' option
40+
// for the GCC compiler
41+
CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-13
42+
43+
//Flags used by the C compiler during all build types.
44+
CMAKE_C_FLAGS:STRING=
45+
46+
//Flags used by the C compiler during DEBUG builds.
47+
CMAKE_C_FLAGS_DEBUG:STRING=-g
48+
49+
//Flags used by the C compiler during MINSIZEREL builds.
50+
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
51+
52+
//Flags used by the C compiler during RELEASE builds.
53+
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
54+
55+
//Flags used by the C compiler during RELWITHDEBINFO builds.
56+
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
57+
58+
//Path to a program.
59+
CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND
60+
61+
//Flags used by the linker during all build types.
62+
CMAKE_EXE_LINKER_FLAGS:STRING=
63+
64+
//Flags used by the linker during DEBUG builds.
65+
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
66+
67+
//Flags used by the linker during MINSIZEREL builds.
68+
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
69+
70+
//Flags used by the linker during RELEASE builds.
71+
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
72+
73+
//Flags used by the linker during RELWITHDEBINFO builds.
74+
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
75+
76+
//No help, variable specified on the command line.
77+
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE
78+
79+
//Value Computed by CMake.
80+
CMAKE_FIND_PACKAGE_REDIRECTS_DIR:STATIC=/home/ashishexe/Documents/GitHub/cph-vscode-extension-leetcode/build/CMakeFiles/pkgRedirects
81+
82+
//Install path prefix, prepended onto install directories.
83+
CMAKE_INSTALL_PREFIX:PATH=/usr/local
84+
85+
//Path to a program.
86+
CMAKE_LINKER:FILEPATH=/usr/bin/ld
87+
88+
//Path to a program.
89+
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake
90+
91+
//Flags used by the linker during the creation of modules during
92+
// all build types.
93+
CMAKE_MODULE_LINKER_FLAGS:STRING=
94+
95+
//Flags used by the linker during the creation of modules during
96+
// DEBUG builds.
97+
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
98+
99+
//Flags used by the linker during the creation of modules during
100+
// MINSIZEREL builds.
101+
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
102+
103+
//Flags used by the linker during the creation of modules during
104+
// RELEASE builds.
105+
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
106+
107+
//Flags used by the linker during the creation of modules during
108+
// RELWITHDEBINFO builds.
109+
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
110+
111+
//Path to a program.
112+
CMAKE_NM:FILEPATH=/usr/bin/nm
113+
114+
//Path to a program.
115+
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
116+
117+
//Path to a program.
118+
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump
119+
120+
//Value Computed by CMake
121+
CMAKE_PROJECT_DESCRIPTION:STATIC=
122+
123+
//Value Computed by CMake
124+
CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
125+
126+
//Value Computed by CMake
127+
CMAKE_PROJECT_NAME:STATIC=bare_fs
128+
129+
//Path to a program.
130+
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
131+
132+
//Path to a program.
133+
CMAKE_READELF:FILEPATH=/usr/bin/readelf
134+
135+
//Flags used by the linker during the creation of shared libraries
136+
// during all build types.
137+
CMAKE_SHARED_LINKER_FLAGS:STRING=
138+
139+
//Flags used by the linker during the creation of shared libraries
140+
// during DEBUG builds.
141+
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
142+
143+
//Flags used by the linker during the creation of shared libraries
144+
// during MINSIZEREL builds.
145+
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
146+
147+
//Flags used by the linker during the creation of shared libraries
148+
// during RELEASE builds.
149+
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
150+
151+
//Flags used by the linker during the creation of shared libraries
152+
// during RELWITHDEBINFO builds.
153+
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
154+
155+
//If set, runtime paths are not added when installing shared libraries,
156+
// but are added when building.
157+
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
158+
159+
//If set, runtime paths are not added when using shared libraries.
160+
CMAKE_SKIP_RPATH:BOOL=NO
161+
162+
//Flags used by the linker during the creation of static libraries
163+
// during all build types.
164+
CMAKE_STATIC_LINKER_FLAGS:STRING=
165+
166+
//Flags used by the linker during the creation of static libraries
167+
// during DEBUG builds.
168+
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
169+
170+
//Flags used by the linker during the creation of static libraries
171+
// during MINSIZEREL builds.
172+
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
173+
174+
//Flags used by the linker during the creation of static libraries
175+
// during RELEASE builds.
176+
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
177+
178+
//Flags used by the linker during the creation of static libraries
179+
// during RELWITHDEBINFO builds.
180+
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
181+
182+
//Path to a program.
183+
CMAKE_STRIP:FILEPATH=/usr/bin/strip
184+
185+
//Path to a program.
186+
CMAKE_TAPI:FILEPATH=CMAKE_TAPI-NOTFOUND
187+
188+
//If this value is on, makefiles will be generated without the
189+
// .SILENT directive, and all commands will be echoed to the console
190+
// during the make. This is useful for debugging only. With Visual
191+
// Studio IDE projects all commands are done without /nologo.
192+
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
193+
194+
//Value Computed by CMake
195+
bare_fs_BINARY_DIR:STATIC=/home/ashishexe/Documents/GitHub/cph-vscode-extension-leetcode/build
196+
197+
//Value Computed by CMake
198+
bare_fs_IS_TOP_LEVEL:STATIC=ON
199+
200+
//Value Computed by CMake
201+
bare_fs_SOURCE_DIR:STATIC=/home/ashishexe/Documents/GitHub/cph-vscode-extension-leetcode/node_modules/bare-fs
202+
203+
204+
########################
205+
# INTERNAL cache entries
206+
########################
207+
208+
//ADVANCED property for variable: CMAKE_ADDR2LINE
209+
CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1
210+
//ADVANCED property for variable: CMAKE_AR
211+
CMAKE_AR-ADVANCED:INTERNAL=1
212+
//This is the directory where this CMakeCache.txt was created
213+
CMAKE_CACHEFILE_DIR:INTERNAL=/home/ashishexe/Documents/GitHub/cph-vscode-extension-leetcode/build
214+
//Major version of cmake used to create the current loaded cache
215+
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
216+
//Minor version of cmake used to create the current loaded cache
217+
CMAKE_CACHE_MINOR_VERSION:INTERNAL=28
218+
//Patch version of cmake used to create the current loaded cache
219+
CMAKE_CACHE_PATCH_VERSION:INTERNAL=3
220+
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
221+
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
222+
//Path to CMake executable.
223+
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
224+
//Path to cpack program executable.
225+
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
226+
//Path to ctest program executable.
227+
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
228+
//ADVANCED property for variable: CMAKE_C_COMPILER
229+
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
230+
//ADVANCED property for variable: CMAKE_C_COMPILER_AR
231+
CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1
232+
//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB
233+
CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1
234+
//ADVANCED property for variable: CMAKE_C_FLAGS
235+
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
236+
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
237+
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
238+
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
239+
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
240+
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
241+
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
242+
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
243+
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
244+
//ADVANCED property for variable: CMAKE_DLLTOOL
245+
CMAKE_DLLTOOL-ADVANCED:INTERNAL=1
246+
//Executable file format
247+
CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
248+
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
249+
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
250+
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
251+
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
252+
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
253+
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
254+
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
255+
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
256+
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
257+
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
258+
//Name of external makefile project generator.
259+
CMAKE_EXTRA_GENERATOR:INTERNAL=
260+
//Name of generator.
261+
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
262+
//Generator instance identifier.
263+
CMAKE_GENERATOR_INSTANCE:INTERNAL=
264+
//Name of generator platform.
265+
CMAKE_GENERATOR_PLATFORM:INTERNAL=
266+
//Name of generator toolset.
267+
CMAKE_GENERATOR_TOOLSET:INTERNAL=
268+
//Source directory with the top level CMakeLists.txt file for this
269+
// project
270+
CMAKE_HOME_DIRECTORY:INTERNAL=/home/ashishexe/Documents/GitHub/cph-vscode-extension-leetcode/node_modules/bare-fs
271+
//Install .so files without execute permission.
272+
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
273+
//ADVANCED property for variable: CMAKE_LINKER
274+
CMAKE_LINKER-ADVANCED:INTERNAL=1
275+
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
276+
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
277+
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
278+
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
279+
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
280+
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
281+
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
282+
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
283+
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
284+
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
285+
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
286+
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
287+
//ADVANCED property for variable: CMAKE_NM
288+
CMAKE_NM-ADVANCED:INTERNAL=1
289+
//number of local generators
290+
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
291+
//ADVANCED property for variable: CMAKE_OBJCOPY
292+
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
293+
//ADVANCED property for variable: CMAKE_OBJDUMP
294+
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
295+
//Platform information initialized
296+
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
297+
//ADVANCED property for variable: CMAKE_RANLIB
298+
CMAKE_RANLIB-ADVANCED:INTERNAL=1
299+
//ADVANCED property for variable: CMAKE_READELF
300+
CMAKE_READELF-ADVANCED:INTERNAL=1
301+
//Path to CMake installation.
302+
CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.28
303+
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
304+
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
305+
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
306+
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
307+
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
308+
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
309+
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
310+
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
311+
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
312+
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
313+
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
314+
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
315+
//ADVANCED property for variable: CMAKE_SKIP_RPATH
316+
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
317+
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
318+
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
319+
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
320+
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
321+
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
322+
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
323+
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
324+
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
325+
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
326+
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
327+
//ADVANCED property for variable: CMAKE_STRIP
328+
CMAKE_STRIP-ADVANCED:INTERNAL=1
329+
//ADVANCED property for variable: CMAKE_TAPI
330+
CMAKE_TAPI-ADVANCED:INTERNAL=1
331+
//uname command
332+
CMAKE_UNAME:INTERNAL=/usr/bin/uname
333+
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
334+
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
335+
//linker supports push/pop state
336+
_CMAKE_LINKER_PUSHPOP_STATE_SUPPORTED:INTERNAL=TRUE
337+

0 commit comments

Comments
 (0)