XVimProject / XVim

Xcode plugin for Vim keybindings
MIT License
5.16k stars 595 forks source link

No cursor in Playground #622

Open thewatts opened 10 years ago

thewatts commented 10 years ago

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).
JugglerShu commented 10 years ago

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

natw commented 10 years ago

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)

mudox commented 10 years ago

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

mikijov commented 9 years ago

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

mattheworris commented 9 years ago

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

JugglerShu commented 9 years ago

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.)

pebble8888 commented 9 years ago

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.

JugglerShu commented 9 years ago

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

moshensky commented 9 years ago

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

justinas commented 9 years ago

The patch helped me too (6.0.1 6A317).

aclissold commented 9 years ago

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

keith commented 8 years ago

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

JugglerShu commented 8 years ago

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

carrigmore commented 8 years ago

has this issue been fixed?

nickkjordan commented 8 years ago

I think this issue is fixed in XCode 7.2

dkinzer commented 8 years ago

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

JuliaNocera commented 8 years ago

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

danzimm commented 8 years ago

@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)

boboRAY commented 8 years ago

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

jkryanchou commented 8 years ago

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

NextSeason commented 8 years ago

No way to fix it ?

pebble8888 commented 8 years ago

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

humblehacker commented 8 years ago

I can confirm that @pebble8888's fix works.

mdm508 commented 8 years ago

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.

haaakon commented 7 years ago

This happens for me in XCode 8

amandogra commented 7 years ago

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 commented 7 years ago
XVim revision : 
OS Version : Version 10.11.5 (Build 15F34)
Xcode Version : 8.0

--- .xvmrc ---
set blinkcursor

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

has the issue

haaakon commented 7 years ago

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

pebble8888 commented 7 years ago

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

jakecraige commented 7 years ago

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

amandogra commented 7 years ago

Thanks @pebble8888 your develop branch is showing the cursor.

https://github.com/pebble8888/XVim/tree/develop

Tylerc230 commented 7 years ago

@pebble8888 I pulled your branch. The cursor now appears for me in normal mode but all the text on the current line disappears. When I move the cursor to a different line, the text reappears.

shenlin-tomtom commented 7 years ago

@pebble8888 Thanks so much. It works my cursor is back :)

cedricwzy commented 7 years ago

@pebble8888 Thanks man, it's working like a charm.

Tylerc230 commented 7 years ago

@pebble8888 This is working for me now. @JugglerShu Any chance we can get this merged into master?

JugglerShu commented 7 years ago

@Tylerc230 Yes. I'll merge it as soon as possible.

jianghaoyuan2007 commented 7 years ago

@amandogra It works for me. Thanks so much!

daniel-noul commented 7 years ago

@pebble8888 it works for me xcode 8.1. thanks~

rudedogg commented 7 years ago

PR https://github.com/XVimProject/XVim/pull/1016, trying to reference the PR in issues to make it easier for @JugglerShu to close them once it's merged.

jmcclell commented 7 years ago

I still experience this problem even with the patch from pebble8888/XVimProject on xcode 8.2.1, alas.

I uninstalled the previous version, rebuilt and installed, and I do get a cursor. But as soon as I view the timeline of a MetalKit view the cursor disappears in all of my editors and doesn't return.

MarcoSero commented 7 years ago

I'm still seeing the issue (Xcode 8.2.1)