XVim icon indicating copy to clipboard operation
XVim copied to clipboard

No cursor in Playground

Open thewatts opened this issue 10 years ago • 41 comments

I'm new to XCode, as well as XVim, but I noticed that there isn't a cursor in Normal mode (at least, when I'm using this with XCode 6GM).

As a side note - thanks for a killer plugin!

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/4345370-no-cursor-in-playground?utm_campaign=plugin&utm_content=tracker%2F252770&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F252770&utm_medium=issues&utm_source=github).

thewatts avatar Sep 12 '14 18:09 thewatts

Give me some more information. You mean that it works with Xcode5 ? Are you using the latest 'master' branch?

JugglerShu avatar Sep 13 '14 07:09 JugglerShu

I'm seeing the same issue, but only in Playgrounds, not in actual project files.

I'm using d75c111e. I saw it in XCode 6-beta5, and still see it in XCode 6 GM (ver 6A313)

natw avatar Sep 13 '14 14:09 natw

I got the same problem in Xcode 6 GM playgrounds, but it disappeared in Xcode 6.1-beta (6A1027).

mudox avatar Sep 13 '14 19:09 mudox

I have the same problem. However, by including set blinkcursor in my .xvimrc, I actually get a non blinking cursor back.

mikijov avatar Sep 17 '14 01:09 mikijov

@mikijov thanks for that .xvimrc tip, it works for me now in playgrounds in Xcode 6 GM.

mattheworris avatar Sep 17 '14 19:09 mattheworris

I haven't solved the problem yet but I found the root cause. The view used in Playground is called 'IDEPlaygroundTextView' that is dervied from DVTSourceTextView which is used when coding in ObjC, C++, etc. I do not know the reason but IDEPlaygroundTextView does not use intrinsic cursor drawing operation (which is inherited from NSTextView), which makes it unable to draw the cursor as we expect. I'll fix it but please use the set blinkcursor workaround at the moment. (You may feel that it is strange that the cursor does not blink even it says blinkcursor but it is right behaviour because of the IDEPlaygroundTextView's behaviour described above.)

JugglerShu avatar Sep 19 '14 05:09 JugglerShu

I confirmed the bug disappear to revert the commit 223007359adf5cbbba30747f1086fede8b6f064e (Add blink cursor option. For #594). The blink cursor option feature disappear together, of course.

pebble8888 avatar Oct 01 '14 11:10 pebble8888

Hi, I have just committed the fix for this issue. Its in develop branch. Can you try that?

JugglerShu avatar Oct 12 '14 01:10 JugglerShu

Hello, thanks for the patch. It's working for me in playgrounds (xcode 6.0.1)

moshensky avatar Oct 12 '14 08:10 moshensky

The patch helped me too (6.0.1 6A317).

justinas avatar Oct 14 '14 15:10 justinas

I was also having this issue and the commit does seem to have fixed it.

aclissold avatar Oct 18 '14 15:10 aclissold

I'm still seeing this issue in the release version of Xcode 7

keith avatar Oct 02 '15 18:10 keith

Use set blinkcursor option for now. I'm investigating the problem.

JugglerShu avatar Oct 24 '15 16:10 JugglerShu

has this issue been fixed?

carrigmore avatar Nov 06 '15 10:11 carrigmore

I think this issue is fixed in XCode 7.2

nickkjordan avatar Mar 08 '16 19:03 nickkjordan

I'm on Xcode 7.3.1 and issue is still present in Playground and the .xvimrc work around is not working form me.

dkinzer avatar Jun 18 '16 20:06 dkinzer

Hello! Thanks so much for this plugin!

I am also seeing this issue in Xcode 8 beta and the work around is not working for me either

JuliaNocera avatar Jun 24 '16 03:06 JuliaNocera

@dkinzer I'm on Xcode 7.3.1 and ran into this issue. I cloned the repo and checked out the master branch at d0ee97d2a136d723d4a7ce4f9b515a8515db1d9f and the bug appears to have disappeared (meaning the cursor reappeared)

danzimm avatar Jun 30 '16 14:06 danzimm

@danzimm cursor still disappear at d0ee97d on my Xcode (7.3.1)

boboRAY avatar Jul 07 '16 12:07 boboRAY

+1 on my Xcode (7.3.1) I can't see the cursor in my playground

jkryanchou avatar Jul 11 '16 03:07 jkryanchou

No way to fix it ?

NextSeason avatar Jul 13 '16 18:07 NextSeason

I fixed it in dev7 branch for Xcode7.3.1. When you find a problem, plz report it.

pebble8888 avatar Jul 14 '16 14:07 pebble8888

I can confirm that @pebble8888's fix works.

humblehacker avatar Jul 28 '16 23:07 humblehacker

Hi, I am sorry for the beginner questions, but is this change already part of the master? Cause it is still not working for me. I'm new to git and just wondering how I can get the change.

what i tried was ---> git checkout -b dev 7 --->make but to no avail I'm just guessing here have no idea if thats how you do it.

mdm508 avatar Sep 11 '16 22:09 mdm508

This happens for me in XCode 8

haaakon avatar Sep 22 '16 11:09 haaakon

This issue is still there for XCode Version 8.0 (8A218a). I've tried adding set blinkcursor to .xvimrc, but it is not helping.

amandogra avatar Sep 22 '16 16:09 amandogra

XVim revision : 
OS Version : Version 10.11.5 (Build 15F34)
Xcode Version : 8.0

--- .xvmrc ---
set blinkcursor


--------------

has the issue

amandogra avatar Sep 22 '16 16:09 amandogra

@JugglerShu Does not seem that the fixes for XCode 7.x fixes the problem that has reappeared for XCode 8.

haaakon avatar Sep 22 '16 21:09 haaakon

I confirmed dev7 branch doesn't fix the problem in Xcode8. Please try pebble8888/develop branch. I just cherry-picked @JessThrysoee's work.

pebble8888 avatar Sep 23 '16 01:09 pebble8888

I'm seeing this too with Xcode 8 (8A218a). @pebble8888 installing your branch worked for me 👍

jakecraige avatar Sep 24 '16 13:09 jakecraige