Jatana / FastOlympicCoding

Tools for competitive programming for Sublime Text 3 & 4
403 stars 48 forks source link

compile issue in mac #18

Open madhur1846 opened 4 years ago

madhur1846 commented 4 years ago

first it is not start when i press cmd + b or ctrl + b ( after pressing cmd + shift + p and then select FastOlympicCoding run side window appear) and just stop at compiling and after press ctrl + ~ it shows

using gpu buffer for window Running g++ "/Users/madhurjoshi/Competitive Programming/Competions/e.cpp" -o "/Users/madhurjoshi/Competitive Programming/Competions/e" && "/Users/madhurjoshi/Competitive Programming/Competions/e" [FastOlympicCoding] session saved Traceback (most recent call last): File "/Users/madhurjoshi/Library/Application Support/Sublime Text 3/Packages/FastOlympicCoding-master/test_manager.py", line 972, in compile cmp_data = process_manager.compile() File "/Users/madhurjoshi/Library/Application Support/Sublime Text 3/Packages/FastOlympicCoding-master/Modules/ProcessManager.py", line 71, in compile cmd = self.get_compile_cmd() File "/Users/madhurjoshi/Library/Application Support/Sublime Text 3/Packages/FastOlympicCoding-master/Modules/ProcessManager.py", line 51, in get_compile_cmd for x in opt: TypeError: 'NoneType' object is not iterable [FastOlympicCoding] process terminating error [FastOlympicCoding] session saved Traceback (most recent call last): File "/Users/madhurjoshi/Library/Application Support/Sublime Text 3/Packages/FastOlympicCoding-master/test_manager.py", line 972, in compile cmp_data = process_manager.compile() File "/Users/madhurjoshi/Library/Application Support/Sublime Text 3/Packages/FastOlympicCoding-master/Modules/ProcessManager.py", line 71, in compile cmd = self.get_compile_cmd() File "/Users/madhurjoshi/Library/Application Support/Sublime Text 3/Packages/FastOlympicCoding-master/Modules/ProcessManager.py", line 51, in get_compile_cmd for x in opt: TypeError: 'NoneType' object is not iterable Running g++ "/Users/madhurjoshi/Competitive Programming/Competions/e.cpp" -o "/Users/madhurjoshi/Competitive Programming/Competions/e" && "/Users/madhurjoshi/Competitive Programming/Competions/e" Running g++ "/Users/madhurjoshi/Competitive Programming/Competions/e.cpp" -o "/Users/madhurjoshi/Competitive Programming/Competions/e" && "/Users/madhurjoshi/Competitive Programming/Competions/e"

how to correct it please help sir (and what to chose in build system)

npanuhin commented 4 years ago

Please do the following and send the result:

1) Open console Ctrl + ` 2) Paste two commands:

sublime.log_commands(True)
sublime.log_input(True)

3) Open your file and press Ctrl + b 4) If the window does not open, press Ctrl + Shift + p to open the menu and select FastOlympicCoding: Run 5) Paste all console data to https://gist.github.com or https://pastebin.com and put a link here

Also, please provide your settings file (Tools -> {Cpp}FastOlympicCoding -> settings). I think that you did not change the default settings, so the user part will be enough, however, if you change the default settings - add the default settings file as well. (It will also be great if you put them on pastebin or gist)

Make sure you press Ctrl + b while the .cpp (.py) file is open and active.

madhur1846 commented 4 years ago

Please do the following and send the result:

  1. Open console Ctrl + `
  2. Paste two commands:
sublime.log_commands(True)
sublime.log_input(True)
  1. Open your file and press Ctrl + b
  2. If the window does not open, press Ctrl + Shift + p to open the menu and select FastOlympicCoding: Run
  3. Paste all console data to https://gist.github.com or https://pastebin.com and put a link here

Also, please provide your settings file (Tools -> {Cpp}FastOlympicCoding -> settings). I think that you did not change the default settings, so the user part will be enough, however, if you change the default settings - add the default settings file as well. (It will also be great if you put them on pastebin or gist)

Make sure you press Ctrl + b while the .cpp (.py) file is open and active.

i don't know sir how but now its working perfectly. But can u tell me how can we stop to load all previous test case when we press ctrl + b

npanuhin commented 4 years ago

I think the only way to do this is to manually delete all tests. There is a button at the beginning of each test: edit -> delete