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

Save/Load layout not working on Ubuntu Gnome 15.10 #49

Closed
johnnydvc opened this issue Jan 22, 2016 · 8 comments
Closed

Save/Load layout not working on Ubuntu Gnome 15.10 #49

johnnydvc opened this issue Jan 22, 2016 · 8 comments
Assignees
Labels

Comments

@johnnydvc
Copy link

Hey.
I'm having trouble saving and loading the terminal layouts.
First I split the terminal window no matter how and then
I save the file. When I reopen terminix and try
to load that layout I get the following error message
Could not load session due to unexpected error. Found '5' when expecting '"'. (Line 18:23)
Thanks

@gnunn1 gnunn1 added the bug label Jan 22, 2016
@gnunn1
Copy link
Owner

gnunn1 commented Jan 22, 2016

Thanks, I'll have a look over the weekend.

@gnunn1
Copy link
Owner

gnunn1 commented Jan 22, 2016

Can you post your json file, I gave reproducing it a quick try with some different layouts and it was working OK for me, I'm probably missing something simple which will be immediately obvious with your file.

@johnnydvc
Copy link
Author

Ok, here's the file.

1_2.json.zip

2016-01-22 23:12 GMT+01:00 Gerald Nunn notifications@github.com:

Can you post your json file, I gave reproducing it a quick try with some
different layouts and it was working OK for me, I'm probably missing
something simple which will be immediately obvious with your file.


Reply to this email directly or view it on GitHub
#49 (comment).

@gnunn1 gnunn1 self-assigned this Jan 23, 2016
@gnunn1
Copy link
Owner

gnunn1 commented Jan 23, 2016

Thanks, it looks the problem is with this line:

        "position": 0,5,

Are you in a locale that uses a comma as the decimal separator?

@johnnydvc
Copy link
Author

I guess so. locale is
LANG=de_DE.UTF-8
Numbers are written as
123.456.789,000
Do I have to change the json file on my own?

@gnunn1
Copy link
Owner

gnunn1 commented Jan 24, 2016

If you want to keep those sessions you saved, then yes you will need to hand edit them. The next release will fix this issue in the sense that it will write out the correct value from then on but I can't do anything about already existing files, sorry about that.

@johnnydvc
Copy link
Author

I want to thank you a lot for planing to fix/enhance this.
The sessions are no problem, they were just for testing the feature.
Terminix has a good chance of replacing terminator for me now.
Have you found someone to package vgrep for other distros yet? Looks interesting to.
Greetings

@vabada
Copy link

vabada commented Feb 7, 2017

This same thing just happened to me, with:

Versions
	Terminix version: 1.4.2
	VTE version: 0.42
	GTK Version: 3.18.9

Terminix Special Features
	Notifications enabled=0
	Triggers enabled=0
	Badges enabled=0

under Ubuntu 16.04

In line:

"ratio": 0.5,
Could not load session due to unexpected error.
Found '5' when expecting '"'. (Line 33:24)

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

No branches or pull requests

3 participants