Kdevelop doesn't show the editor window - editor

I'm trying to open a project file in the main editor of kdevelop, but it is not able to show it. I have tried also with a new file, but still the same. It seems that there is a window separator in the middle of the grey window.
I have remove the project, purge and reinstall the application but it doesn't work. The Editor menu in the tools bar doesn't have nothing inside.
I'm using kubunu 11.10, KDE 4.7.3 and KDevelop 4.2.3
Does anybody had this problem?

I think your projects tool view is not enabled. If yes, Go to Window, select Add Tool View. Then select Projects. Then try opening up your project file (something.kde4). It should show up as a folder in the Projects Pane. Expand it and double click your required source file to get it in the editor.

I had the same problem with KDE 4.7.4 and kDevelop 4.2.3.
I think, its a bug of kdevelop. after closing all projects and importing the working project again I tried to open a file. But kDevelop was crashed. After restarting kdevelop, everything is working fine and the file is shown in the editor!

Related

Cannot preview in this file - active scheme does not build this file : SwiftUI on Xcode 11 in CatalinaOS

I opened Landmark App using SwiftUI on Xcode 11 in macOS Catalina(10.15) and while opening the Canvas Editor for .swift files containing SwiftUI is showing
Cannot preview in this file - active scheme does not build this file
Try Again, Diagonistics option or restarting Xcode not solving the problem.
If this is a new project coming from a copied folder and inside an iCloud folder, just close Xcode and relaunch it. The sync was not yet done.
Select the Scheme that has the current file to Preview
You should go through Xcode and Apple SDKs Agreement and you can do it by running the following in terminal in mac:
sudo xcodebuild -license
After doing that reopen your project.
I experienced the same issue. All I did was to copy the "StartingPoint" folder out of the downloaded folder and relaunched the project. It worked!!!
I bumped into this too, following the Landmarks tutorial. When I created the 'CircleImage.swift' it was not letting me preview it, with the above error message.
You can see the current Scheme you're using by going to Product > Scheme. I've got macOS selected.
Clicking on the CircleImage.swift file loads it, and in the rightmost sidebar it shows the Attributes inspector. A few buttons to the left of that is "Show the File inspector".
There, you can see this file's chosen "Target Membership". My problem was that "Landmarks (macOS)" was not checked. Checking this immediately got the Preview working.
I imagine I could also have changed my Product's Scheme to iOS and it would have worked, as that was already checked.
I encountered the same error for some of my SwiftUI View files when trying to preview on Canvas. What fixed the issue was I copied the code within the current file, deleted the file, created a new SwiftUI View file under the same name and pasted the original code. Hope that helps!
Creating a new folder in Documents/Desktop and copying the files over also resolves the issue.
This problem happened to me when I copied a folder into my project with the "Create folder reference" option instead of the "Create groups" option.
The problem was solved when I deleted the folder from project and copied the folder again with the latter option.
I just upgraded to both Monterey 12.3, and Xcode 13.3, and boom ran into this issue. Things were fine before the upgrade. Nothing above helped.
Creating a new project does help. So the only thing I found is to create a new project, and just add the files from the old project to the new one. Yuk.
EDIT: I hadn't rebooted the computer (mac mini), after reboot things were fine again.
In the schemes I was able to select, it contained only one scheme. Reopening the folder in a folder that's not in the Downloads directory made live editing work for me
Restarting my PC worked for me.
The described issue happened to me after cloning a project via git (no iCloud syncing as described in another answer - so I definitely know that the sync itself was completely done).
Funny enough restarting Xcode did the trick.
Just closing and opening the project isn't enough.
I found that the file I was trying to preview was not listed in Target -> Build Phases -> Compile Sources. Once I manually added the file, Preview worked. I had drag and dropped a directory into the project, and for some reason Xcode had not added those files to that list.
Try About this mac -> Storage -> Manage -> Developer, Then delete Xcode cache from here then restart Xcode...This worked out for me
Make sure the file you are trying to preview is in your app (the folder with the same name as your project).
I was able to fix newly created files not previewing by moving the file into my project.
Another solution:
Make sure you select file type Swift UI instead of Swift File when you create the file.

Starting project on Windows and now cloning on Mac made disappear iOS Bundle Options tabs

As the title says, we were developing a Xamarin Forms app on Windows Platform. Now we need to implement the iOS version so we cloned the solution from git to our Mac machine. But if I go to Project.iOS > right click > Options then the window does not contain the iOS tabs such as iOS Bundle Options, iOS IPA Options and so on. You can look the normal behaviour and this particular case in attached images.
How is it possibile? How can i solve this?
I compared the .csproj file of my project with the .csproj file of a new project created on the Mac and they seems different only for this line:
Wrong .csproj line:
<OutputType>Library</OutputType>
Right .csproj line:
<OutputType>Exe</OutputType>
So I changed that line and now it works.

iOS My application.xcodeproj causes and display red text, Then I unable to open project?

I have facing this issue when I was changing project name and copying my project from one mac to another. There are some red texts indicate the missing files from the project source codes(But I have all files in Project folder) I have used cocoapods in this project. How to avoid these?
Here I have shown my project screen shot.
As per your description... you must be having some issue in your project.pbxproj file. Please check that file. Common issue happens in that file when you try to merge different branches having conflicts in project structure.
There could be different reasons of this:
It may happen because the xcode is open and the source folder is not available.
It may happen when source path is not found in your system and xcode shows that.
For resolving this, quiet xcode and reopen your source from .xcodeproj again, will resolve the problem.
Click on the file, then on the far top right of Xcode look under Identity and Type Check and see if the path to the file is correct. In my case is was not so I had to click on the small folder icon (not the arrow icon) and select the folder in finder.

Xcode file missing from the editors

Hello guys I am jumping into a really weird problem that most of my files are missing from the Xcode editor. I can still compile and run the app, also all the files are still there in my project folder, but I just cannot see them in the Xcode editor anymore. I can have them back to editor by open each file one by one, however when I close xcode and reopen everything is gone again. Can anyone help me please, this is the picture.Only few files left
Please disable the recent view button at bottom of xcode.
Go to your project folder from Finder and search for the missing file. Just drag and drop the files in yor xcode.
If files are missing from the project directory then you need to create the new files with same name.
Make sure you're not adding those files just by reference. You must copy it with correct target.

How to open Xcode Projects on a Different Mac/Hard drive

I recently got a new hard drive and reinstalled Mac OS X on it. I copied my entire folder with all my Xcode projects over. However when I tried booting up one by clicking the project file, Xcode opens up with only the project file present. All of the files with actual code on them are not appearing.
I tried to add files but even that would leave most of the files with code on them greyed out in the finder.
Question, what is the proper way of transferring these projects specifically in Xcode 7? I have not been able to find anything concrete.
So, the only way I know of to do this efficiently is to load up the project file XML in your favorite editor and go manually fixup the paths. I don't recommend this.
Unfortunately, the way to do it through the UI is for each file, you need to open the Utilities Bar on the right, select the file, then update the path via the little folder icon in the Identity and Type section. Here's an illustration:
Then repeat for every file in your project. Sorry.
i had this same issue i mean you could always manually transfer code through word documents or notes, but for me i had copied the entire project folder and the document transferred just fine just make sure you transfer all of the files with it and not just the one file for the project itself
delete the xcode application and reinstall it from the Mac App Store.

Resources