From: Stefan F. <ste...@we...> - 2012-02-27 09:54:25
|
I have rewritten the Configuration system for rails. I intend to release 1.7.0 today, so it would be great to get some feedback soon if the OS specific storage solution works without hassles for Windows and Mac Stefan Major changes: There are two major changes for users: * The configuration settings are stored in OS specific directories: A) Unix-Systems (except Mac): ~/.rails (with ~ equals content of system property user.home) B) Mac OS-Systems: ~/Library/Preferences/net.sourceforge.rails (again with ~ equals system property user.home) C) Windows-System: First it tries to locate the common application data folder (something like C:\\Documents and Settings\\username\\Application Data). There it uses the subfolder rails. This is done using System.getEnv("APPDATA"). If this fails the user directory is found using System.getEnv("USERPROFILE"), as user.home has a known unfixed bug on Windows system (see http://bugs.sun.com/view_bug.do?bug_id=4787931 * The profile system is (hopefully) easier to use now: There are predefined profiles: pbem equal to the previous default) and prettyUI and ORDocking. If a user changes the settings and wants to apply them, the new profile will be stored inside the configuration folder and will be available for selection (in addition to the predefined) at the next start. * Internally it was rewritten from scratch and the profiles are a tree which has the root profile at the top. All profiles below only store the delta to its parent. User profiles will always link to a predefined profile as a parent to avoid users building deep structures. |
From: Erik V. <eri...@xs...> - 2012-02-27 14:11:50
|
Stefan, Is there an option to import my current configuration, or can I move it manually, or must I completely recreate it? Erik. > -----Original Message----- > From: Stefan Frey [mailto:ste...@we...] > Sent: Monday, February 27, 2012 10:54 AM > To: Development list for Rails: an 18xx game > Subject: [Rails-devel] New configuration system > > I have rewritten the Configuration system for rails. > > I intend to release 1.7.0 today, so it would be great to get some feedback > soon if the OS specific storage solution works without hassles for Windows > and Mac > > Stefan > > Major changes: > > There are two major changes for users: > > * The configuration settings are stored in OS specific directories: > > A) Unix-Systems (except Mac): > ~/.rails (with ~ equals content of system property user.home) > > B) Mac OS-Systems: ~/Library/Preferences/net.sourceforge.rails > (again with ~ equals system property user.home) > > C) Windows-System: > First it tries to locate the common application data folder (something like > C:\\Documents and Settings\\username\\Application Data). There it uses > the subfolder rails. > This is done using System.getEnv("APPDATA"). > > If this fails the user directory is found using System.getEnv("USERPROFILE"), > as user.home has a known unfixed bug on Windows system (see > http://bugs.sun.com/view_bug.do?bug_id=4787931 > > * The profile system is (hopefully) easier to use now: > > There are predefined profiles: pbem equal to the previous default) and > prettyUI and ORDocking. > > If a user changes the settings and wants to apply them, the new profile will > be stored inside the configuration folder and will be available for selection (in > addition to the predefined) at the next start. > > * Internally it was rewritten from scratch and the profiles are a tree which > has the root profile at the top. All profiles below only store the delta to its > parent. > > User profiles will always link to a predefined profile as a parent to avoid users > building deep structures. > > > ---------------------------------------------------------------------------- -- > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Stefan F. <ste...@we...> - 2012-02-28 07:38:15
|
Erik: you should first save a new config file. This creates the rails directory in your application data folder. Then copy your existing file there and change the filename extension to .rails_profile This should work. If it does not you can add profile.parent = root as an additional line inside your file. Hope that works. Stefan Erik Vos <eri...@xs...> schrieb: Stefan, Is there an option to import my current configuration, or can I move it manually, or must I completely recreate it? Erik. > -----Original Message----- > From: Stefan Frey [mailto:ste...@we...] > Sent: Monday, February 27, 2012 10:54 AM > To: Development list for Rails: an 18xx game > Subject: [Rails-devel] New configuration system > > I have rewritten the Configuration system for rails. > > I intend to release 1.7.0 today, so it would be great to get some feedback > soon if the OS specific storage solution works without hassles for Windows > and Mac > > Stefan > > Major changes: > > There are two major changes for users: > > * The configuration settings are stored in OS specific directories: > > A) Unix-Systems (except Mac): > ~/.rails (with ~ equals content of system property user.home) > > B) Mac OS-Systems: ~/Library/Preferences/net.sourceforge.rails > (again with ~ equals system property user.home) > > C) Windows-System: > First it tries to locate the common application data folder (something like > C:\\Documents and Settings\\username\\Application Data). There it uses > the subfolder rails. > This is done using System.getEnv("APPDATA"). > > If this fails the user directory is found using System.getEnv("USERPROFILE"), > as user.home has a known unfixed bug on Windows system (see > http://bugs.sun.com/view_bug.do?bug_id=4787931 > > * The profile system is (hopefully) easier to use now: > > There are predefined profiles: pbem equal to the previous default) and > prettyUI and ORDocking. > > If a user changes the settings and wants to apply them, the new profile will > be stored inside the configuration folder and will be available for selection (in > addition to the predefined) at the next start. > > * Internally it was rewritten from scratch and the profiles are a tree which > has the root profile at the top. All profiles below only store the delta to its > parent. > > User profiles will always link to a predefined profile as a parent to avoid users > building deep structures. > > > _____________________________________________ -- > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 >_____________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel _____________________________________________ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _____________________________________________ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Erik V. <eri...@xs...> - 2012-02-28 12:53:42
|
Stefan, That doesn’t work yet. First, ‘pbem’ is always preselected in the startup screen. How can I make it default to my profile? Second, when I select ‘My’, I’m getting an exception: DEBUG: Trying to locate InputStream: data/Properties.xml DEBUG: Opened config xml, filename = Properties.xml INFO : Loading properties from file data/profiles/LIST_OF_PROFILES INFO : Loading properties from file data/profiles/root INFO : Loading properties from file data/profiles/pbem.predefined INFO : Loading properties from file version.number DEBUG: Trying to locate InputStream: data/GamesList.xml DEBUG: Language=en, country=US, locale=en_US INFO : Loading properties from file C:\Users\Erik\AppData\Roaming\rails\My.rails_profile Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at rails.common.ConfigProfile.setParent(ConfigProfile.java:147) at rails.common.ConfigProfile.setParent(ConfigProfile.java:152) at rails.common.ConfigProfile.load(ConfigProfile.java:215) at rails.common.ConfigManager.changeProfile(ConfigManager.java:218) etc. The profile has the profile.parent=root line. It seems I have to do something in data/profile as well. Erik. From: Stefan Frey [mailto:ste...@we...] Sent: Tuesday, February 28, 2012 8:38 AM To: Development list for Rails: an 18xx game Subject: Re: [Rails-devel] New configuration system Erik: you should first save a new config file. This creates the rails directory in your application data folder. Then copy your existing file there and change the filename extension to .rails_profile This should work. If it does not you can add profile.parent = root as an additional line inside your file. Hope that works. Stefan Erik Vos < <mailto:eri...@xs...> eri...@xs...> schrieb: Stefan, Is there an option to import my current configuration, or can I move it manually, or must I completely recreate it? Erik. > -----Original Message----- > From: Stefan Frey [mailto:ste...@we...] > Sent: Monday, February 27, 2012 10:54 AM > To: Development list for Rails: an 18xx game > Subject: [Rails-devel] New configuration system > > I have rewritten the Configuration system for rails. > > I intend to release 1.7.0 today, so it would be great to get some feedback > soon if the OS specific storage solution works without hassles for Windows > and Mac > > Stefan > > Major changes: > > There are two major changes for users: > > * The configuration settings are stored in OS specific directories: > > A) Unix-Systems (except Mac): > ~/.rails (with ~ equals content of system property user.home) > > B) Mac OS-Systems: ~/Library/Preferences/net.sourceforge.rails > (again with ~ equals system property user.home) > > C) Windows-System: > First it tries to locate the common application data folder (something like > C:\\Documents and Settings\\username\\Application Data). There it uses > the subfolder rails. > This is done using System.getEnv("APPDATA"). > > If this fails the user directory is found using System.getEnv("USERPROFILE"), > as user.home has a known unfixed bug on Windows system (see > http://bugs.sun.com/view_bug.do?bug_id=4787931 > > * The profile system is (hopefully) easier to use now: > > There are predefined profiles: pbem equal to the previous default) and > prettyUI and ORDocking. > > If a user changes the settings and wants to apply them, the new profile will > be stored inside the configuration folder and will be available for selection (in > addition to the predefined) at the next start. > > * Internally it was rewritten from scratch and the profiles are a tree which > has the root profile at the top. All profiles below only store the delta to its > parent. > > User profiles will always link to a predefined profile as a parent to avoid users > building deep structures. > > > _____ -- > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _____ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel _____ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _____ Rails-devel mailing list Rai...@li... https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Stefan F. <ste...@we...> - 2012-02-29 23:38:55
|
Erik: sorry as stated below I was not sure if you should add profile.parent=root inside your profile, as I did send the mail from my phone. It turns out that you should NOT add that line (or remove it now). I forgot to add the cli option, it is available now (simply add -Dprofile=MY as argument). Your profile starts on my system now it only looks weird because of the usual encoding issues for the money symbol. ALL: I am currently on vacation and I had hoped for WLAN here, but no luck. How can someone create an apartment park in 2008 and forget to add that feature :-( So I am not able to upload the new release until my return next week. Unless someone else wants to volunteer, there is another release delay. But maybe it allows to fix some remaining issues. Stefan On 02/28/2012 01:53 PM, Erik Vos wrote: > Stefan, > > That doesn’t work yet. > > First, ‘pbem’ is always preselected in the startup screen. How can I > make it default to my profile? > > Second, when I select ‘My’, I’m getting an exception: > > DEBUG: Trying to locate InputStream: data/Properties.xml > > DEBUG: Opened config xml, filename = Properties.xml > > INFO : Loading properties from file data/profiles/LIST_OF_PROFILES > > INFO : Loading properties from file data/profiles/root > > INFO : Loading properties from file data/profiles/pbem.predefined > > INFO : Loading properties from file version.number > > DEBUG: Trying to locate InputStream: data/GamesList.xml > > DEBUG: Language=en, country=US, locale=en_US > > INFO : Loading properties from file > C:\Users\Erik\AppData\Roaming\rails\My.rails_profile > > Exception in thread "AWT-EventQueue-0" _java.lang.NullPointerException_ > > at rails.common.ConfigProfile.setParent(_ConfigProfile.java:147_) > > at rails.common.ConfigProfile.setParent(_ConfigProfile.java:152_) > > at rails.common.ConfigProfile.load(_ConfigProfile.java:215_) > > at rails.common.ConfigManager.changeProfile(_ConfigManager.java:218_) > > etc. > > The profile has the profile.parent=root line. > > It seems I have to do something in data/profile as well. > > Erik. > > *From:*Stefan Frey [mailto:ste...@we...] > *Sent:* Tuesday, February 28, 2012 8:38 AM > *To:* Development list for Rails: an 18xx game > *Subject:* Re: [Rails-devel] New configuration system > > Erik: > you should first save a new config file. This creates the rails > directory in your application data folder. > Then copy your existing file there and change the filename extension to > .rails_profile > This should work. If it does not you can add profile.parent = root as an > additional line inside your file. > Hope that works. > Stefan > > > > Erik Vos <eri...@xs... <mailto:eri...@xs...>> schrieb: > > Stefan, > Is there an option to import my current configuration, or can I move it > manually, or must I completely recreate it? > Erik. > >> -----Original Message----- >> From: Stefan Frey[mailto:ste...@we...] <mailto:[mailto:ste...@we...]> >> Sent: Monday, February 27, 2012 10:54 AM >> To: Development list for Rails: an 18xx game >> Subject: [Rails-devel] New configuration system >> >> I have rewritten the Configuration system for rails. >> >> I intend to release 1.7.0 today, so it would be great to get some feedback >> soon if the OS specific storage solution works without hassles for Windows >> and Mac >> >> Stefan >> >> Major changes: >> >> There are two major changes for users: >> >> * The configuration settings are stored in OS specific directories: >> >> A) Unix-Systems (except Mac): >> ~/.rails (with ~ equals content of system property user.home) >> >> B) Mac OS-Systems: ~/Library/Preferences/net.sourceforge.rails >> (again with ~ equals system property user.home) >> >> C) Windows-System: >> First it tries to locate the common application data folder (something > like >> C:\\Documents and Settings\\username\\Application Data). There it uses >> the subfolder rails. >> This is done using System.getEnv("APPDATA"). >> >> If this fails the user directory is found using > System.getEnv("USERPROFILE"), >> as user.home has a known unfixed bug on Windows system (see >> http://bugs.sun.com/view_bug.do?bug_id=4787931 >> >> * The profile system is (hopefully) easier to use now: >> >> There are predefined profiles: pbem equal to the previous default) and >> prettyUI and ORDocking. >> >> If a user changes the settings and wants to apply them, the new profile > will >> be stored inside the configuration folder and will be available for > selection (in >> addition to the predefined) at the next start. >> >> * Internally it was rewritten from scratch and the profiles are a tree > which >> has the root profile at the top. All profiles below only store the delta > to its >> parent. >> >> User profiles will always link to a predefined profile as a parent to > avoid users >> building deep structures. >> >> >> > > ------------------------------------------------------------------------ > > > -- >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> > > ------------------------------------------------------------------------ > > >> Rails-devel mailing list >> Rai...@li... <mailto:Rai...@li...> >> https://lists.sourceforge.net/lists/listinfo/rails-devel > > ------------------------------------------------------------------------ > > > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > > ------------------------------------------------------------------------ > > > Rails-devel mailing list > Rai...@li... <mailto:Rai...@li...> > https://lists.sourceforge.net/lists/listinfo/rails-devel > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > > > > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Stefan F. <ste...@we...> - 2012-03-04 07:56:02
|
Further updates to the config mechanism: * I have added the mechanism to store config information inside of subfolders inside the rails configuration directory: Use SystemOS.get().getConfigurationFolder(String sub, boolean create) This returns a file object that points to the subfolder. If create is set to true, it is created if it does not exist before. It it does not exist or fails due to other reasons it returns null. I used that to store all user profiles in a subfolder called profiles. Erik: Please copy your "my" profile into that subfolder! * Profiles are now sorted in the selection box first on type (predefined first followed by user) and second by name. * A recent mechanism was added, that is essentially a property file that is loaded at the start of rails automatically and that gets saved as soon as the properties object gets changed. Use Config.getRecent(String key) to retrieve a value and Config.storeRecent(String key, String value) to store a value, which triggers the storage. The file that is saved is rails.recent in the top rails configuration folder. This is used to keep the profile selection persistent. However it can still be overwritten by a cli setting (-Dprofile=...) Stefan |
From: Erik V. <eri...@xs...> - 2012-03-04 13:51:36
|
As it was not clear to me how to create 'profiles' from within Rails, I have done it manually. I hope you are going to provide complete migration instructions once this new configuration structure gets released!\ Erik. > -----Original Message----- > From: Stefan Frey [mailto:ste...@we...] > Sent: Sunday, March 04, 2012 8:56 AM > To: rai...@li... > Subject: [Rails-devel] Further updates to Rails configuration > > Further updates to the config mechanism: > > * I have added the mechanism to store config information inside of > subfolders inside the rails configuration directory: > > Use > SystemOS.get().getConfigurationFolder(String sub, boolean create) > > This returns a file object that points to the subfolder. > If create is set to true, it is created if it does not exist before. > It it does not exist or fails due to other reasons it returns null. > > I used that to store all user profiles in a subfolder called profiles. > > Erik: Please copy your "my" profile into that subfolder! > > * Profiles are now sorted in the selection box first on type (predefined first > followed by user) and second by name. > > * A recent mechanism was added, that is essentially a property file that is > loaded at the start of rails automatically and that gets saved as soon as the > properties object gets changed. > > Use > Config.getRecent(String key) > to retrieve a value > > and > Config.storeRecent(String key, String value) to store a value, which triggers > the storage. > > The file that is saved is rails.recent in the top rails configuration folder. > > This is used to keep the profile selection persistent. > However it can still be overwritten by a cli setting (-Dprofile=...) > > Stefan > > > ---------------------------------------------------------------------------- -- > Virtualization & Cloud Management Using Capacity Planning Cloud computing > makes use of virtualization - but cloud computing also focuses on allowing > computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Stefan F. <ste...@we...> - 2012-03-05 14:16:50
|
Erik: what do you mean manually? Editing files? Creating new profiles is now automatically done each time someone uses the saveas.. button. This only requires choosing a new profile name and it gets automatically available. But maybe it is too magic now? Still migration instructions will be included as they are very simple: Change extension and copy it into the profiles subfolder of the application folder. However I doubt that there have been many (non-eclipse and/or git) users of the previous setup(s) for configurations as that required migration every time a new version was installed, without any instructions for that provided. Stefan On 03/04/2012 02:51 PM, Erik Vos wrote: > As it was not clear to me how to create 'profiles' from within Rails, I have > done it manually. > I hope you are going to provide complete migration instructions once this > new configuration structure gets released!\ > > Erik. > >> -----Original Message----- >> From: Stefan Frey [mailto:ste...@we...] >> Sent: Sunday, March 04, 2012 8:56 AM >> To: rai...@li... >> Subject: [Rails-devel] Further updates to Rails configuration >> >> Further updates to the config mechanism: >> >> * I have added the mechanism to store config information inside of >> subfolders inside the rails configuration directory: >> >> Use >> SystemOS.get().getConfigurationFolder(String sub, boolean create) >> >> This returns a file object that points to the subfolder. >> If create is set to true, it is created if it does not exist before. >> It it does not exist or fails due to other reasons it returns null. >> >> I used that to store all user profiles in a subfolder called profiles. >> >> Erik: Please copy your "my" profile into that subfolder! >> >> * Profiles are now sorted in the selection box first on type (predefined > first >> followed by user) and second by name. >> >> * A recent mechanism was added, that is essentially a property file that > is >> loaded at the start of rails automatically and that gets saved as soon as > the >> properties object gets changed. >> >> Use >> Config.getRecent(String key) >> to retrieve a value >> >> and >> Config.storeRecent(String key, String value) to store a value, which > triggers >> the storage. >> >> The file that is saved is rails.recent in the top rails configuration > folder. >> >> This is used to keep the profile selection persistent. >> However it can still be overwritten by a cli setting (-Dprofile=...) >> >> Stefan >> >> >> > ---------------------------------------------------------------------------- > -- >> Virtualization& Cloud Management Using Capacity Planning Cloud computing >> makes use of virtualization - but cloud computing also focuses on allowing >> computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel > > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Erik V. <eri...@xs...> - 2012-03-01 20:48:14
|
OK, it now works. Thanks, Stefan. Erik. > -----Original Message----- > From: Stefan Frey [mailto:ste...@we...] > Sent: Wednesday, February 29, 2012 11:45 PM > To: rai...@li... > Subject: Re: [Rails-devel] New configuration system + new release is delayed > > Erik: > sorry as stated below I was not sure if you should add profile.parent=root > inside your profile, as I did send the mail from my phone. > > It turns out that you should NOT add that line (or remove it now). > > I forgot to add the cli option, it is available now (simply add -Dprofile=MY as > argument). Your profile starts on my system now it only looks weird because > of the usual encoding issues for the money symbol. |
From: Erik V. <eri...@xs...> - 2012-03-13 14:47:03
|
Stefan, After I changed a property item, I was again caught by the exception that prevented me to run Rails: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at rails.common.ConfigProfile.setParent(ConfigProfile.java:147) at rails.common.ConfigProfile.setParent(ConfigProfile.java:152) at rails.common.ConfigProfile.load(ConfigProfile.java:215) at rails.common.ConfigManager.changeProfile(ConfigManager.java:218) etc. (I first clicked Apply and then Save/Apply). As I still don't know what is causing this problem, I changed the code to catch it, by allowing the ConfigProfile.setParent() parent argument to be null. Now at least I can do some work again! Erik. |
From: Stefan F. <ste...@we...> - 2012-03-13 14:50:59
|
Erik: have you changed the property with a text-editor or have you used the UI? Could you please send the incriminating property file, but most likely it is still the one you have created/manipulated outside the UI. I will fix this (and the other remaining bug) as soon as I return. Stefan On 03/13/2012 03:46 PM, Erik Vos wrote: > Stefan, > > After I changed a property item, I was again caught by the exception that prevented me to run Rails: > > Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException > at rails.common.ConfigProfile.setParent(ConfigProfile.java:147) > at rails.common.ConfigProfile.setParent(ConfigProfile.java:152) > at rails.common.ConfigProfile.load(ConfigProfile.java:215) > at rails.common.ConfigManager.changeProfile(ConfigManager.java:218) > etc. > > (I first clicked Apply and then Save/Apply). > > As I still don't know what is causing this problem, I changed the code to catch it, by allowing the ConfigProfile.setParent() parent argument to be null. > Now at least I can do some work again! > > Erik. > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |
From: Erik V. <eri...@xs...> - 2012-03-13 16:14:27
Attachments:
My.rails_profile
|
Stefan, I changed it through the UI (I guess that's my mistake...) The new version was correctly saved in profiles, and looks OK to me. It works after I applied my fix. It's a mystery to me why that 'parent' is null. (I pressed Save/Apply without changing the name, I think I just closed that popup at that point.) All I changed was setting the splash screen to "no", because it got in the way while debugging. New property file attached. Erik. > -----Original Message----- > From: Stefan Frey [mailto:ste...@we...] > Sent: Tuesday, March 13, 2012 3:51 PM > To: rai...@li... > Subject: Re: [Rails-devel] New configuration system > > Erik: > have you changed the property with a text-editor or have you used the UI? > Could you please send the incriminating property file, but most likely it is still > the one you have created/manipulated outside the UI. > > I will fix this (and the other remaining bug) as soon as I return. > > Stefan > > On 03/13/2012 03:46 PM, Erik Vos wrote: > > Stefan, > > > > After I changed a property item, I was again caught by the exception that > prevented me to run Rails: > > > > Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException > > at rails.common.ConfigProfile.setParent(ConfigProfile.java:147) > > at rails.common.ConfigProfile.setParent(ConfigProfile.java:152) > > at rails.common.ConfigProfile.load(ConfigProfile.java:215) > > at > > rails.common.ConfigManager.changeProfile(ConfigManager.java:218) > > etc. > > > > (I first clicked Apply and then Save/Apply). > > > > As I still don't know what is causing this problem, I changed the code to > catch it, by allowing the ConfigProfile.setParent() parent argument to be null. > > Now at least I can do some work again! > > > > Erik. > > > > > > ---------------------------------------------------------------------- > > -------- Keep Your Developer Skills Current with LearnDevNow! > > The most comprehensive online learning library for Microsoft > > developers is just $99.99! Visual Studio, SharePoint, SQL - plus > > HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when > you subscribe now! > > http://p.sf.net/sfu/learndevnow-d2d > > _______________________________________________ > > Rails-devel mailing list > > Rai...@li... > > https://lists.sourceforge.net/lists/listinfo/rails-devel > > > ---------------------------------------------------------------------------- -- > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers is > just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro > Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel |