Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in taking input #17

Open
MotiBaadror opened this issue Sep 1, 2017 · 6 comments
Open

Problem in taking input #17

MotiBaadror opened this issue Sep 1, 2017 · 6 comments

Comments

@MotiBaadror
Copy link

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

@mavidser
Copy link
Owner

mavidser commented Sep 2, 2017

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

@MotiBaadror
Copy link
Author

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]

@mavidser
Copy link
Owner

mavidser commented Sep 2, 2017

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
Copy link
Owner

mavidser commented Sep 2, 2017

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

@MotiBaadror
Copy link
Author

#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
Copy link
Author

[
{ {

  •    "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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants