oni icon indicating copy to clipboard operation
oni copied to clipboard

Editor font size won't change? (Ubuntu)

Open pinkyblinky opened this issue 8 years ago • 6 comments

Oni Version: 0.3.4 Neovim Version (Linux only): 0.3.4 Operating System: ubuntu 16.04 LTS

Describe your issue

Hello all! I want to increase the editor font size.

Expected behaviour

When I configured other options (ui.fontSize for instance), as soon as I saved the altered value the changes took effect. So when I repeated the process for editor.fontSize, I expected the same behaviour.

Actual behaviour

What actually happened was... nothing :(. I followed the advice on issue #2033 (regenerating the config.js and config.tsx) but the changes still never seemed to take effect. Please help :'(

oniissue

Steps to reproduce

Try changing the editor.fontSize in config.tsx

pinkyblinky avatar May 25 '18 20:05 pinkyblinky

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

oni-bot avatar May 25 '18 20:05 oni-bot

P.S. I have Oni installed on both Mac and Windows as well. Neither seemed to suffer from this issue. Perhaps this is something specific to the linux distribution?

pinkyblinky avatar May 25 '18 20:05 pinkyblinky

Hmm... using the '%' key, it appears that this bracket is paired with the one on line 5. I tried taking it out just to see but got a 'Unexpected token export' from ~/.config/oni/config.js

On Fri, May 25, 2018, 5:03 PM Amadeus Folego [email protected] wrote:

@pinkyblinky https://github.com/pinkyblinky Seems like a parse error on line 19

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/onivim/oni/issues/2248#issuecomment-392186604, or mute the thread https://github.com/notifications/unsubscribe-auth/AULwMAOxHk_MiHkBC7ftw_iF8waCbKjgks5t2HGPgaJpZM4UOjhu .

pinkyblinky avatar May 25 '18 21:05 pinkyblinky

Thanks for investigating @pinkyblinky !

Perhaps this is something specific to the linux distribution?

That does sound like the case, given that it doesn't reproduce on Windows / Mac.

We could try looking at the logs:

  • Control+Shift+P -> Debug: Open Developer Tools
  • In the console, run: Oni.log.enableDebugLogging(): image
  • Make a configuration change and save. You should see these two lines in the developer tools: image Would be curious if one or both aren't showing up.

If you're up for debugging, this would be a good place to toss a breakpoint: https://github.com/onivim/oni/blob/master/browser/src/Services/Configuration/ConfigurationEditor.ts#L76

This file is responsible for listening for configuration changes / transpiling / picking up the new config, so would be a good place to look.

bryphe avatar May 26 '18 01:05 bryphe

Thank you for the prompt response :)

I opened the debug area as you suggested and then modified and saved the config.tsx file. Both of the entries you highlighted appear to be there:

editconfiglog

I will look into debugging...

Interesting side note, I did a fresh install of ubuntu 16.04 LTS on a virtual box on windows and then installed Neovim and Oni. Then I tried to update the configuration there, and it actually behaved as expected, no bugs. Perhaps it is some odd setting I've tripped over in my current system...

I will look into building Oni from source and throwing in that breakpoint...

pinkyblinky avatar May 26 '18 21:05 pinkyblinky

Ok, so I built Oni from source on my Ubuntu machine. And after starting it with 'yarn run launch' I altered the font size in the config.tsx file and it actually altered its appearance accordingly. Not sure exactly why the installed .deb version of Oni exhibited this bug specifically on my machine (but on others it did not), yet the built-from-source version worked perfectly fine on the very same machine. Anyway, I do now have a version of Oni that seems to be working. So I guess we can close this issue now?

Thank you everyone for your feedback and support on this issue :) I appreciate it!

pinkyblinky avatar May 27 '18 01:05 pinkyblinky