[brailleblaster] Re: The directories are still not being created on Windows.

  • From: "Vic Beckley" <vic.beckley3@xxxxxxxxx>
  • To: <brailleblaster@xxxxxxxxxxxxx>
  • Date: Tue, 13 Mar 2012 09:14:34 -0400

See my comments below.


-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of John J. Boyer
Sent: Tuesday, March 13, 2012 8:55 AM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: The directories are still not being created on
Windows.

Hi Vic,

I think you have encountered a different bug. The method that opens 
files on the command line needs modification.

VB: Yep, you are right. I can still translate the file when I open from
within BB. It is only when I open it from the command line that it won't
work.

I thought you had created the folders manually. I'll also bet that the 
reason they aren't created on my machine is that Java doesn't like the 
C: at the beginning of the path.

VB: I deleted them manually before each test just to see if they would be
created by BB. My installation is on C: so I don't know what would happen if
it wasn't. What is your Windows drive letter? It really shouldn't matter
since the drive letter is part of the %AppData% environment variable. You
are using that, right?


John

On Tue, Mar 13, 2012 at 08:37:25AM -0400, Vic Beckley wrote:
> John,
> 
> First, I translated a document with the translate subcommand. The brlblst
> folder wasn't present. All the folders were created properly.
> 
> Next, I started BB with a filename on the command line. The folders
weren't
> present. BB opened the document fine. The folders were created correctly.
I
> translated the file using alt-T, T and BB disappeared as previously. It
> looks like this bug has crept back in. Here is the error that was present
in
> the command prompt window:
> 
> C:\Users\Vic\Downloads\BrailleBlaster>java -jar brailleblaster.jar
serv.xml
> Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
String
> index out of range: -1
> at java.lang.String.substring(Unknown Source)
> at org.brailleblaster.wordprocessor.NewDocument.fillOutBody(Unknown
Source)
> at org.brailleblaster.wordprocessor.DocumentManager.createDocument(Unknown
> Source)
> at org.brailleblaster.wordprocessor.DocumentManager.translate(Unknown
> Source)
> at org.brailleblaster.wordprocessor.BBMenu$48.widgetSelected(Unknown
Source)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
> at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
> at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
> at org.brailleblaster.wordprocessor.DocumentManager.<init>(Unknown Source)
> at org.brailleblaster.wordprocessor.WPManager.<init>(Unknown Source)
> at org.brailleblaster.Subcommands.<init>(Unknown Source)
> at org.brailleblaster.Main.main(Unknown Source)
> C:\Users\Vic\Downloads\BrailleBlaster>
> 
> Lastly, I started BB without any options on the command line. The folders
> weren't present. The folder structure was created just as it should have
> been. I typed in some text and translated it. This worked and all the
files
> were created in the brlblst\temp folder.
> 
> Conclusions:
> The file creation is working as expected here. Can you tell me how to
break
> it?
> The bug of not being able to translate an opened file has reappeared.
> 
> 
> Best regards from Ohio, U.S.A.,
> 
> Vic
> E-mail: vic.beckley3@xxxxxxxxx
> 
> 
> -----Original Message-----
> From: brailleblaster-bounce@xxxxxxxxxxxxx
> [mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of John J. Boyer
> Sent: Tuesday, March 13, 2012 8:10 AM
> To: brailleblaster@xxxxxxxxxxxxx
> Subject: [brailleblaster] The directories are still not being created on
> Windows.
> 
> subdirs() works on Linux but not on Windows. If you start BrailleBlaster 
> from the command line you can see the message about not opening the log 
> file, but the  path looks correct. The brlblst directory is not in 
> appData\roaming 
> 
> John
> 
> -- 
> John J. Boyer; President, Chief Software Developer
> Abilitiessoft, Inc.
> http://www.abilitiessoft.com
> Madison, Wisconsin USA
> Developing software for people with disabilities
> 
> 

-- 
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities



Other related posts: