Codesandbox-client: can't select all code

Created on 16 Aug 2017  路  23Comments  路  Source: codesandbox/codesandbox-client

Hi! Why can't select all the code and how to disabled minimap? This problem is in chrome, firefox works well
codesandbox

馃悰 Bug

Most helpful comment

Will come as an option @Radi123 馃槃

All 23 comments

Yes I saw this problem for first time yesterday at 11 PM UTC +03:00
Actually if you copy it (CTRL+C) All code'll be copied. The problem is in the cursor and selection. They're displayed wrong - some positions left.

@Radi123 yes all code'll be copied, but work is not comfortable

@Vill3m Yes. I'm trying to find the problem in the source & fix it, but we need expert in the sandbox.
Please help - @CompuIves

I think the problem is around lines 332 & 625 of /src/app/components/sandbox/CodeEditor/Monaco.js
https://github.com/CompuIves/codesandbox-client/blob/master/src/app/components/sandbox/CodeEditor/Monaco.js#L332

https://github.com/CompuIves/codesandbox-client/blob/master/src/app/components/sandbox/CodeEditor/Monaco.js#L625

Update: Or maybe in CodeEditor/monaco/MonacoReactComponent.js

Update: Or maybe in sandbox/CodeEditor/CodeMirror.js

Looking into it.

This is good info, thanks for the clear examples @Vill3m and @Radi123. What operating systems are you using?

Update:

I'm suspecting it has to do with the minimap, will disable it by default.

Okay, deployed a new version with minimap disabled. Could you verify if the issue has been fixed?

I'm using Windows 10.0.15063, Chrome 60 (v60.0.3112.101 64-bit) @CompuIves

Ah I see, I think this issue only happens on Windows. Does it also happen without the minimap? @Radi123

Aii, hmm. What does your console show after load? Also, could you take screenshot of this? Thanks for the quick responses! Really valuable.
screen shot 2017-08-16 at 16 25 40

@CompuIves
image

image

@CompuIves win7x64 chrome last version and chrome canary have this bug

Okay, I'm able to reproduce it using BrowserStack. Will find out what's causing this.

Think I found the cause, has to do with font families. Trying to fix it...

That's it! Deploying new version for now that disables font family editing.

Deployed, could you verify that it's fixed @Vill3m or @Radi123?

@CompuIves It's working)

Great!! Marking 'fixed' with https://github.com/CompuIves/codesandbox-client/commit/d45ff5cc8c4ffc172107b491bafe2124f3516d58. Thanks for the detailed bug reports.

Working! @CompuIves Now you can try to return the mini map by default - it was cool.

Will come as an option @Radi123 馃槃

Cool

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BingoRUS picture BingoRUS  路  3Comments

Haroenv picture Haroenv  路  3Comments

zocky picture zocky  路  3Comments

alansouzati picture alansouzati  路  3Comments

wojciechczerniak picture wojciechczerniak  路  3Comments