gvim - omnicompletion on remote ftp crashes - crash

Hello I have a problem using latest vim with omnicompletion while editing a file that is located remotely on ftp. :e ftp-address//it just hangs on "searching" and then outputs that it is missing a file after along time, the second time i try VIM crashes,
i've tried to look up on :help and googled but it does not seems to be a common problem. But I would like any suggestions on it.
While using it localy it works great.
thanks in advance.

to whom this may interest.
After searching and consulting I've found that this happened because of vim trying to find information on the server which took a long trip back and fourth for each file.
I've found another setup for windows who works well:
There is a program called winSCP.
it isn't the only one but this does it's jobs perfectly.
anyway it has a feature to sync any changes done in a local directory and upload it to the FTP server.
i used all vim features locally and it works fast and good :)

Related

UFT: SetCellData issue PbDataWindow for radio button

I have a radio button that is represented as a pbdatawindow, when I run setcelldata to pick an option it works fine on my laptop but fails on my colleagues laptop. If we try the run the command again on my colleagues laptop we get a fatal error from UFT.
The only difference between my UFT install and my colleagues is that my colleagues version is installed in French. Has anyone seen a similar issue?
PbWindow().PbDataWindow().SetCellData 1,1,""
Few things to try:
What version of uft are you using? - perhaps check for newer of see if there is a patch available?
Jump onto the microfocus knowledge base and see if there is anything around power builder.
You say the machines are the same but does that include every application too? In the past I've known that if you install applications after uft it can break its references. Try uninstalling and reinstalling uft. There is a repair option but uninstall/reinstall is normally more thorough.
Try and clear out all your temp and user settings.
In your user profile backup then remove all folders with mercury, hp, Hewlett-Packard and microfocus.
-The go to %temp% and clear evetything.
Try and pin down the problem - Has your colleague tried the English version or uft? - if that works, is it an option? (everyone use the same version)
If it doesn't work it suggests it's your colleague's machine as opposed to uft.
Is evetything such as the resolution and browser/application versions the same? Or simply try another French localised machine?
What's the fatal error? Does it provide any clues on why it failed?
Finally, You're paying a lot for commercial software. Don't suffer in silence :-)
Log a support call with microfocus. It's a bit long winded but Back in the day they used to be pretty good at helping. They'll ask you for logs and knowing how to get that is good to know.
There's more to try - let me know how you get on.

For webStorm or phpStorm, is there a way to automatically run Sync with remote server when opening a file?

I'm new to using PHPStorm. I find myself overwriting stuff in the remote server because I forgot to sync and download the newest thing from the server.
My question is: is there a way to automatically run sync every time I open up a file? I figure this will solve my carelessness issue. Or if anyone has any better solution, feel free to list them.
Thanks!!!

Sshfs, Textmate & Rails project, very slow

I am a Linux user and I recently bought a MAC.
I work on a big project that needs to run on a dedicated server.
With Gedit and SSHFS, I had no problem to load the Rails project, same when I create a new controller/model from the command line, refreshing the files tree of Gedit is instantaneous, no slowdowns.
I installed Homebrew, then fuse4x and sshfs. I mount my server like on linux:
sshfs my.server.tld:/home/me Sshfs/my.server.tld/ -o 'volname=MyServer'
so far so good.
I open Textmate then I load my project ... disaster, two minutes+ to load the whole project
I'm switch another window... back to textmate... refresh again with the focus. But fixed with Remate after some research.
But now when creating new resources from command line, I need to refresh whole project for getting new files and it can take two minutes and more
Tried expandrive, same issue.
What the problem ? Textmate ? Sshfs on mac ?
I have googled long time, and most of people doesn't seem to have slowdowns with sshfs
I am a little depressed I had always dreamed to use TextMate !
EDIT:
So, this is definitely TextMate.
I have tried with Sublime Text 2 and it work very very good (better than gedit :p)
Save/open/project refresh are very fast
And even with an NFS share through a VPN it work good.
Both.
TextMate can be very slow and beachball-happy when working over slow networks or networks with big latency. Some years ago, when Fuse was ported to Mac OS X, a plugin was created that inhibited a few features to make TextMate more responsive in such cases. Here it is, I've never used it, though, so no guarantees.
I've never managed to enjoy using SSHFS on Mac OS X: slow save, slow copy, slow open… it was never worth the trouble, even on local network or using Expandrive.
You should try to start textmate from a different directory, so that it writes temp files to local disk.

How to remotely develop software?

