Window repositions itself upon resize
Linear frequently and seemingly arbitrarily finds itself in a state in which its window is repositions itself upon being resized. Restarting does not resolve the issue; it simply goes away after a while.
Here is a gif: http://g.recordit.co/AWZkd78L8I.gif.
Strange. This has never happened to me. Is there anything else you can tell us that might help us figure out what is going on?
No, I can't think of anything useful to add. It happens quite sporadically. I looked for an open Electron issue for it but didn't find one.
Strange indeed! It seems like the x coordinate snaps back to some offset. Linear delegates all the window manipulation (e.g. resize) to Electron. It's basically an Electron window floating around.
I'll try bumping the electron version to see if it fixes it.
There was actually a pretty big version gap: went from 0.35.4 to 1.2.2. I hope it fixes the issue. I made a new release: https://github.com/mikaa123/linear/releases/tag/1.4.0.
I'll give it a try. The issue sometimes takes a few days to happen.
With 1.4.0, Linear no longer launches, even after a restart.
there is likely some out-dated code, or calls to deprecated APIs with such a major version gap.
Weird, it works on my machine. I'll give it a closer look.
How about now: https://github.com/mikaa123/linear/releases/tag/1.4.1 🔥
No, still crashes.
@clintonbloodworth , what version of Mac OS X are you using?
Also, @clintonbloodworth, can you confirm which installation method you used to get the new version installed on your machine?
- [ ] installing via homebrew
- [ ] installing via zip download/extract
- [ ] installing via git clone/npm install?
I'm using OS X 10.11.5.
I tried installing using Homebrew, and by extracting the zip and moving its contents to /Applications.
@clintonbloodworth , can you try to see if it runs or crashes if you clone/npm install:
$ git clone https://github.com/mikaa123/linear.git
$ cd linear && npm install && npm start
If it crashes, please attach any errors you see in the console.
It worked. And now Linear installed using Homebrew starts.
Awesome 👍 . Let us know if the resize problem comes back.
Thanks. I'll keep an eye on it.
Unfortunately, it's still happening.
In fact, I tried reinstalling 1.4.1 (just to be sure I was using 1.4.1) and, after doing so, Linear no longer launches: http://recordit.co/7Zf7F62PEH. Reverting to 1.3.0 solves this.
@clintonbloodworth , we still need to investigate why linear is not launching via the normal installation routines. After you removed v1.4.1 you probably needed to run the same code suggested above:
$ git clone https://github.com/mikaa123/linear.git
$ cd linear && npm install && npm start
and then, for some mysterious reason, v1.4.1 would work for you (even the version installed in the "normal" way).
Sorry for the delay. When I run:
$ rm -rf ~/.linear
$ open /Applications/linear.app
Linear crashes.
But when I run:
$ rm -rf ~/.linear
$ git clone https://github.com/mikaa123/linear.git
$ cd linear && npm install && npm start
$ kill $(ps aux | grep 'linear' | awk '{print $2}')
$ open /Applications/linear.app
it doesn't. Though I've discovered that it doesn't work properly:
- It doesn't appear in the system menu bar.
-
tutorialShownis not set totrue, so the tutorial shows at every launch. - The system dialog,
You are opening the application “linear” for the first time. Are you sure [...], appears at every launch.
I tried running Linear from a new user account, but the results were the same.