Eclipse PyDev not displaying complete output - eclipse

I am trying to print a long list (over 50,000 elements) with python using eclipse editor. There is a strange problem. When i run the code, i am able to see only half of the output list.
when i ran this program with the python gui, it runs fine.
are there any settings to be considered in eclipse pydev?

I don't know (but don't think so) if there are any settings specific to pydev you should consider. But generally, Eclipse limits the console output. See Window -> Preferences -> Run/Debug -> Console: by default, "Limit console output" is checked and the limit is set rather low.

Related

PyDev only shows errors, warning, problems of opened files

I have no idea why, but the problems window in Eclipse shows only errors and warnings, despite having checked "Show all" and "Show all items".
I would like to see all problems of my python project, without having to open 100+ files.
This is expected.
PyDev does not show the errors for all files, only for the currently opened file (the main reason this is so is to keep PyDev faster and using less memory so that it does not have to be constantly computing that information on the background).
Still, it's possible to force PyDev to perform the code analysis of several files at once (and seeing the result on the problems view) by right-clicking a folder/project and selecting PyDev > Code Analysis -- note that this will be a 'snapshot' of the current situation and PyDev will only update that information when you redo that operation or open a Python file.

Ant buid clears eclipse console - how to stop?

whenever I do an ant build, my console results (Errors, warnings etc.) are deleted and it always Shows
"BUILD SUCCESSFUL
Total time: xxx milliseconds"
how can I prevent the ant file from overwriting my actual console Output?
thank you!
you can try this:
open "External Tools Configuration" (in my eclipse-ui its next to the green run button in the menu bar) -> open your ant runconfig -> go to "common" -> disable "Allocate console (necessary for input)"
this should prevent the overwriting of the console.
in my eclipse version (eclipse mars rc2) it leads to the situation that the current console is closed, but no ant console opens....i think this behaviour is not intended (maybe an eclipse bug). so its the half way to a solution: no ant output but still a deleted console output.
Maybe it works for your eclipse version
greetings

Is it possible to set which file to run by default in eclipse?

I'm writing a python project in Eclipse with the PyDev plug-in, which contains multiple files.
However I'm used to using visual studio, where it'll automatically find the main function of a project and run the program from there.
Eclipse will always run the file I am currently editing (which usually is a file containing function that are called from the main function).
Is it possible to set which file should be run then clicking run? I've looked at the launch options under Project->Properties->PyDev, but didn't find what I was looking for.
When you press the Debug or Run button (Debug on the left) Eclipse tries to intelligently determine what to launch based on your current editor.
You can change the behaviour by editing Window -> Preferences -> Run/Debug -> Launching -> Launch Operation as pictured below.
The default of launching the current editor works well for some languages, but not as well for Python when every single file is itself a valid program to run. In your case I recommend changing to Always launch the previously launched application.
You can create a custom run configuration.
Right click on your project > run as > run configurations
From here is just a matter of choosing your project type on the left hand side and filling in the required information. You can click 'Run' to use your new configuration.
To get to this configuration again, you can click the 'Run' drop down button in the eclipse tool bar and see all of your run configurations.
Hope this helps!

Eclipse CDT doesn't run the program

I have written a small piece of code in C++(gui/wxWidgets) . It compiles/ links without any errors and produces an executable that when launched from command line opens the desired 'Hello World!' window, but when tried from within eclipse (menu, toolbar or ctrl-F11), it doesn't run. A quick error dialog appears/disappears before it can be read. After many runs I could make out that of the two msgs it displays, one reads something like "Looking for executables...". Apparently eclipse is unable to get to the executable in the Debug folder.
I tried a console application which runs without any issue from within eclipse as well.
My installation is indigo on Ubuntu 12.04.
Any ideas what could be the problem?
Problem resolved.
There was no Launch Configuration in Project Properties -> Run/Debug Settings.
Added one with defaults and it worked.

How do I increase the capacity of the Eclipse output console?

Even with the "scroll lock" option enabled for the Eclipse console, eventually it overfills and starts auto-scrolling on me.
Is there some way of increasing the capacity of the console so that it stores more lines? I wasn't able to find the option.
Under Window > Preferences, go to the Run/Debug > Console section, then you should see an option "Limit console output." You can uncheck this or change the number in the "Console buffer size (characters)" text box below.
(This is in Galileo, Helios CDT, Kepler, Juno, Luna, Mars, Neon, Oxygen and 2018-09)
Open the Windows > Preferences menu.
Expand the Run/Debug > Console preferences.
Set the Console buffer size (characters) to something much bigger. 2147383647 / ~2GB is the upper limit (or 1000000 / ~1MB in older releases). Or just uncheck the Limit console output.
For CDT users / C/C++ build, also adjust the setting
in Window > Preferences
under C/C++ > Build > Console (!)
(This time in number of lines.)
This also affects the "CDT Global Build Console".
Alternative
If your console is not empty, right click on the Console area > Preferences... > change the value for the Console buffer size (characters) (recommended) or uncheck the Limit console output (not recommended):
On the MAC OS X 10.9.5 and Eclipse Luna Service Release 1 (4.4.1), its not found under the Window menu, but instead under: Eclipse > Preferences > Run/Debug > Console.
Window > Preferences, go to the Run/Debug > Console section >> "Limit console output.>>Console buffer size(characters):"
(This option can be seen in Eclipse Indigo ,but it limits buffer size at 1,000,000 )
Under Window > Preferences, go to the Run/Debug > Console section, then you should see an option "Limit console output." You can unchecked this or change the number in the "Console buffer size (characters)" text box below. Do Unchecked.
This is for the Eclipse like Galileo, Kepler, Juno, Luna, Mars and Helios.
Please go through the below guidelines. Do the changes accordingly.
For C++ users, to increase the Build console output size see here
ie Windows > Preference > C/C++ > Build > Console
Eclipse has limit of 32000 characters per line. If you have, for example JSONObject, which you want to log into console, you won't succeed. You can't handle this with the checkbox. Tested