lukeme / gobible

Automatically exported from code.google.com/p/gobible
1 stars 0 forks source link

/home/linuxos32/Desktop/go33/SFM\ACT.sfm (No such file or directory) Path issue in linux, now it is // we need in linux \ #167

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Linux OS Ubuntu 12.04 - Executed the Colletions.txt file.

GoBibleCreatorVersion is 2.4.3

From Terminal window I ran the command.

java -Xmx128m -jar "/tmp/GoBible/GoBibleCreator.jar" 
"/home/linuxos32/Desktop/go33/Collections.txt"
----------------------------------
GoBibleCreator Version: 2.4.3
----------------------------------
Base Dir: /home/linuxos32/Desktop/go33/
Source Path: SFM
File ACT.sfm
Error: /home/linuxos32/Desktop/go33/SFM\ACT.sfm (No such file or directory)
/tmp/GoBible/GoBibleCore/ui.properties  exists:True
Error parsing collections file. Can't understand line<1>:
Info: Bible text exported from Paratext.
Couldn't find book: ACT
Exception in thread "main" java.lang.NullPointerException
 at GoBibleCreator.parseCollectionsFile(GoBibleCreator.java:1139)
 at GoBibleCreator.create(GoBibleCreator.java:374)
 at GoBibleCreator.main(GoBibleCreator.java:281)

What is the expected output? What do you see instead?

Error: /home/linuxos32/Desktop/go33/SFM\ACT.sfm (No such file or directory)

/home/linuxos32/Desktop/go33/SFM/ACT.sfm 

String sFilename = folder.toString() + "\\" + listOfFiles[i].getName();

String sFilename = folder.toString() + "/" + listOfFiles[i].getName();

in your code hardcoded the \\ in linux this will / work.

Windows its worked -> \\

For Linux -> /

What version of the product are you using? On what operating system?

Version: 2.4.3. Ubuntu 32bit 12.04

Please provide any additional information below.
GoBibleCreator.java Line no 591.

Based on the OS we need to change this line..

Original issue reported on code.google.com by sam147d...@gmail.com on 11 Sep 2012 at 10:15

Attachments:

GoogleCodeExporter commented 8 years ago
/go33/SFM\ACT.sfm

\ is the issue.

/go33/SFM/ACT.sfm 

Original comment by sam147d...@gmail.com on 11 Sep 2012 at 10:18

GoogleCodeExporter commented 8 years ago
A patch is available, but the source code has not yet been updated.

See http://code.google.com/p/gobible/issues/detail?id=165

I'm waiting for our programmer to return to the UK after the summer vac from 
University.

Original comment by DFH...@gmail.com on 11 Sep 2012 at 12:33

GoogleCodeExporter commented 8 years ago
Is this issue fixed?

please send a mail if the issue is completed. 
samdoss@live.com

Original comment by jhanu...@gmail.com on 7 Nov 2012 at 1:48

GoogleCodeExporter commented 8 years ago
Not yet fixed in trunk. Waiting for programmer to have some free time.

Original comment by DFH...@gmail.com on 7 Nov 2012 at 5:07

GoogleCodeExporter commented 8 years ago

Original comment by DFH...@gmail.com on 12 Dec 2012 at 3:38

GoogleCodeExporter commented 8 years ago
Could you also check if the binary I sent you fixes this issue?

Daniel

Original comment by daniel.s...@gmail.com on 14 Dec 2012 at 3:21

GoogleCodeExporter commented 8 years ago
Will do - or rather I'll ask Greg Hellings - as I don't have a Linux system.

Original comment by DFH...@gmail.com on 14 Dec 2012 at 9:12

GoogleCodeExporter commented 8 years ago

Original comment by DFH...@gmail.com on 14 Dec 2012 at 2:05