Sometimes in Xcode, when I am towards the end of a file, the editor starts scrambling the lines. I have a video of it below. You can see when I close the bracket the text goes back to normal:
http://vimeo.com/18678901
Any idea if there are ways around this? Restarting Xcode doesn't help.
Looks like a bug. Please file that on bugreporter.apple.com along with the version of Xcode you were using at the time. If it's reproducible and you can attach the project/file to the bug, please do. For extra credit, post the bug # here so I can follow up on it, thanks.
P.S. Please check the Console for silent exceptions from Xcode. My colleague reminded me to ask you about this.
Related
How can I get rid of the unnecessary line breaks in the Java code editor (see screenshot). This formatting seems to apply just to one project. When I create new projects, there is no extra line spacing.
Thanks!
I believe this is related to Inlay Hints. I had the same issue and it was driving me nuts, then after a restart a bunch of code hints showed up. While useful in the right circumstance, it was a bit baffling when all I could see were these ghost lines.
After disabling "Code vision" the issue resolved itself.
Go to settings (Ctrl-Alt-S), under Editor-Inlay Hints there is a checkbox for Code vision. Uncheck that and see if that helps.
This appears to be an issue with the 2022.1 version of IDEA. I had the same symptoms and downgraded to 2021.3. Poof, problem solved. Hopefully they fix this in a newer version soon.
This is indeed related to Editor -> Inlay Hints -> Code vision settings, but for me, it is the Code author option specifically that is adding the seemingly-needless lines.
It seems like IntelliJ creates affordance for the Code author value, but (for me) the value is empty so there is actually nothing showing.
I leave the other Code vision options enabled and just disable the Code author and this appears to be working well so far.
I am following the Atomic Kotlin course. I have understood the concept and my output is correct, however Intellij IDEA complains that the outputs are different. Even when I copy and paste from the answer. Please see screenshot.
I have tried using the print() method instead of println(), but it didn't help.
Go to Settings->Editor->General and uncheck the Ensure an empty line.. property.
see the following screenshot:
There is a straightforward workaround on how one can avoid this problem. Changing the AtomicKotlin/Programming Basics/Data Types/Exercise 2/test/output.txt manually to add a new line at the end of the text should fix the test.I've also found a YouTrack ticket with the problem description. According to it, EduTools 4.2 version release should fix it. Maybe it worth to upvote or comment on the ticket.
I'm following this tutorial about Instruments. The tutorial provides a sample project to test the steps described on it.
The problem is that, when I check "Show Obj-c Only" and "Hide System Libraries" flags, all the lines in call tree list is hidden, but the code in the project is written in Obj-C. Is there something I have to change in the configuration to see the project lines as in the tutorial?
Call tree list image taken from the tutorial showing how it must to be:
Screenshot of my instruments execution:
Ok, I don`t really know what happens here, but now it works. How?
What I did:
Erase the app in the device
Kill xCode ( using activity monitor )
Restart the computer ( Only restarting xcode didn't work )
Restart the device.
Clean the project
Try again.
May be is not the best answer, but it worked for me.
[UPDATE] The issue is there again, so I try this: Xcode 4 Instruments doesn't show source lines
And it works!
Recently I was using Aptana to view multiple files side by side. The unfortunate thing is that now I can not remove the editor (side by side) windows that are marked by red arrows. Also, you can obviously see that I have been trying to drag them away which is making the problem worse. I have tried to Google around but have found no solution. I can uninstall and reinstall Aptana, but if there is a fix I would rather know it and not have to go through a reinstallation process each time an issue like this arises.
Also I would like to add that I may be having trouble Googling the solution since I am not 100% sure on the name of the "editor tabs". Any help would be greatly appreciated.
My reputation is too low so here is a image link of my issue:
http://i.imgur.com/6K3Dq.png
The answer is extremely simple. If you ever run into the issue as shown in the picture above, simply open new files and drag them into the empty spaces that the extra "editor windows" are located. From there just close (x) out the window and it will remove the extra windows.
So, for an independent programming class I am working in Xcode. I am using stanford's iOS development course to create a calculator. However, recently, the item mainstoryboard.storyboard has been unable to save. I removed the entitlement, which allowed the other files to save, but the storyboard has still been unable to save. I looked around on the internet a good deal, and all I've been able to dig up is that the file might be corrupted. What do I do for this? Is there anything I'm missing? I don't know what kind of context I should be providing, so please tell me if there's something you want to see.
Try to clean your derived Data and try to clean and clean the build folder (you do this with alt+clean).
If you can't save the file again try to create a new project create a storyboard. If you can't create it on this way then you have to get to the Apple Dev Forums there is a bigger Problem then.
But anyway if you create Storyboard the App only runs on iOS 5+ Devices. Not the best option imho.
Clean all targets, close Xcode, reboot your mac. Then restart Xcode and create a new iPhoneStoryboard.storyboard and try again!
I've solved in this way this problem!
You can delete the storyboard by clicking on it in the left pane and press delete button. When prompted choose delete rather than removing reference only. Then use command+n and in the popped window, choose storyboard and name it as MainStoryboard (Xcode will add .storyboard for you).
Well, as it turns out, it was a problem with not having enough memory on the server. I've been looking at all the wrong things and can go back to working on my program. Thanks for all the help, too bad it was something else.