Subject:Can't add file to project Author:(Deleted User) Date:17 Apr 2007 07:11 AM
Hi John,
only files supported by Stylus Studio can be placed in a project (and by default .dita is not one of them).
In order to make it a recognized extension you should open one of these files (from File | Open, not by renaming an existing one) and when you see the dialog asking which Stylus module should be used to edit it, be sure to check the 'Always use this module for this file type'.
Subject:Can't add file to project Author:John Accardi Date:17 Apr 2007 07:28 AM
Hi Alberto,
Thanks for responding. There are about 100 such files in my project and they all have a *.dita extension. Only these three files are the problem. Do you have any idea why all the other ones work?
Subject:Can't add file to project Author:(Deleted User) Date:18 Apr 2007 05:32 AM
Hi John,
I have tried creating the same folder in a project and adding a file with the same name, and it worked: do you find a pattern that prevents those files from being added?
I.e., can they be added to a different folder? Can they be added if you change their names to be slightly different (one character shorter, one character different)? Is the folder a top-level one, or is it under another one?
Subject:Can't add file to project Author:John Accardi Date:18 Apr 2007 10:47 AM
Thanks again, Alberto.
I did try a number of renaming games as you suggest and have only been successful when I misspell the files I want in my project folder. The attachment shows that I had to use a double E (EE) in my 3 filenames. It will not work if the names are correctly spelled. This must be a SS bug and if I knew formally how to submit this bug, I would.
Subject:Can't add file to project Author:John Accardi Date:20 Apr 2007 06:00 AM
Hi Alberto,
Yes, I checked as you suggest, and there are no other files in the project with these names. I investigated a little further. I can manually edit the *.prj file and set the filenames to the desired spelling, save it, and then open it with SS. They do now appear as I want.
I can only suspect some bug when SS does this through the menus and how it displays in the GUI. This may or may not be relevant but, I was trying to put these files into a subfolder of a subfolder. Maybe being this deep has confused the code.
At least I know I can manually edit the *.prj file as a workaround.