Suppose I have a server that runs on Linux on which I would like to develop software (mainly OCaml, C/C++ and Java).
Is there a way to "remote develop" these things? I mean an IDE that allows me to modify files remotely (they are then uploaded when modified and saved) and to compile through SSH (basically invoking make or omake).
I was looking for something that makes this process transparent to the developer, without caring of doing things by hand. I'm used to use Eclipse so I wonder if a plugin to achieve this exists or if are there other choices?
Mind that it may happen that the local machine it not able to build software I intend to (for example for OCaml) so it should rely just on remote connection.
Thanks in advance
You can use X11 forwarding. Even if you are connecting from a Windows machine.
If you are on Linux, connecting with ssh -Y might work right out of the box for you:
ssh -Y user#your_server
eclipse &
Well the simplest idea I can think of, though it is rather brute force would be to just open up a file share to the server and then edit the file directly through Eclipse.
If that doesn't work for Java at least you could make use of Maven to do some of those tasks. I am less certain about invoking Make though.
I think your answer is IDE-centric.
KDE's ioslaves support access over both SFTP and SSH (using fish, which uses a Perl script uploaded to the remote machine). I believe Gnome also has a virtual file system (gvfs) which supports remote filesystem access.
My recommendation, therefore, is to choose an IDE which supports a virtual filesystem that can operate over SSH/SFTP and allows you to specify the build command. You would then only need to specify the build command which would get its output from the remote make command (for example, vim has a makeprg option which can be set to any arbitrary command).
Depending on how 'remote' this is; why not ssh in and run the IDE remotely over X?
Using a build tool (Hudson for example) you could put a build agent on your remote server, check your changes into your repository as normal, and have it do a build when you check in changes (it will either do a repository hook or poll for changes, probably). Your build process will be the same, it will simply be automated. :-)
emacs has tramp, which lets you both open and save remote files, and open a shell on a remote system. Working with tramp is almost exactly like working with local files, except for the filename. To open 'foo.c' on the machine 'bork' as user 'joe' I open it with the standard emacs commands, giving it the pathname /joe#bork:foo.c
I use vim for remote development. (Well, I use vim also non-remote.)
If building is the problem, have you thought about simply using an automated build system where you commit to svn and the system then automatically builds the software? I've heard many good things about these sorts of systems, although I haven't quite tried any out myself.
As for remote development, a SVnDAV solution might be reasonable. It basically commits your every save and is completely transparent to the text editor you're using. However a probably much nicer solution would simply be to use a networked drive/directory and edit files remotely. On all unix-based systems this should work completely transparently to both the developer and the text editor.
Your choice of IDE will have the most impact on the answer to "can I?". If your IDE of choice is CLI based than you can always just SSH in, fire up screen (so that your CLI session is persistent across SSH sessions), and have at it!
Use vim or emacs since they will offer you speed. I know there is a learning curve associated with these editors; but once you get comfortable in any of them; you will be able to work on them as good as with Eclipse or any other IDE.
If you already have a linux server then I would suggest setting up a simple VPN server. I have done this in the past and it works pretty well. This way you can connect and modify/build your files with any "local" OS. I did this cause I use mac, pc and linux through various parts of the day and in multiple locations, so the VPN allowed me to edit files remotely w/out having to allow file sharing over the internet.
There are plenty of tutorials about how to achieve this even if you are newer to linux. I use ubuntu server on my linux box and here are the tutorial I have used.
http://www.ubuntugeek.com/howto-pptp-vpn-server-with-ubuntu-10-04-lucid-lynx.html
Netbeans 7.3 has a new feature which addresses your problem (and mine). Here's the tutorial.
https://netbeans.org/kb/docs/cnd/remotedev-tutorial.html
note: I realize it has been 3 years since this question was asked so the answer may be irrelevant to #Jack now.
One IDE that supports exactly your language set is Nuclide. It adds some packages to Atom and is used internally in Facebook exactly as you have described - full-fledged remote development in C++, Java, and Ocaml.
If a friendly file editor is enough for you then I'd recommend to use Jupyter.
Super fast installation
Built in server/file editor that starts with one command

TextMate/Macfusion combo for mounting projects over SSH

Here is my workflow: I use Macfusion to mount a server over SSH, and then edit the root directory of the project in TextMate (using mate /Volumes/server/projectdir). I have a plug in installed that disables refreshing on refresh. This works ALMOST perfectly--the only thing I have problems with is "Find in Project": it's REALLY slow. Has anyone run into this problem before and been able to find any solutions? Currently I go to terminal when I have to do a search, but it would be great to be able to do it in TextMate.
Thanks!
Find in Project is slow no matter what. You probably want something like AckMate