pydev-code Mailing List for PyDev for Eclipse (Page 14)
Brought to you by:
fabioz
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
(14) |
Apr
(18) |
May
(12) |
Jun
(34) |
Jul
(31) |
Aug
(37) |
Sep
(22) |
Oct
(2) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(1) |
Feb
(4) |
Mar
(9) |
Apr
(1) |
May
|
Jun
(2) |
Jul
(24) |
Aug
(3) |
Sep
(5) |
Oct
(3) |
Nov
(3) |
Dec
(5) |
2006 |
Jan
(5) |
Feb
(23) |
Mar
(5) |
Apr
(80) |
May
(26) |
Jun
(13) |
Jul
(13) |
Aug
(4) |
Sep
(31) |
Oct
(24) |
Nov
(6) |
Dec
(2) |
2007 |
Jan
(7) |
Feb
|
Mar
(26) |
Apr
(3) |
May
(8) |
Jun
(6) |
Jul
(11) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
(3) |
2008 |
Jan
(7) |
Feb
(1) |
Mar
(6) |
Apr
(7) |
May
(9) |
Jun
(14) |
Jul
(9) |
Aug
(6) |
Sep
(10) |
Oct
(5) |
Nov
(8) |
Dec
(5) |
2009 |
Jan
(8) |
Feb
(10) |
Mar
(10) |
Apr
(1) |
May
(3) |
Jun
(5) |
Jul
(10) |
Aug
(3) |
Sep
(12) |
Oct
(6) |
Nov
(22) |
Dec
(12) |
2010 |
Jan
(10) |
Feb
(17) |
Mar
(5) |
Apr
(9) |
May
(8) |
Jun
(2) |
Jul
(4) |
Aug
(12) |
Sep
(1) |
Oct
(1) |
Nov
(8) |
Dec
|
2011 |
Jan
(14) |
Feb
(8) |
Mar
(3) |
Apr
(11) |
May
(6) |
Jun
(5) |
Jul
(10) |
Aug
(7) |
Sep
|
Oct
(4) |
Nov
(4) |
Dec
(8) |
2012 |
Jan
|
Feb
(8) |
Mar
(10) |
Apr
(5) |
May
(4) |
Jun
(10) |
Jul
|
Aug
(2) |
Sep
(2) |
Oct
(11) |
Nov
(1) |
Dec
|
2013 |
Jan
(1) |
Feb
(2) |
Mar
(11) |
Apr
(10) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(20) |
Sep
(4) |
Oct
(18) |
Nov
(5) |
Dec
(7) |
2014 |
Jan
(3) |
Feb
(5) |
Mar
(7) |
Apr
(5) |
May
(10) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(7) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
2015 |
Jan
(1) |
Feb
(1) |
Mar
(8) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
(1) |
Aug
(2) |
Sep
(1) |
Oct
(3) |
Nov
(5) |
Dec
(1) |
2016 |
Jan
(26) |
Feb
(10) |
Mar
(4) |
Apr
|
May
(4) |
Jun
(3) |
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
(4) |
Dec
(3) |
2017 |
Jan
(3) |
Feb
|
Mar
(9) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
(9) |
Sep
(1) |
Oct
|
Nov
(2) |
Dec
|
2018 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
(3) |
2019 |
Jan
(4) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(4) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
(11) |
2021 |
Jan
(3) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2024 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
From: Andornaut <and...@gm...> - 2012-06-29 01:35:34
|
Sorry, looks like I jumped the gun. It was easily fixed with by deleting ~/.eclipse then reinstalling pydev.. On Thu, Jun 28, 2012 at 9:25 PM, Andornaut <and...@gm...> wrote: > After upgrading I'm getting this error: > > An internal error occurred during: "Loading bundle: > /home/andornaut/.eclipse/org.eclipse.platform_3.7.0_1473617060/configuration/org.eclipse.osgi/bundles/325/1/.cp/bundles/cucumber.ruble". > (LoadError) no such file to load -- ruble/ui > > The closest hints I could find were pydev related bugs from 2011: > > http://aptanastudio.tenderapp.com/discussions/problems/1993-django-templates-editor-aptana-studio-ruby-dependency > > This issue did not occur when I had an older dev version installed > (2.6.0.2012050900). > > > On Thu, Jun 28, 2012 at 4:26 PM, Fabio Zadrozny <fa...@gm...> wrote: >> Hi All, >> >> PyDev 2.6.0 has been released >> >> Details on PyDev: http://pydev.org >> Details on its development: http://pydev.blogspot.com >> >> Release Highlights: >> ------------------------------- >> >> Interactive console: >> >> * It's now possible to use the interactive console attached to a >> debug session. (patch from Hussain Bohra) >> To use this feature either right-click a frame in the debug >> view and choosing PyDev > Debug console or create a new Interactive >> console as usual (Ctrl+Alt+Enter and choose 'PyDev Debug Console' -- >> but note that this option will only be enabled when in a debug session >> with a selected frame in the Debug view. >> * Fixed issue where completions from the console did not work >> properly with '%' because quoting was not being properly done. >> * Fixed issue where the execfile() redefinition in the PyDev >> console did not use the proper globals >> * When launching interactive console, PYTHONPATH order is properly >> kept (patch from James Blackburn). >> * Fix pasting into the middle of the console (patch from James Blackburn). >> * For paste, only go to the end of the line if the cursor isn't in >> range (patch from James Blackburn). >> >> PyUnit: >> >> * Improved preferences page configuration (links shown to add options). >> * Improved test discovery in PyDev PyUnit runner (exclude/include >> files/tests options added). >> >> Jython: >> >> * print may be used in dotted names as Jython requires for grammars >> 2.4 and 2.5. >> >> Others: >> >> * In a build, PyDev could end up reading the contents of files >> unrelated to Python. >> * Django project startup compatible with django 1.4. >> * Assignments to builtins when in the class-level no longer >> generate a warning. >> * Fixed issue starting new thread in the debugger (fix for paste/waitress). >> * Fixed error configuring interpreter if os.path was not present. >> * Fixed issue when configuring interpreter which has unicode >> characters in the PYTHONPATH. >> * When searching for external files, also take a look at the >> configured projects, as it may be that the file should actually be >> found in an external source folder. >> * Fixed issues getting marker on files with a dirty editor and >> where we could end up getting markers from other files. >> * The scripting output console is not shown unless there's actually >> some output to show. >> * A bunch of other minor fixes. >> >> >> >> What is PyDev? >> --------------------------- >> >> PyDev is a plugin that enables users to use Eclipse for Python, Jython >> and IronPython development -- making Eclipse a first class Python IDE >> -- It comes with many goodies such as code completion, syntax >> highlighting, syntax analysis, refactor, debug and many others. >> >> >> Cheers, >> >> -- >> Fabio Zadrozny >> ------------------------------------------------------ >> Software Developer >> >> Appcelerator >> http://appcelerator.com/ >> >> Aptana >> http://aptana.com/ >> >> PyDev - Python Development Environment for Eclipse >> http://pydev.org >> http://pydev.blogspot.com >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> pydev-code mailing list >> pyd...@li... >> https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Andornaut <and...@gm...> - 2012-06-29 01:26:00
|
After upgrading I'm getting this error: An internal error occurred during: "Loading bundle: /home/andornaut/.eclipse/org.eclipse.platform_3.7.0_1473617060/configuration/org.eclipse.osgi/bundles/325/1/.cp/bundles/cucumber.ruble". (LoadError) no such file to load -- ruble/ui The closest hints I could find were pydev related bugs from 2011: http://aptanastudio.tenderapp.com/discussions/problems/1993-django-templates-editor-aptana-studio-ruby-dependency This issue did not occur when I had an older dev version installed (2.6.0.2012050900). On Thu, Jun 28, 2012 at 4:26 PM, Fabio Zadrozny <fa...@gm...> wrote: > Hi All, > > PyDev 2.6.0 has been released > > Details on PyDev: http://pydev.org > Details on its development: http://pydev.blogspot.com > > Release Highlights: > ------------------------------- > > Interactive console: > > * It's now possible to use the interactive console attached to a > debug session. (patch from Hussain Bohra) > To use this feature either right-click a frame in the debug > view and choosing PyDev > Debug console or create a new Interactive > console as usual (Ctrl+Alt+Enter and choose 'PyDev Debug Console' -- > but note that this option will only be enabled when in a debug session > with a selected frame in the Debug view. > * Fixed issue where completions from the console did not work > properly with '%' because quoting was not being properly done. > * Fixed issue where the execfile() redefinition in the PyDev > console did not use the proper globals > * When launching interactive console, PYTHONPATH order is properly > kept (patch from James Blackburn). > * Fix pasting into the middle of the console (patch from James Blackburn). > * For paste, only go to the end of the line if the cursor isn't in > range (patch from James Blackburn). > > PyUnit: > > * Improved preferences page configuration (links shown to add options). > * Improved test discovery in PyDev PyUnit runner (exclude/include > files/tests options added). > > Jython: > > * print may be used in dotted names as Jython requires for grammars > 2.4 and 2.5. > > Others: > > * In a build, PyDev could end up reading the contents of files > unrelated to Python. > * Django project startup compatible with django 1.4. > * Assignments to builtins when in the class-level no longer > generate a warning. > * Fixed issue starting new thread in the debugger (fix for paste/waitress). > * Fixed error configuring interpreter if os.path was not present. > * Fixed issue when configuring interpreter which has unicode > characters in the PYTHONPATH. > * When searching for external files, also take a look at the > configured projects, as it may be that the file should actually be > found in an external source folder. > * Fixed issues getting marker on files with a dirty editor and > where we could end up getting markers from other files. > * The scripting output console is not shown unless there's actually > some output to show. > * A bunch of other minor fixes. > > > > What is PyDev? > --------------------------- > > PyDev is a plugin that enables users to use Eclipse for Python, Jython > and IronPython development -- making Eclipse a first class Python IDE > -- It comes with many goodies such as code completion, syntax > highlighting, syntax analysis, refactor, debug and many others. > > > Cheers, > > -- > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > > Appcelerator > http://appcelerator.com/ > > Aptana > http://aptana.com/ > > PyDev - Python Development Environment for Eclipse > http://pydev.org > http://pydev.blogspot.com > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code |
From: Fabio Z. <fa...@gm...> - 2012-06-28 20:27:07
|
Hi All, PyDev 2.6.0 has been released Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: ------------------------------- Interactive console: * It's now possible to use the interactive console attached to a debug session. (patch from Hussain Bohra) To use this feature either right-click a frame in the debug view and choosing PyDev > Debug console or create a new Interactive console as usual (Ctrl+Alt+Enter and choose 'PyDev Debug Console' -- but note that this option will only be enabled when in a debug session with a selected frame in the Debug view. * Fixed issue where completions from the console did not work properly with '%' because quoting was not being properly done. * Fixed issue where the execfile() redefinition in the PyDev console did not use the proper globals * When launching interactive console, PYTHONPATH order is properly kept (patch from James Blackburn). * Fix pasting into the middle of the console (patch from James Blackburn). * For paste, only go to the end of the line if the cursor isn't in range (patch from James Blackburn). PyUnit: * Improved preferences page configuration (links shown to add options). * Improved test discovery in PyDev PyUnit runner (exclude/include files/tests options added). Jython: * print may be used in dotted names as Jython requires for grammars 2.4 and 2.5. Others: * In a build, PyDev could end up reading the contents of files unrelated to Python. * Django project startup compatible with django 1.4. * Assignments to builtins when in the class-level no longer generate a warning. * Fixed issue starting new thread in the debugger (fix for paste/waitress). * Fixed error configuring interpreter if os.path was not present. * Fixed issue when configuring interpreter which has unicode characters in the PYTHONPATH. * When searching for external files, also take a look at the configured projects, as it may be that the file should actually be found in an external source folder. * Fixed issues getting marker on files with a dirty editor and where we could end up getting markers from other files. * The scripting output console is not shown unless there's actually some output to show. * A bunch of other minor fixes. What is PyDev? --------------------------- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer Appcelerator http://appcelerator.com/ Aptana http://aptana.com/ PyDev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com |
From: jlist9 <jl...@gm...> - 2012-06-20 00:57:38
|
Hi, I'm experimenting with pydev. I have a couple of jar files a test jython project. I added them to PYTHONPATH in project properties and the jar files show up in "External Libs" in project browser. However, when I click on the "+" sign on the left side of the jar files, it expands the Java packages properly on one of the jar files but on another jar file it only shows the a few text files (License.txt, README.txt, rel-note.txt") but it doesn't show the Java class tree. Any idea why this is happening? Thanks, Jack |
From: Fabio Z. <fa...@es...> - 2012-06-12 10:53:59
|
On Mon, Jun 11, 2012 at 12:55 PM, John L. Poole <jlp...@gm...> wrote: > Scribus is an open source digital publishing project that offers Python > scripting much like VBA is to Microsoft Excel and Word. I'd like to be able > to use the objects exposed to Python in Scribus and do not know how to > modify PyDev to accomplish this. > > Here's what is available: > > 1) *.h and *.cpp files that wrap the desired objects, e.g. page, items, > layers &etc. > 2) files (generated from a Python script) containing the API points, i.e. > api_Scripter.activeDocument.activePage.items.api, in the format of: > > /** > * Scripter.activeDocument.activePage.items[i].objectName > * Property > * type is QString > */ > > /** > * Scripter.activeDocument.activePage.items[i].itemName > * Property > * type is QString > */ > > The above files are from the Subversion repository, see > > http://scribus.net/websvn/listing.php?repname=Scribus&path=%2Ftrunk%2FScribus%2Fscribus%2Fplugins%2Fscripter%2F&#aca5e4fd7ca7007cd8c97fe2e13849862 > > I tried to add as a source folder the directory, > D:\work\Scribus\src\scribus\plugins\scripter, containing these files in the > PyDEV PYTHONPATH menu. It looks like pointing to that directory did no good > as code that has reference to an object does not auto complete. > > What may I do to have the objects exposed for the Scribus python interpreter > available in PyDev? > > Thank you, > > John > Hi John, Just as a reminder, this is a developers forum. Questions related to general configuration questions should be asked in stackoverflow with a 'pydev' tag. Regarding your issue, I think that the 'predefined completions' can solve it. See: http://www.pydev.org/manual_101_interpreter.html Cheers, Fabio p.s.: if you have further doubts regarding this, please ask at stack overflow. |
From: Fabio Z. <fa...@es...> - 2012-06-12 10:51:13
|
Provided you have the PyDev sources properly configured in Eclipse, you can do Ctrl+Shift+T to search for classes and given one of the classes you can do F4 to see super/sub-classes. Cheers, Fabio On Tue, Jun 12, 2012 at 4:30 AM, 최원준 <won...@gm...> wrote: > do you know how can I find the related class? > > Wonjun, Choi > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: 최원준 <won...@gm...> - 2012-06-12 07:30:26
|
do you know how can I find the related class? Wonjun, Choi |
From: John L. P. <jlp...@gm...> - 2012-06-11 15:56:14
|
Scribus is an open source digital publishing project that offers Python scripting much like VBA is to Microsoft Excel and Word. I'd like to be able to use the objects exposed to Python in Scribus and do not know how to modify PyDev to accomplish this. Here's what is available: 1) *.h and *.cpp files that wrap the desired objects, e.g. page, items, layers &etc. 2) files (generated from a Python script) containing the API points, i.e. api_Scripter.activeDocument.activePage.items.api, in the format of: /** * Scripter.activeDocument.activePage.items[i].objectName * Property * type is QString */ /** * Scripter.activeDocument.activePage.items[i].itemName * Property * type is QString */ The above files are from the Subversion repository, see http://scribus.net/websvn/listing.php?repname=Scribus&path=%2Ftrunk%2FScribus%2Fscribus%2Fplugins%2Fscripter%2F&#aca5e4fd7ca7007cd8c97fe2e13849862 I tried to add as a source folder the directory, D:\work\Scribus\src\scribus\plugins\scripter, containing these files in the PyDEV PYTHONPATH menu. It looks like pointing to that directory did no good as code that has reference to an object does not auto complete. What may I do to have the objects exposed for the Scribus python interpreter available in PyDev? Thank you, John |
From: Fabio Z. <fa...@es...> - 2012-06-04 12:33:12
|
On Sun, Jun 3, 2012 at 11:43 PM, 최원준 <won...@gm...> wrote: > hello > I want to develop some kind of IDE in Eclipse. > I think Pydev is more similar than other. > > I want to highlight python, fortran, c, c++, java languages in Eclipse. > in ordet to do this which part I should look into? > > I want to display this in one document. > > ------------------------------------------------------- > C | > | > ------------------------------------------------------- > C++ | > | > ------------------------------------------------------- > Fortran | > | > ------------------------------------------------------- > Python | > | > ------------------------------------------------------- > Java | > | > ------------------------------------------------------- > > Wonjun, Choi > Take a look at: http://wiki.eclipse.org/FAQ_How_do_I_provide_syntax_coloring_in_an_editor%3F (you can search for the related classes mentioned in the PyDev source code) Cheers, Fabio |
From: 최원준 <won...@gm...> - 2012-06-04 02:43:25
|
hello I want to develop some kind of IDE in Eclipse. I think Pydev is more similar than other. I want to highlight python, fortran, c, c++, java languages in Eclipse. in ordet to do this which part I should look into? I want to display this in one document. ------------------------------------------------------- C | | ------------------------------------------------------- C++ | | ------------------------------------------------------- Fortran | | ------------------------------------------------------- Python | | ------------------------------------------------------- Java | | ------------------------------------------------------- Wonjun, Choi |
From: Fabio Z. <fa...@es...> - 2012-05-22 13:37:30
|
Hi Javeriya Riaz, Actually, the code-analysis info is not really meant to be extended... Yes, you can create your own builder and get the AST, but there's so much more semantic info needed to actually do the code-analysis that it's not really worth extending it that way. There was an initial attempt to do exactly what you said (function call analysis)... it can be activated by making com.python.pydev.analysis.visitors.OccurrencesVisitor.analyzeArgumentsMismatch = true in the OccurrencesVisitor constructor -- there's no UI for it (the preference that changes it has been removed from the UI). The actual checking is implemented in /com.python.pydev.analysis/src/com/python/pydev/analysis/visitors/ArgumentsChecker.java, but the problem with the current approach is that it is slow... although it's possible to get to the definition of places in PyDev (as is done in the current approach), for that analysis to work properly, it shouldn't rely on that, and the code-analysis should discover what each variable is when it's defined and save that info in some cache, so that later on when a call it's done, it should be fast to get that information, but that requires changing the com.python.pydev.analysis.visitors.OccurrencesVisitor (which is the class that actually does the code-analysis) to actually discover and keep that information (which is not really trivial). Also, right now in the current approach, it's not getting properly if a variable is bound or not at a given place, so, the analysis does not check for that properly and may give false positive or negatives if it gets it wrong (so, keeping if a variable is bound or not at each step is something that would need to be done properly also, not only the type at each place). If you're really going to implement something related to that, please don't forget to create proper unit-tests for each use-case. There are currently many unit-tests related in com.python.pydev.analysis.OccurrencesAnalyzer2Test.testParameterAnalysisXXX() already. Cheers, Fabio On Sun, May 20, 2012 at 11:47 AM, Javeriya Riaz <ria...@gm...> wrote: > hi, > > I am fairly new to pydev and eclipse development. I want to use the pydev > analysis in my own plugin to do some further analysis for e.g. get all > function call sites for a function to find errors in function argument > passing. > I am guessing I need to extend the PyDevBuilderVisitor to get the AST, where > to get function call sites and argument information from? > > -- > > rjay > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Javeriya R. <ria...@gm...> - 2012-05-20 14:47:44
|
hi, I am fairly new to pydev and eclipse development. I want to use the pydev analysis in my own plugin to do some further analysis for e.g. get all function call sites for a function to find errors in function argument passing. I am guessing I need to extend the PyDevBuilderVisitor to get the AST, where to get function call sites and argument information from? -- rjay |
From: Fabio Z. <fa...@es...> - 2012-05-18 00:08:29
|
On Mon, May 14, 2012 at 7:41 PM, Josh Stratton <str...@gm...> wrote: > After digging around with the pydev code I've been trying to write a > simple eclipse plugin that can change the active python interpreter or > alter the current project's python path programmatically. For > example, if I call PythonInterpreterManager.createInterpreterInfo(), I > get the popup asking for which system libs to include on the path. > With the info I get back, I can call addInterpreterInfo() to store it > in the manager. What I don't understand though is what happens with > this stored data. For example, if I call > PythonInterpreterManager.getInterpreterInfos(), I don't get that new > info I just added back. Looking at the code, it seems to be doing > something more complex than just pulling from a list. I also don't > see anything outside the preferences as to which interpreter is > actually being used. Is it the selected one? Is there a way to query > this without actually looking at the IPreferencePage? Because we have > several diferrent interpreters, I'd like to write a view plugin that > can add/switch-between the various interpreters without having to open > up the preferences window. However, it seems that the preferences are > intimately tied to the actual data, so I have to actually look at > preferences pages instead of some function on a manager like > getActiveInterpreter() or setActiveInterpreter(). > > In a related vein, I'd like to be able to alter the pythonpath for a > given project I'm working on. For example, I might add a checkbox to > my view and when it's toggled, it adds/removes some path from the > project's python path. > > I was expecting some functions like addInterpreterPath() on some > manager that adds that path to the interpreters preferences page. Or > getProjectPythonPath(IProject) or setProjectPythonPath(IProject, > String) that could change the project's python path without dealing > with the actual preference pages. Just from my limited understanding > of the code, however, a lot of the "model" state is actually in the UI > itself instead of just in the managers. > > Is this functionality currently possible with the existing API without > having to jump through a bunch of hoops? > > Thanks, Josh > Not sure if it was you, but see: http://stackoverflow.com/questions/10587681/adding-python-interpreters-programmatically As for the project, you should do: nature = PythonNature.getPythonNature(IProject) pythonPath = nature.getPythonPathNature() pythonPath.setProjectSourcePath("/project/path1|/project/path2") You can look at those (IPythonNature and IPythonPathNature for more APIs for dealing with the project). Cheers, Fabio |
From: Josh S. <str...@gm...> - 2012-05-14 22:41:39
|
After digging around with the pydev code I've been trying to write a simple eclipse plugin that can change the active python interpreter or alter the current project's python path programmatically. For example, if I call PythonInterpreterManager.createInterpreterInfo(), I get the popup asking for which system libs to include on the path. With the info I get back, I can call addInterpreterInfo() to store it in the manager. What I don't understand though is what happens with this stored data. For example, if I call PythonInterpreterManager.getInterpreterInfos(), I don't get that new info I just added back. Looking at the code, it seems to be doing something more complex than just pulling from a list. I also don't see anything outside the preferences as to which interpreter is actually being used. Is it the selected one? Is there a way to query this without actually looking at the IPreferencePage? Because we have several diferrent interpreters, I'd like to write a view plugin that can add/switch-between the various interpreters without having to open up the preferences window. However, it seems that the preferences are intimately tied to the actual data, so I have to actually look at preferences pages instead of some function on a manager like getActiveInterpreter() or setActiveInterpreter(). In a related vein, I'd like to be able to alter the pythonpath for a given project I'm working on. For example, I might add a checkbox to my view and when it's toggled, it adds/removes some path from the project's python path. I was expecting some functions like addInterpreterPath() on some manager that adds that path to the interpreters preferences page. Or getProjectPythonPath(IProject) or setProjectPythonPath(IProject, String) that could change the project's python path without dealing with the actual preference pages. Just from my limited understanding of the code, however, a lot of the "model" state is actually in the UI itself instead of just in the managers. Is this functionality currently possible with the existing API without having to jump through a bunch of hoops? Thanks, Josh |
From: Fabio Z. <fa...@es...> - 2012-04-10 16:02:27
|
Hi Federico, You should probably ask at StackOverflow (the pydev-code list is not really suited for this kind of questions). Cheers, Fabio p.s.: maybe you could just add eclipse to the PATH :) On Tue, Apr 10, 2012 at 12:57 PM, federico vaggi <vag...@gm...> wrote: > Is there a Linux command to tell Eclipse to open an arbitrary file at a > given line using PyDev? A little google-fu lead me to this : > http://wiki.eclipse.org/Eclipse/OpenFileFeature > > However, since I installed eclipse by manually unpacking the downloadable > file into its own dir, typing 'eclipse' at the shell doesn't bring anything > up. > > Federico > > ------------------------------------------------------------------------------ > Better than sec? Nothing is better than sec when it comes to > monitoring Big Data applications. Try Boundary one-second > resolution app monitoring today. Free. > http://p.sf.net/sfu/Boundary-dev2dev > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: federico v. <vag...@gm...> - 2012-04-10 15:57:17
|
Is there a Linux command to tell Eclipse to open an arbitrary file at a given line using PyDev? A little google-fu lead me to this : http://wiki.eclipse.org/Eclipse/OpenFileFeature However, since I installed eclipse by manually unpacking the downloadable file into its own dir, typing 'eclipse' at the shell doesn't bring anything up. Federico |
From: Fabio Z. <fa...@es...> - 2012-04-10 14:40:59
|
Hi Andornaut, I've just fixed it and it should be available in the nightly build (please grab it and see if it works for you). Cheers, Fabio On Mon, Apr 9, 2012 at 2:46 PM, Andornaut <and...@gm...> wrote: > Hi Fabio, > > One of your changes to support django 1.4 autoreload does not work on > non-windows systems. > > pydevd.py#1167: > > popen = subprocess.Popen(args, env=new_environ, > creationflags=subprocess.CREATE_NEW_CONSOLE) > > But, subprocess.CREATE_NEW_CONSOLE does not exist on Linux. See python > 2.7 subprocess.py#443: > > if mswindows: > from _subprocess import (CREATE_NEW_CONSOLE ... > > This causes: > > File > "/home/user/.eclipse/org.eclipse.platform_3.7.0_1473617060/plugins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py", > line 1167, in restart_with_reloader > > AttributeError: 'module' object has no attribute 'CREATE_NEW_CONSOLE' > > Also, please note the typo in the release Highlights, the function > name should be "patch_django_autoreload()" not > "patch_django_auto_reload()". > > Thanks. > > On Fri, Apr 6, 2012 at 2:37 PM, Fabio Zadrozny <fa...@gm...> wrote: > > Hi All, > > > > PyDev 2.5.0 has been released > > > > Details on PyDev: http://pydev.org > > Details on its development: http://pydev.blogspot.com > > > > Release Highlights: > > ------------------------------- > > > > > > Django: > > > > Project wizard now properly supports Django 1.4. > > > > Django with auto-reload: > > > > pydevd.patch_django_auto_reload() now properly patches Django 1.4 for > > the remote debugger. > > pydevd.patch_django_auto_reload() now patches the Django reload to > show > > a console out of Eclipse so that Ctrl+C can be used. > > Created code template to pydevd.patch_django_auto_reload(). > > > > Interactive Console: > > > > The interactive console may be attached to the variables view (patch > > from Jonah Graham). See: > > http://pydev.org/manual_adv_interactive_console.html for details. > > Drag and Drop may be used to drag code from the editor to the > > interactive console (patch from Jonah Graham). > > When starting an interactive console, a link to configure the > > preferences is shown in the dialog. > > > > Code formatter: > > > > Multi-lines may be right-trimmed (patch from Haw-Bin Chai) -- option > > must be enabled in the code-formatting settings. > > Fixed issue where the auto code-formatting would end up formatting > > strings as regular code when the "format only changed lines" setting was > on. > > > > Others: > > > > pydevd.settrace() template now adds the debugger to the PYTHONPATH > > before actually doing the settrace(). > > ${pydevd_file_location} and ${pydevd_dir_location} variables were > added > > to the templates. > > The style of generated docstrings (EpyDoc or Sphinx) may be chosen in > > the preferences (patch from Paul Collins). > > Some performance improvements were done on the parser. > > > > Aside from the features above, lots of bugs were fixed in this release > > (including a deadlock in a race condition). > > > > > > What is PyDev? > > --------------------------- > > > > PyDev is a plugin that enables users to use Eclipse for Python, Jython > and > > IronPython development -- making Eclipse a first class Python IDE -- It > > comes with many goodies such as code completion, syntax highlighting, > syntax > > analysis, refactor, debug and many others. > > > > > > Cheers, > > > > -- > > Fabio Zadrozny > > ------------------------------------------------------ > > Software Developer > > > > Appcelerator > > http://appcelerator.com/ > > > > Aptana > > http://aptana.com/ > > > > PyDev - Python Development Environment for Eclipse > > http://pydev.org > > http://pydev.blogspot.com > > > > > ------------------------------------------------------------------------------ > > For Developers, A Lot Can Happen In A Second. > > Boundary is the first to Know...and Tell You. > > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > > http://p.sf.net/sfu/Boundary-d2dvs2 > > _______________________________________________ > > pydev-code mailing list > > pyd...@li... > > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Andornaut <and...@gm...> - 2012-04-09 17:46:27
|
Hi Fabio, One of your changes to support django 1.4 autoreload does not work on non-windows systems. pydevd.py#1167: popen = subprocess.Popen(args, env=new_environ, creationflags=subprocess.CREATE_NEW_CONSOLE) But, subprocess.CREATE_NEW_CONSOLE does not exist on Linux. See python 2.7 subprocess.py#443: if mswindows: from _subprocess import (CREATE_NEW_CONSOLE ... This causes: File "/home/user/.eclipse/org.eclipse.platform_3.7.0_1473617060/plugins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py", line 1167, in restart_with_reloader AttributeError: 'module' object has no attribute 'CREATE_NEW_CONSOLE' Also, please note the typo in the release Highlights, the function name should be "patch_django_autoreload()" not "patch_django_auto_reload()". Thanks. On Fri, Apr 6, 2012 at 2:37 PM, Fabio Zadrozny <fa...@gm...> wrote: > Hi All, > > PyDev 2.5.0 has been released > > Details on PyDev: http://pydev.org > Details on its development: http://pydev.blogspot.com > > Release Highlights: > ------------------------------- > > > Django: > > Project wizard now properly supports Django 1.4. > > Django with auto-reload: > > pydevd.patch_django_auto_reload() now properly patches Django 1.4 for > the remote debugger. > pydevd.patch_django_auto_reload() now patches the Django reload to show > a console out of Eclipse so that Ctrl+C can be used. > Created code template to pydevd.patch_django_auto_reload(). > > Interactive Console: > > The interactive console may be attached to the variables view (patch > from Jonah Graham). See: > http://pydev.org/manual_adv_interactive_console.html for details. > Drag and Drop may be used to drag code from the editor to the > interactive console (patch from Jonah Graham). > When starting an interactive console, a link to configure the > preferences is shown in the dialog. > > Code formatter: > > Multi-lines may be right-trimmed (patch from Haw-Bin Chai) -- option > must be enabled in the code-formatting settings. > Fixed issue where the auto code-formatting would end up formatting > strings as regular code when the "format only changed lines" setting was on. > > Others: > > pydevd.settrace() template now adds the debugger to the PYTHONPATH > before actually doing the settrace(). > ${pydevd_file_location} and ${pydevd_dir_location} variables were added > to the templates. > The style of generated docstrings (EpyDoc or Sphinx) may be chosen in > the preferences (patch from Paul Collins). > Some performance improvements were done on the parser. > > Aside from the features above, lots of bugs were fixed in this release > (including a deadlock in a race condition). > > > What is PyDev? > --------------------------- > > PyDev is a plugin that enables users to use Eclipse for Python, Jython and > IronPython development -- making Eclipse a first class Python IDE -- It > comes with many goodies such as code completion, syntax highlighting, syntax > analysis, refactor, debug and many others. > > > Cheers, > > -- > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > > Appcelerator > http://appcelerator.com/ > > Aptana > http://aptana.com/ > > PyDev - Python Development Environment for Eclipse > http://pydev.org > http://pydev.blogspot.com > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Fabio Z. <fa...@gm...> - 2012-04-06 18:37:50
|
Hi All, PyDev 2.5.0 has been released Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com Release Highlights: ------------------------------- Django: Project wizard now properly supports Django 1.4. Django with auto-reload: pydevd.patch_django_auto_reload() now properly patches Django 1.4 for the remote debugger. pydevd.patch_django_auto_reload() now patches the Django reload to show a console out of Eclipse so that Ctrl+C can be used. Created code template to pydevd.patch_django_auto_reload(). Interactive Console: The interactive console may be attached to the variables view (patch from Jonah Graham). See: http://pydev.org/manual_adv_interactive_console.html for details. Drag and Drop may be used to drag code from the editor to the interactive console (patch from Jonah Graham). When starting an interactive console, a link to configure the preferences is shown in the dialog. Code formatter: Multi-lines may be right-trimmed (patch from Haw-Bin Chai) -- option must be enabled in the code-formatting settings. Fixed issue where the auto code-formatting would end up formatting strings as regular code when the "format only changed lines" setting was on. Others: pydevd.settrace() template now adds the debugger to the PYTHONPATH before actually doing the settrace(). ${pydevd_file_location} and ${pydevd_dir_location} variables were added to the templates. The style of generated docstrings (EpyDoc or Sphinx) may be chosen in the preferences (patch from Paul Collins). Some performance improvements were done on the parser. Aside from the features above, lots of bugs were fixed in this release (including a deadlock in a race condition). What is PyDev? --------------------------- PyDev is a plugin that enables users to use Eclipse for Python, Jython and IronPython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer Appcelerator http://appcelerator.com/ Aptana http://aptana.com/ PyDev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com |
From: federico v. <vag...@gm...> - 2012-03-31 19:59:27
|
Hi everyone, does anyone know an easy way to set Eclipse using PyDev as the default editor invoked by %edit in iPython? Thanks a lot! Federico |
From: Andornaut <and...@gm...> - 2012-03-30 13:30:25
|
Done: https://sourceforge.net/tracker/?func=detail&aid=3513235&group_id=85796&atid=577329 Thanks. On Fri, Mar 30, 2012 at 6:35 AM, Fabio Zadrozny <fa...@es...> wrote: > Please report that as a bug in the sf tracker (I'm planning on releasing a > new version next week with proper Django 1.4 support). > > Cheers, > > Fabio > > On Thu, Mar 29, 2012 at 6:46 PM, Andornaut <and...@gm...> wrote: >> >> It appears that pydevd.patch_django_autoreload() may no longer work >> with Django 1.4. >> >> Breakpoints were working in my environment using the remote debugger >> with Django 1.3., but that is no longer the case now that I've >> upgraded to Django 1.4. >> >> Note that it works fine if the --noreload option is specified in the >> Run Configuration, but not if it is omitted. >> >> Thanks. >> >> >> ------------------------------------------------------------------------------ >> This SF email is sponsosred by: >> Try Windows Azure free for 90 days Click Here >> http://p.sf.net/sfu/sfd2d-msazure >> _______________________________________________ >> pydev-code mailing list >> pyd...@li... >> https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Fabio Z. <fa...@es...> - 2012-03-30 10:35:57
|
Please report that as a bug in the sf tracker (I'm planning on releasing a new version next week with proper Django 1.4 support). Cheers, Fabio On Thu, Mar 29, 2012 at 6:46 PM, Andornaut <and...@gm...> wrote: > It appears that pydevd.patch_django_autoreload() may no longer work > with Django 1.4. > > Breakpoints were working in my environment using the remote debugger > with Django 1.3., but that is no longer the case now that I've > upgraded to Django 1.4. > > Note that it works fine if the --noreload option is specified in the > Run Configuration, but not if it is omitted. > > Thanks. > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Andornaut <and...@gm...> - 2012-03-29 21:47:18
|
It appears that pydevd.patch_django_autoreload() may no longer work with Django 1.4. Breakpoints were working in my environment using the remote debugger with Django 1.3., but that is no longer the case now that I've upgraded to Django 1.4. Note that it works fine if the --noreload option is specified in the Run Configuration, but not if it is omitted. Thanks. |
From: Fabio Z. <fa...@es...> - 2012-03-22 10:38:14
|
Hi there, This is not the proper place for support questions. Such questions should be asked on http://stackoverflow.com (adding a 'pydev' tag in the question). Cheers, Fabio On Wed, Mar 21, 2012 at 11:22 PM, Jim Don <ji...@gm...> wrote: > ps by "eclipse machine" i meant linux ... sorry ... > > > On Wed, Mar 21, 2012 at 10:22 PM, Jim Don <ji...@gm...> wrote: >> >> Hi, >> >> I was hoping someone could give me a quick hand with remote debugging. >> >> I have an eclipse machine running pydev ... and python running on >> windows. >> >> For some reason when I try to set a breakpoint i see messages similar to >> "fail to set breakpoint in a file that does not exist" (Note: single >> stepping etc works just not breakpoints). The file names in the error >> message appear to have C:\ prefixed to them even though they are on linux >> (e.g. I see C:\home\etc etc etc when I expect /home/etc etc). >> >> I'm fairly certain I have setup 'pydevd_file_utils.py ' correctly simple >> because I can single step? >> >> Does anyone have any further tips? >> >> Jim > > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
From: Jim D. <ji...@gm...> - 2012-03-22 02:23:02
|
ps by "eclipse machine" i meant linux ... sorry ... On Wed, Mar 21, 2012 at 10:22 PM, Jim Don <ji...@gm...> wrote: > Hi, > > I was hoping someone could give me a quick hand with remote debugging. > > I have an eclipse machine running pydev ... and python running on windows. > > For some reason when I try to set a breakpoint i see messages similar to > "fail to set breakpoint in a file that does not exist" (Note: single > stepping etc works just not breakpoints). The file names in the error > message appear to have C:\ prefixed to them even though they are on linux > (e.g. I see C:\home\etc etc etc when I expect /home/etc etc). > > I'm fairly certain I have setup '*pydevd_file_utils.py* ' correctly > simple because I can single step? > > Does anyone have any further tips? > > Jim > |