LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-03-2017, 09:26 PM   #1
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.2/-current
Posts: 185

Rep: Reputation: 13
Using Kate text editor to write new .csv and can't save file


I copied a bunch of comma-separated data from the web and pasted to a blank doc in Kate, the text editor. I select the "save as..." and for the name I type "flights.csv" for the new file and I get the following error window message:

Quote:
The document could not be saved, as it was not possible to write to /home/deret/Documents/flight.csv
Check that you have write access to this file or that enough disk space is available.
I tried again without .csv and got the same error.

I am working in my own directory. What do I need to do to write Kate output to files in my /home?
 
Old 10-03-2017, 09:39 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
I don't know whether this helps and I have little experience with *.csv files other than with programs that natively export/import to *.csv, but I opened Kate and went to Tools-->Highlighting, and csv was not one of the choices.

A web search for kate linux csv file turned up nothing helpful.

As a shot in the dark, did you try saving it with a *.txt extension?

Last edited by frankbell; 10-03-2017 at 09:42 PM.
 
Old 10-03-2017, 09:45 PM   #3
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Usually I have in a session into Kate about 2000 files open. All saving all the way.

I think that you either you have problems with the permissions to that specific folder, either you have lines too long, as too many characters in a single line.

There is a limit, in my settings it is 16384 chars, and over it, the file is open read-only and it cannot be modified or saved.

Long story short, this is not a limitation specific to Kate, all text editors have a similar one, excluding the binary editors.
 
Old 10-03-2017, 09:47 PM   #4
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by frankbell View Post
I don't know whether this helps and I have little experience with *.csv files other than with programs that natively export/import to *.csv, but I opened Kate and went to Tools-->Highlighting, and csv was not one of the choices.

A web search for kate linux csv file turned up nothing helpful.

As a shot in the dark, did you try saving it with a *.txt extension?
Kate can work with almost any file type, .CSV, .PHP, .CPP, etc. It is basically something like a Kdevelop Lite, and to be honest, my favorite editor.
 
Old 10-04-2017, 06:18 PM   #5
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.2/-current
Posts: 185

Original Poster
Rep: Reputation: 13
I made a different file and saved it as .txt and without an extension. Still same error. The file only had "this is a practice file" in it. I'm guessing the problem is a permissions thing. What would I have to change on Kate to have permissions to write to my own /home folder?
 
Old 10-04-2017, 06:34 PM   #6
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
@deretsigernu

Strange, there is no need to make configurations for. And I cannot confirm your issue, here Kate works like a Hero.

You are pretty sure that that folder is writable, or your /home partition, if you use one, is not mounted read-only?

Could happen on-fly this thing, if there are heavy errors on filesystem.

Last edited by Darth Vader; 10-04-2017 at 06:35 PM.
 
Old 10-04-2017, 08:46 PM   #7
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.2/-current
Posts: 185

Original Poster
Rep: Reputation: 13
I tried to copy a file that was in a different folder through Dolphin and it wouldn't work. Then in the terminal I used
Code:
mv file /home/deret/Documents
and I got a permissions error. I checked this:

Code:
bash-4.2$ ls -la /home/deret/Documents
total 8
drwxr-xr-x  2 root  root  4096 Sep 23 11:49 .
drwx------ 26 deret deret 4096 Oct  4 20:38 ..
I'm not sure, but looks right, isn't it?
 
Old 10-04-2017, 09:00 PM   #8
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Your /home/deret/Documents is owned by root. Of course that you have files permission errors!

Long story short: NEVER play as root in the users homes, and if you do it, you should chown according your interventions. IF you do not do that, shit happens.

Last edited by Darth Vader; 10-04-2017 at 09:07 PM.
 
1 members found this post helpful.
Old 10-04-2017, 09:34 PM   #9
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.2/-current
Posts: 185

Original Poster
Rep: Reputation: 13
hmm... I don't remember doing anything like that. There are other directories in /home/deret and I don't have problems with them. --okay, I do remember where I had moved some files around and probably used mkdir as root and didn't think about the fallout. So anyway, now I need to fix it. Thanks for the help!

Last edited by deretsigernu; 10-04-2017 at 09:36 PM. Reason: add more info
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how do I open two different documents in the Kate text editor at the same time? Gregg Bell Linux - Newbie 8 05-05-2014 11:32 PM
[SOLVED] installation from source - kate (advanced text editor) aylalisa Linux - Newbie 2 03-21-2014 12:15 PM
LXer: Getting Started With the Kate Text Editor: Kate For Coders LXer Syndicated Linux News 0 04-01-2009 11:40 PM
Kate (text editor) on Cygwin - how to? icic Linux - Software 4 08-21-2008 12:25 PM
Comparing two csv files and write different record in third CSV file irfanb146 Linux - Newbie 3 06-30-2008 09:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration