SublimeInput icon indicating copy to clipboard operation
SublimeInput copied to clipboard

Problem in taking input

Open MotiBaadror opened this issue 7 years ago • 6 comments

i have just added sublime Input sublime package file into installed package folder and restarted sublime text and when i press ctrl+alt+b for this code #include #include <bits/stdc++.h> using namespace std; int main() { string s; cin>>s; cout<<s; }

C:/Program Files (x86)/mingw-w64/i686-7.1.0-posix-dwarf-rt_v5-rev2/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.1.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot open output file C:\Users\Moti Baadror\Desktop\youtube/tet1.exe: Permission denied collect2.exe: error: ld returned 1 exit status

MotiBaadror avatar Sep 01 '17 07:09 MotiBaadror

Can you share the config file you are using for SublimeInput?

mavidser avatar Sep 02 '17 11:09 mavidser

i am using this file https://github.com/mavidser/SublimeInput/releases/download/3.1.1/Sublime.Input.sublime-package output:ECHO[Finished in 1.2s]

MotiBaadror avatar Sep 02 '17 14:09 MotiBaadror

I am not able to reproduce this problem. Can you post a sample program which gives this error, and any settings you might have configured in Preferences > SublimeInput > Settings ?

mavidser avatar Sep 02 '17 19:09 mavidser

I see that you're using minGW compiler, but your source uses bits/stdc++ header. Are you sure you've included this non-standard header?

Or you can change the compiler in Preferences > SublimeInput > Settings - User like here

mavidser avatar Sep 02 '17 20:09 mavidser

#include #include <bits/stdc++.h> using namespace std;

/*input hello */ int main() { string s; cin>>s; cout<<s; return 0;

} configure file { "build_schemas" : { "cpp" : { "shell_cmd" : "g++ "${file}" -o "${file_path}/${file_base_name}" && "${file_path}/${file_base_name}"", "input_start" : "/input", "input_end" : "/" } } } i have added this at the path you have shown and it is saaved as name"sublimeInput.sublime-setting i didnt add that keymap config when i try to add preference-> package setting->sublimeInput->keybinding user abd after pasting this file there [ { {

  •    "keys": ["ctrl+alt+b"], "command": "input"		 +        "keys": ["ctrl+alt+b"], "command": "sublime_input"
    
  • },
  • {
  •    "keys": ["ctrl+alt+c"], "command": "cancel_sublime_input"
    
    } } ] ] it is showing "error trying to parse file:expected value in packages\user\default(Windows)..sublime-keymap:2:17

MotiBaadror avatar Sep 03 '17 03:09 MotiBaadror

[ { {

  •    "keys": ["ctrl+alt+b"], "command": "input"		 +        "keys": ["ctrl+alt+b"], "command": "sublime_input"
    
  • },
  • {
  •    "keys": ["ctrl+alt+c"], "command": "cancel_sublime_input"
    
    } } ] ] can you check this file its showing Error: Parse error on line 2: [ { { - "keys": ----------------^ Expecting 'STRING', '}', got '{' in the Json lint

MotiBaadror avatar Sep 03 '17 03:09 MotiBaadror