#329 ✓invalid
Rafael Muñoz

eclipsify command has problems with SVN folders

Reported by Rafael Muñoz | October 24th, 2010 @ 05:12 PM

Framework version: 1.1RC3
Platform you're using: Windows 7

Reproduction steps:
1. Checkout a project from a subversion repository
2. Try to eclipsify project (play eclipsify PROJECT_NAME)

Details:
If I try to eclipsify a project that has been checkout from a SVN repository the commands give an error because it can't access the SVN files (some kind of windows permission thing?).
The eclipsify command should ignore the SVN folders.

Logs:
C:\personal\programacion\projects\play-1.1>play eclipsify socrates
~ _ _ ~ _ | | _ _ | | ~ | ' \| |/ ' | || || ~ | /||_|_ () ~ |_| |__/ ~ ~ play! 1.1RC3, http://www.playframework.org ~ Traceback (most recent call last):
File "C:\personal\programacion\projects\play-1.1\play", line 111, in

cmdloader.commands[play_command].execute(command=play_command, app=play_app, args=remaining_args, env=play_env, cmdl

oader=cmdloader)
File "C:\personal\programacion\projects\play-1.1\framework\pym\play\commands\eclipse.py", line 33, in execute

shutil.rmtree(eclipse)

File "C:\personal\programacion\projects\play-1.1\python\lib\shutil.py", line 169, in rmtree

rmtree(fullname, ignore_errors, onerror)

File "C:\personal\programacion\projects\play-1.1\python\lib\shutil.py", line 169, in rmtree

rmtree(fullname, ignore_errors, onerror)

File "C:\personal\programacion\projects\play-1.1\python\lib\shutil.py", line 174, in rmtree

onerror(os.remove, fullname, sys.exc_info())

File "C:\personal\programacion\projects\play-1.1\python\lib\shutil.py", line 172, in rmtree

os.remove(fullname)

WindowsError: [Error 5] Access is denied: 'C:\personal\programacion\projects\play-1.1\socrates\eclipse\.settings<br/> .svn\entries'

C:\personal\programacion\projects\play-1.1>

Comments and changes to this ticket

  • Rafael Muñoz

    Rafael Muñoz October 24th, 2010 @ 08:14 PM

    Sorry for the bad formatting in the logs. Trying it again:

    C:\personal\programacion\projects\play-1.1>play eclipsify socrates
    ~        _            _
    ~  _ __ | | __ _ _  _| |
    ~ | '_ \| |/ _' | || |_|
    ~ |  __/|_|\____|\__ (_)
    ~ |_|            |__/
    ~
    ~ play! 1.1RC3, http://www.playframework.org
    ~
    Traceback (most recent call last):
      File "C:\personal\programacion\projects\play-1.1\play", line 111, in <module>
        cmdloader.commands[play_command].execute(command=play_command, app=play_app, args=remaining_args, env=play_env, cmdl
    oader=cmdloader)
      File "C:\personal\programacion\projects\play-1.1\framework\pym\play\commands\eclipse.py", line 33, in execute
        shutil.rmtree(eclipse)
      File "C:\personal\programacion\projects\play-1.1\python\lib\shutil.py", line 169, in rmtree
        rmtree(fullname, ignore_errors, onerror)
      File "C:\personal\programacion\projects\play-1.1\python\lib\shutil.py", line 169, in rmtree
        rmtree(fullname, ignore_errors, onerror)
      File "C:\personal\programacion\projects\play-1.1\python\lib\shutil.py", line 174, in rmtree
        onerror(os.remove, fullname, sys.exc_info())
      File "C:\personal\programacion\projects\play-1.1\python\lib\shutil.py", line 172, in rmtree
        os.remove(fullname)
    WindowsError: [Error 5] Access is denied: 'C:\\personal\\programacion\\projects\\play-1.1\\socrates\\eclipse\\.settings\
    \.svn\\entries'
    
  • Rafael Muñoz

    Rafael Muñoz October 24th, 2010 @ 08:53 PM

    Found the issue. I was committing to the repository the eclipse files (I know, a bad thing to do ;) ) and the eclipsify command doesn't like it a bit. Remove the eclipse configuration from SVN and all works like a charm.

    For me, this can be closed. Sorry for the bother.

  • Erwan Loisant

    Erwan Loisant June 9th, 2011 @ 12:41 PM

    • State changed from “new” to “invalid”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2>Play framework</h2>

Play makes it easier to build Web applications with Java. It is a clean alternative to bloated Enterprise Java stacks. It focuses on developer productivity and targets RESTful architectures. Learn more on the <a href="http://www.playframework.org">http://www.playframework.org</a> website.<br><br>

<h2>Source code is hosted on github</h2>Check out our repository at <a href="http://github.com/playframework/play">http://github.com/playframework/play</a><br><br>

<h2>Contributing, creating a patch</h2> Please read the <a href="http://play.lighthouseapp.com/projects/57987/contributor-guide">contributor guide</a><br><br>

<h2>Reporting Security Vulnerabilities</h2> Since all bug reports are public, please report any security vulnerability directly to <em>guillaume dot bort at gmail dot com</em>.<br><br>

<h2>Creating a bug report</h2> Bug reports are incredibly helpful, so take time to report bugs and request features in our ticket tracker. We’re always grateful for patches to Play’s code. Indeed, bug reports with attached patches will get fixed far quickly than those without any.<br><br>

Please include as much relevant information as possible including the exact framework version you're using and a code snippet that reproduces the problem.<br><br>

Don't have too much expectations. Unless the bug is really a serious "everything is broken" thing, you're creating a ticket to start a discussion. Having a patch (or a branch on Github we can pull from) is better, but then again we'll only pull high quality branches that make sense to be in the core of Play.

Pages