You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Stephen Haberman (Created) (JIRA)" <ji...@apache.org> on 2012/03/20 16:19:40 UTC

[jira] [Created] (IVYDE-298) duplicate prefs

duplicate prefs
---------------

                 Key: IVYDE-298
                 URL: https://issues.apache.org/jira/browse/IVYDE-298
             Project: IvyDE
          Issue Type: Bug
    Affects Versions: trunk
         Environment: Eclipse Version: 3.7.2 Build id: M20120208-0800
Apache IvyDE	2.2.0.201203150105-hudson-215
            Reporter: Stephen Haberman
            Priority: Minor


The .settings/org.apache.ivyde.eclipse.prefs file seems to not be saved correctly. If I save some settings, I end up with "standaloneretrieve" in the file twice, e.g.:

{code}
> cat .settings/org.apache.ivyde.eclipse.prefs
eclipse.preferences.version=1
org.apache.ivyde.eclipse.standaloneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist><setup name\="dependencies"><ivysettings loadondemand\="false" path\=""/><ivyxml path\="ivy.xml"/><retrieve confs\="" pattern\="" sync\="true" types\=""/></setup></setuplist>
org.apache.ivyde.eclipse.standlaoneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist/>
{code}

...and actually, something in the IDE must have auto-saved, because now it looks like:

{code}
eclipse.preferences.version=1
org.apache.ivyde.eclipse.standaloneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist/>
org.apache.ivyde.eclipse.standlaoneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist/>
{code}

Maybe the file isn't getting cleared out? Or is this normal?


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (IVYDE-298) duplicate prefs

Posted by "Stephen Haberman (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVYDE-298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234483#comment-13234483 ] 

Stephen Haberman commented on IVYDE-298:
----------------------------------------

Hi Nicolas, thanks for the response...I was able to reproduce the duplication, albeit I think I know why. I've been switch back/forth between IvyDE trunk and IvyDE release because the rest of the team is on IvyDE release but I wanted to try IvyDE trunk.

So, once when trying IvyDE, I checked in the new .settings/org.apache.ivyde.eclipse.prefs file--but did not check in the updated .classpath file (that has the ?project=<project-name> in it).

So, when opening Eclipse with the IvyDE release .classpath file but an existing IvyDE trunk prefs file, that is when I see the duplicated lines.

So, arguably my fault for having files from both versions, but that is how it happened.

                
> duplicate prefs
> ---------------
>
>                 Key: IVYDE-298
>                 URL: https://issues.apache.org/jira/browse/IVYDE-298
>             Project: IvyDE
>          Issue Type: Bug
>    Affects Versions: trunk
>         Environment: Eclipse Version: 3.7.2 Build id: M20120208-0800
> Apache IvyDE	2.2.0.201203150105-hudson-215
>            Reporter: Stephen Haberman
>            Priority: Minor
>
> The .settings/org.apache.ivyde.eclipse.prefs file seems to not be saved correctly. If I save some settings, I end up with "standaloneretrieve" in the file twice, e.g.:
> {code}
> > cat .settings/org.apache.ivyde.eclipse.prefs
> eclipse.preferences.version=1
> org.apache.ivyde.eclipse.standaloneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist><setup name\="dependencies"><ivysettings loadondemand\="false" path\=""/><ivyxml path\="ivy.xml"/><retrieve confs\="" pattern\="" sync\="true" types\=""/></setup></setuplist>
> org.apache.ivyde.eclipse.standlaoneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist/>
> {code}
> ...and actually, something in the IDE must have auto-saved, because now it looks like:
> {code}
> eclipse.preferences.version=1
> org.apache.ivyde.eclipse.standaloneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist/>
> org.apache.ivyde.eclipse.standlaoneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist/>
> {code}
> Maybe the file isn't getting cleared out? Or is this normal?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (IVYDE-298) duplicate prefs

Posted by "Nicolas Lalevée (Resolved JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVYDE-298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicolas Lalevée resolved IVYDE-298.
-----------------------------------

    Resolution: Duplicate
    
