These are chat archives for spyder-ide/public

25th
Feb 2015
Enrico Giampieri
@EnricoGiampieri
Feb 25 2015 16:08
hello everyone
someone could give me a pointer to where to take a look for the auto-indentation code? I wanted to try to adjust what looks to me like a small bug, but the codebase is not trivial to read the first time
Gonzalo Peña-Castellanos
@goanpeca
Feb 25 2015 16:22

@EnricoGiampieri you need to go here /spyderlib/widgets/sourcecode

base.py and codeeditor.py should provide this functionality

Enrico Giampieri
@EnricoGiampieri
Feb 25 2015 16:49
thank you very much @goanpeca , I will take a look there!
Gonzalo Peña-Castellanos
@goanpeca
Feb 25 2015 16:51
:+1:
Gonzalo Peña-Castellanos
@goanpeca
Feb 25 2015 17:45
@EnricoGiampieri I will start doing a draft of the internal structure, hopefully it can help you and others, check it out as it progresses and add to anything you discover or find usefull to tell people :)
Enrico Giampieri
@EnricoGiampieri
Feb 25 2015 19:48
thank you very much, that will be very useful! I would like to contribute with something, but I guess it will take time to orient myself into the code base, so every help is very welcome!
Gonzalo Peña-Castellanos
@goanpeca
Feb 25 2015 19:48
no rush!
Enrico Giampieri
@EnricoGiampieri
Feb 25 2015 19:51
In the long term, anything that helps reducing the entry cost for contribution is going to pay off, helping willing people like me to get in :)
Gonzalo Peña-Castellanos
@goanpeca
Feb 25 2015 19:52
looking forward to your contributions!
Enrico Giampieri
@EnricoGiampieri
Feb 25 2015 19:52
by the way, if I try to edit the spyder source base in spyder, will everything collapse? :D
Gonzalo Peña-Castellanos
@goanpeca
Feb 25 2015 19:53
what do you mean by spyder source base?
Enrico Giampieri
@EnricoGiampieri
Feb 25 2015 19:54
my local git repository with everything in it
(by the way, I'm working under linux, if that makes any difference)
Gonzalo Peña-Castellanos
@goanpeca
Feb 25 2015 19:54
just make sure to follow the workflow
fork, branch
experiment
:)
you can have two local repos
make a clone of the spyder-ide/spyder and use that as the development version....
and make a clone of the fork enrico/spyder and make the changes there
you can edit the codeeditor.py file and run in from spyder (which will run just the code editor widget) while you make changes...
so nothing will collapse
you will alwyas work with the latest version and modify the fork version...
or at least is how I do it :),
Enrico Giampieri
@EnricoGiampieri
Feb 25 2015 20:00
right now I'm working on the local copy of my fork, when I'm done I'm going to create a pull request to you
that at least is how I did in other projects
it creates less cluttering on your side this way
Steven Silvester
@blink1073
Feb 25 2015 20:59
@EnricoGiampieri, yep, that's perfect
Enrico Giampieri
@EnricoGiampieri
Feb 25 2015 21:10
ok, I finally managed to find the incriminated code...now I just have to understand the regex doing the work XD
Steven Silvester
@blink1073
Feb 25 2015 22:18
Which regex? I might be the one that wrote it.
Caleb Hattingh
@cjrh
Feb 25 2015 22:41
On Windows it looks like there is some widget that has had MainWindow set as parent that shouldn't have. The problem shows as being unable to click on the "File" and "Edit" menus (and half of the "Search" menu). This is a description of the nature of the problem: http://qt-project.org/forums/viewthread/9043/
I have run out of time today to find which widget is causing it. Just wanted to let you about it.
(let you know about it)
I have made a gif screencast of the behaviour. I'll make an issue a bit later.
Caleb Hattingh
@cjrh
Feb 25 2015 23:08
Ok new issue added spyder-ide/spyder#2204