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

Sendcode not working with gnome-terminal on Ubuntu #166

Open
gautam-sabnis opened this issue May 25, 2022 · 2 comments
Open

Sendcode not working with gnome-terminal on Ubuntu #166

gautam-sabnis opened this issue May 25, 2022 · 2 comments

Comments

@gautam-sabnis
Copy link

gautam-sabnis commented May 25, 2022

Hi. I am having trouble making sendcode work on Ubuntu. I have already installed xdotool.
In the config file, I tried both "linux_terminal": "gnome-terminal-server" and "linux_terminal": "Gnome-terminal".

I get the following error in the console -

Traceback (most recent call last):
File "/opt/sublime_text/Lib/python38/sublime_plugin.py", line 1451, in run_
return self.run(**args)
File "/opt/sublime_text/Packages/Default.sublime-package/settings.py", line 122, in run
AttributeError: 'NoneType' object has no attribute 'replace'
Unable to open /home/user/.config/sublime-text/Packages/User/SendCode.sublime-settings
Traceback (most recent call last):
File "/home/user/.config/sublime-text/Packages/SendCode/send_code.py", line 29, in
sublime.set_timeout_async(lambda: sender.send_text(code))
File "/home/user/.config/sublime-text/Packages/SendCode/code_sender/sender.py", line 94, in send_text
self.send_to_terminal(cmd)
File "/home/user/.config/sublime-text/Packages/SendCode/code_sender/sender.py", line 167, in send_to_terminal
send_to_terminal(cmd)
File "/home/user/.config/sublime-text/Packages/SendCode/code_sender/terminal/init.py", line 12, in send_to_terminal
osascript(TERMINAL, cmd)
File "/home/user/.config/sublime-text/Packages/SendCode/code_sender/applescript.py", line 5, in osascript
subprocess.check_call(["osascript"] + list(args))
File "./python3.3/subprocess.py", line 542, in check_call
File "./python3.3/subprocess.py", line 523, in call
File "./python3.3/subprocess.py", line 819, in init
File "./python3.3/subprocess.py", line 1448, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: 'osascript'

What am I missing? Thanks!

@gautam-sabnis gautam-sabnis changed the title Sendcode not working gnome-terminal on Ubuntu Sendcode not working with gnome-terminal on Ubuntu May 25, 2022
@randy3k
Copy link
Owner

randy3k commented May 25, 2022

For some reason, the trace back suggested that you are using a Mac and sending code via AppleScript. Could you confirm that you have selected the correct program to send to?

@gautam-sabnis
Copy link
Author

Thanks for the response. Strange that it says I am using a Mac! I am on Ubuntu and sending the code to the gnome-terminal. I changed prog in send code settings from terminal to tmux, and it worked. It can only send code to tmux and not otherwise. Is there a way to get it working purely in the terminal?

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