[SOLVED] Gedit and Kate's serious troubles in C++.
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
John_W, please do not make extreme assumptions. The Gfortran code is all in local files in one directory. All files have .f90 extension. While developing this program I used gedit editor, nothing else. I've had little trouble. I compiled everything. There are some high level problems that I could not resolve and I had to rethink the fortran because none of my potential consultants wants to mess with fortran. They all want C++. My overall fortran code is perhaps 5,000 lines long, maybe more. It is all about special functions. I initially made a decision to do it in fortran and now regret. Actually I had to convert some C++ code into fortran, for instance this: Librow FFT. Now I will use the original but that FFT code is a very small part of overall package. There is something in C++ code, apparently, that causes all these problems. I read two days ago (cannot find now where) that anjuta was designed specifically for C++. Very hard o believe. - Alex
I would go to VI asap. I also use qtcreator for c++. It is an IDE and works pretty well. You will need to set up the kits in qtcreator and, if done properly, you can ssh debug through the qtcreator IDE. I have never seen anything that resembles your issue but hope this helps.
A new development. Take a look. I enter the command: $vim sphere_perspective.cpp
It gives me this output:
Code:
E325: ATTENTION
Found a swap file by the name ".sphere_perspective.cpp.swp"
owned by: alex dated: Mon Oct 12 09:23:53 2015
file name: ~alex/GFORTRAN-APPS/SPHERE-DESIGN/sphere_perspective.cpp
modified: YES
user name: alex host name: alex-HP-ProBook-6555b
process ID: 3323
While opening file "sphere_perspective.cpp"
dated: Sun Oct 11 18:51:06 2015
(1) Another program may be editing the same file. If this is the case,
be careful not to end up with two different instances of the same
file when making changes. Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r sphere_perspective.cpp"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".sphere_perspective.cpp.swp"
to avoid this message.
Swap file ".sphere_perspective.cpp.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
I cannot find the file sphere_perspective.cpp.swp in this directory. As far as I know there is no other program editing the same file. What is it all? Some kind of Halloween joke?
What shall I do? Anybody with experience with this, please help.
Found a swap file by the name ".sphere_perspective.cpp.swp"
The filename has a leading dot, so it is a hidden file. You can see it with...
Code:
ls -a
Vim creates a temporary working file with this name format each time you open a file, and uses it to incrementally save your changes. Then, if your system is shutdown without closing the session, or if you have a power outage, for example, you can recover your work.
When you close a file the real file is updated and the swp file is removed.
So you must have shutdown with a vim session still open, or you are trying to open it in two editor sessions concurrently.
Easy fix - just read the options and tell it what you want it to do.
Last edited by astrogeek; 10-17-2015 at 01:56 PM.
Reason: tpos, typs, typos
Of course I read the options but since it was the first time I saw this (I've used VIM before for quite a while) I was very cautions and decided to ask for explanations. I really appreciate your help. Thanks, - Alex
I bought a new mouse (I mentioned it before in this thread) and nothing changed. It was a mouse from Best Buy, I think a reputable place; as I said nothing has changed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.