> duplicate prefs
> ---------------
>
>                 Key: IVYDE-298
>                 URL: https://issues.apache.org/jira/browse/IVYDE-298
>             Project: IvyDE
>          Issue Type: Bug
>    Affects Versions: trunk
>         Environment: Eclipse Version: 3.7.2 Build id: M20120208-0800
> Apache IvyDE	2.2.0.201203150105-hudson-215
>            Reporter: Stephen Haberman
>            Priority: Minor
>
> The .settings/org.apache.ivyde.eclipse.prefs file seems to not be saved correctly. If I save some settings, I end up with "standaloneretrieve" in the file twice, e.g.:
> {code}
> > cat .settings/org.apache.ivyde.eclipse.prefs
> eclipse.preferences.version=1
> org.apache.ivyde.eclipse.standaloneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist><setup name\="dependencies"><ivysettings loadondemand\="false" path\=""/><ivyxml path\="ivy.xml"/><retrieve confs\="" pattern\="" sync\="true" types\=""/></setup></setuplist>
> org.apache.ivyde.eclipse.standlaoneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist/>
> {code}
> ...and actually, something in the IDE must have auto-saved, because now it looks like:
> {code}
> eclipse.preferences.version=1
> org.apache.ivyde.eclipse.standaloneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist/>
> org.apache.ivyde.eclipse.standlaoneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist/>
> {code}
> Maybe the file isn't getting cleared out? Or is this normal?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (IVYDE-298) duplicate prefs

Posted by "Nicolas Lalevée (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVYDE-298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233920#comment-13233920 ] 

Nicolas Lalevée commented on IVYDE-298:
---------------------------------------

This project preference file is describing the retrieve setup. With IvyDE 2.1, it was part of the classpath container. It has moved to this independant preference file so retrieve can be done on non Java project. So a migration has happend. I remember there was a bug in that migration, I think it was this issue: IVYDE-259
So I think its OK. Just clean that file. If you see duplicate coming again, reopen this issue.
                
> duplicate prefs
> ---------------
>
>                 Key: IVYDE-298
>                 URL: https://issues.apache.org/jira/browse/IVYDE-298
>             Project: IvyDE
>          Issue Type: Bug
>    Affects Versions: trunk
>         Environment: Eclipse Version: 3.7.2 Build id: M20120208-0800
> Apache IvyDE	2.2.0.201203150105-hudson-215
>            Reporter: Stephen Haberman
>            Priority: Minor
>
> The .settings/org.apache.ivyde.eclipse.prefs file seems to not be saved correctly. If I save some settings, I end up with "standaloneretrieve" in the file twice, e.g.:
> {code}
> > cat .settings/org.apache.ivyde.eclipse.prefs
> eclipse.preferences.version=1
> org.apache.ivyde.eclipse.standaloneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist><setup name\="dependencies"><ivysettings loadondemand\="false" path\=""/><ivyxml path\="ivy.xml"/><retrieve confs\="" pattern\="" sync\="true" types\=""/></setup></setuplist>
> org.apache.ivyde.eclipse.standlaoneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist/>
> {code}
> ...and actually, something in the IDE must have auto-saved, because now it looks like:
> {code}
> eclipse.preferences.version=1
> org.apache.ivyde.eclipse.standaloneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist/>
> org.apache.ivyde.eclipse.standlaoneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist/>
> {code}
> Maybe the file isn't getting cleared out? Or is this normal?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (IVYDE-298) duplicate prefs

Posted by "Stephen Haberman (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVYDE-298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233481#comment-13233481 ] 

Stephen Haberman commented on IVYDE-298:
----------------------------------------

Also, besides the list of ivy configurations to use, I don't have any project-level settings set (I configure it all at the workspace level), so was kind of surprised to see the prefs file in the first place. I'm not really sure what the setuplist element is for?

Apologies if this is working well and I'm just not understanding something.
                
> duplicate prefs
> ---------------
>
>                 Key: IVYDE-298
>                 URL: https://issues.apache.org/jira/browse/IVYDE-298
>             Project: IvyDE
>          Issue Type: Bug
>    Affects Versions: trunk
>         Environment: Eclipse Version: 3.7.2 Build id: M20120208-0800
> Apache IvyDE	2.2.0.201203150105-hudson-215
>            Reporter: Stephen Haberman
>            Priority: Minor
>
> The .settings/org.apache.ivyde.eclipse.prefs file seems to not be saved correctly. If I save some settings, I end up with "standaloneretrieve" in the file twice, e.g.:
> {code}
> > cat .settings/org.apache.ivyde.eclipse.prefs
> eclipse.preferences.version=1
> org.apache.ivyde.eclipse.standaloneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist><setup name\="dependencies"><ivysettings loadondemand\="false" path\=""/><ivyxml path\="ivy.xml"/><retrieve confs\="" pattern\="" sync\="true" types\=""/></setup></setuplist>
> org.apache.ivyde.eclipse.standlaoneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist/>
> {code}
> ...and actually, something in the IDE must have auto-saved, because now it looks like:
> {code}
> eclipse.preferences.version=1
> org.apache.ivyde.eclipse.standaloneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist/>
> org.apache.ivyde.eclipse.standlaoneretrieve=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><setuplist/>
> {code}
> Maybe the file isn't getting cleared out? Or is this normal?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira