Forum > Unix

Source code regressions/corruption by Lazarus

<< < (2/2)

avra:
It seams you want to develop on Windows and deploy on Linux. If you can't make VM shared folders work, then most similar to your approach would be to copy files from Windows to Linux. You can use WinSCP or TotalCommander with TFTP plugin for that, and you will need to provide your SSH login credentials. Alternatively you can set FTP server on Linux and access files via some FTP client (like Total Commander), or use Novel NetDrive to map FTP dir to a local windows drive letter (unfortunately it is Win32 only application). While developing some GCC linux application some time ago, I used UltraEdit which could be set to edit files over FTP, compile from IDE and see all verbose GCC compilation output directly in IDE. I also don't see why don't you simply cross compile. It is not hard to set FPCUP or CodeTyphon for this task.

BigChimp:

--- Quote from: avra on May 27, 2014, 11:03:05 am ---It seams you want to develop on Windows and deploy on Linux. If you can't make VM shared folders work, then most similar to your approach would be to copy files from Windows to Linux.

--- End quote ---
As avra said you can use various approaches:
- FTP
- NFS (probably a bit tricky, you'd need an NFS client on Windows)
- SFTP (using SSH)
- SCP (using SSH)
- SMB/Samba (windows file sharing)

I would suggest using the latter as you can simply drag and drop from windows explorer to your linux machine.
SCP/SFTP is probably easiest to set up as you quite probably have a running SSH server; you'd only need a client program on your Windows machine such as WinSCP.

new2linux:
Sorry for the late answers. The result is a mishmash.

> Are 100% sure that the "native" windows project and
> all its files is in different directory than linux project
> and that linux project contains no symlinks?

yes. its is in a clean Xubuntu in virtualbox and I did not get shared folders working. there is no hidden connection.


> Does Virtualbox not support shared folders?

normally it does, but I could not get it to work. Vbox also shouldn't crash, but it regularly does.

> Having to cut and paste code between 'identical' but
> different files sounds like a maintenance nightmare.

Yes. For that reason I work exclusively in Windows and only test on Linux: to avoid the nightmare scenario.

Windows works better for me in every way.

> Watch the system clock.
> Maybe it changes for some reason?
> You get that message twice a year when the
> daylight saving changes.

daylight isn't the problem. the clock doesn't seem to be the problem.

the real problem is that I lose data when I shouldn't. after all, the file is open in Lazarus and I am working with it.

or maybe the problem is the clock, because I start out with a set of files received through email as a zip, extracted into a set of folders. so the issue could possibly arise from the WRONG interpretation of archived filetimes.

this would explain the prompts I get, but it doesn't explain the misterious corruption that subsequently occurs or seems to occur, as I can't pin down why edits get lost.



> They [shared folders] do in my virtual box with Ubuntu.
> It was a bit tricky to get it working

everything in Linux is more tricky than it needs to be. the solutions it offers are not the solutions needed. the system works gainst the user.


> you have to mount the shared folder in addition to
> enabling the shared folder in the VirtualBox additions.

I have seen this on the net. couldn't get it working. wasted enough time as it is. please give me a .vdi of a clean ubuntu, whatever... ;)


> It seams you want to develop on Windows and
> deploy on Linux.

yes. on both actually.


> If you can't make VM shared folders work, then
> most similar to your approach would be to copy
> files from Windows to Linux.

which is what I am doing, through email to set things up. then while editing I use copynpaste, always from Windows to the VM.


> I also don't see why don't you simply cross compile.
> It is not hard to set FPCUP or CodeTyphon for this task.

This would be good to have anyway. I'll look into this. Thanks.


> I would suggest using the latter [SMB/Samba
> (windows file sharing)] as you can simply drag
> and drop from windows explorer to your linux
> machine.

perhaps. but it seems like another promise. what hassles will that get me in to?

it seems to me I have pretty straightforward needs regarding Linux. hey, I am installing this in a VM, which the devs are probably using! this is the most easily tested platform! yet there is a neverending amount of shit to go through.

Anyway thank you all.

Rails:
OK, if I understand correctly, you are developing in Windows then copying the source to a Linux installation and compiling for Linux on the Linux machine. I do something similar, but on two different Linux machines, one 64 bit and the other 32. 

A sure fire way to have a problem with this sort of process is have the target machine's Lazarus installation up and running when you paste the source into its folder. If that is what you are doing, try killing Lazarus on the Linux box until you are done pasting stuff over from Windows.
 
Edit: I reread your original post. I misunderstood and didn't get that you are actually cutting and pasting between running apps. That isn't what I do, so my advice probably won't help, but I'll leave it up anyway, just in case.

Hmm, how do the different EOL characters impact things when cutting and pasting between Windows and Linux? 

Navigation

[0] Message Index

[*] Previous page

Go to full version