Forum Index
IDE settings
Goto page 1, 2
 
Author Message
pjc30943



Joined: 02 Dec 2005

Posted: 31 August 2007, 1:27 AM    Post subject: IDE settings

How can the IDE be changed to not always jump to the nearest error or warning? I scroll in the file somewhere, switch to a different pane, and when switching back it immediately goes to the first error again. Very annoying Very Happy

Also, is there any way to make the default debug window taller?

I scanned through the setting files, but couldn't find anything related to these.
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Location: Portland, OR

Posted: 31 August 2007, 2:24 AM    Post subject: Re: IDE settings

pjc30943 wrote:
How can the IDE be changed to not always jump to the nearest error or warning? I scroll in the file somewhere, switch to a different pane, and when switching back it immediately goes to the first error again.
I can't reproduce this by doing what I think you're describing. Can you describe more specifically each step to reproduce the problem?

pjc30943 wrote:
Also, is there any way to make the default debug window taller?
The height of the output window (of which the debug window is a part) is stored in the User Properties file when you exit. When the IDE is restarted, the output window height is set from the stored value.

The entry in the User Properties file looks like this:
Code:
app.output.height=135
Back to top
pjc30943



Joined: 02 Dec 2005

Posted: 31 August 2007, 20:16 PM    Post subject:

Edit: Changing "app.output.height" didn't alter the window size even after exiting; it was set to 0 by default, so I assume the value stored is added to the current default window size (about five lines)? I tried values from 20 to the 135 mentioned.
-------------------------------

Ah, okay, thanks.

As for jumping to the nearest error or warning, here is one sequence:

After compiling and downloading, the IDE highlights and jumps to the line of the first warning.

Say I'm working on another piece of code. I scroll away from this highlighted line to check something. Then I switch back to the header file (another pane), to--for example--check the value of a constant.
When switching back to the first pane mentioned, the cursor is no longer where I left it, but instead the file has scrolled back to the first warning/error again. If the code I want is at the very end of the file, then every time the file must be scrolled through again to find it--this is quite time consuming.

I'm sure there is just a setting to flip this feature off! Obviously, if there are no warnings or errors, no jumping occurs.
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Location: Portland, OR

Posted: 31 August 2007, 21:40 PM    Post subject:

pjc30943 wrote:
Changing "app.output.height" didn't alter the window size even after exiting

The app.output.height value is supposed to be updated automatically - no need to manually adjust it. If yours is not getting updated when the IDE exits then something is happening that is different than we anticipated. What OS are you using - Vista perhaps? Also, what means do you use to exit the IDE (e.g. click on the close box, select Exit from the File menu, right click on the task bar icon and select close, etc.).
Back to top
pjc30943



Joined: 02 Dec 2005

Posted: 31 August 2007, 23:22 PM    Post subject:

EDIT: Anyone find or know solutions for either of these?

dkinzer wrote:
The app.output.height value is supposed to be updated automatically - no need to manually adjust it. If yours is not getting updated when the IDE exits then something is happening that is different than we anticipated. What OS are you using - Vista perhaps? Also, what means do you use to exit the IDE (e.g. click on the close box, select Exit from the File menu, right click on the task bar icon and select close, etc.).


XP.
After exiting using the menu, the window retains its size--until the program is recompiled or loaded again.
The window then defaults back to the small size, and all debugging is through the small windows.
Should the larger (saved) window size be desired, the window has to be closed, then opened again using two presses of F8. It would be best if it remembered after loading, since--presumably--that is when most debugging takes place.
Back to top
pjc30943



Joined: 02 Dec 2005

Posted: 10 September 2007, 16:59 PM    Post subject:

Anyone find or know solutions for either of these?
Back to top
stevech



Joined: 23 Feb 2006

Posted: 11 September 2007, 2:08 AM    Post subject:

guess: XP logged in user lacks permissions so that the registry can be updated? Most people use admin priv. login so this may be n/a
Back to top
pjc30943



Joined: 02 Dec 2005

Posted: 12 September 2007, 18:20 PM    Post subject:

stevech wrote:
guess: XP logged in user lacks permissions so that the registry can be updated? Most people use admin priv. login so this may be n/a


Thanks for the thought. I'm already admin as you guessed...

The main time-consumer is the focus always being taken back to errors when switching panes; this should be a local IDE setting that wouldn't be affected by the registry, presumably.
Back to top
twesthoff



Joined: 17 Mar 2006
Location: Virginia, USA

Posted: 14 October 2007, 15:54 PM    Post subject:

pjc30943 wrote:


As for jumping to the nearest error or warning, here is one sequence:

After compiling and downloading, the IDE highlights and jumps to the line of the first warning.

Say I'm working on another piece of code. I scroll away from this highlighted line to check something. Then I switch back to the header file (another pane), to--for example--check the value of a constant.
When switching back to the first pane mentioned, the cursor is no longer where I left it, but instead the file has scrolled back to the first warning/error again. If the code I want is at the very end of the file, then every time the file must be scrolled through again to find it--this is quite time consuming.

I'm sure there is just a setting to flip this feature off! Obviously, if there are no warnings or errors, no jumping occurs.


Has anyone found a solution to this problem? After compiling, I'd like it to leave the cursor where it was in my code. Then if I double-click on the error/warnings take me to that line. I spend a lot of time going back and finding where I was working in the code each time I compile...
Back to top
dlh



Joined: 15 Dec 2006

Posted: 14 October 2007, 16:31 PM    Post subject:

I use UltraEdit for all editing and only use the IDE to compile. Not only does that keep the cursor where I was, I can edit from any machine on my network as the compiler checks for changes before compiling.
Back to top
pjc30943



Joined: 02 Dec 2005

Posted: 05 February 2008, 4:54 AM    Post subject:

Anyone figure out yet how to turn off jumping to errors after compiling?
Back to top
mikep



Joined: 24 Sep 2005
Location: Austin, TX

Posted: 05 February 2008, 5:08 AM    Post subject:

pjc30943 wrote:
Anyone figure out yet how to turn off jumping to errors after compiling?
Yep. Write code that doesn't have syntax errors Laughing
Back to top
pjc30943



Joined: 02 Dec 2005

Posted: 05 February 2008, 5:50 AM    Post subject:

mikep wrote:
pjc30943 wrote:
Anyone figure out yet how to turn off jumping to errors after compiling?
Yep. Write code that doesn't have syntax errors Laughing



Very Happy Thanks Mike

They're actually warnings though: such as "statements __ will never exectute" etc., which clearly I know if I intentionally have a test case with an infinite while loop...
Back to top
mikep



Joined: 24 Sep 2005
Location: Austin, TX

Posted: 05 February 2008, 6:21 AM    Post subject:

pjc30943 wrote:
Anyone figure out yet how to turn off jumping to errors after compiling?
I think displaying compile errors is a good thing. If you want to turn off warning messages then you can do that with the --warn compiler option. The one you probably want to add to your PJT file is:
Code:
--warn=no-useless-code
Back to top
Don_Kirby



Joined: 15 Oct 2006

Posted: 05 February 2008, 11:38 AM    Post subject:

mikep wrote:
I think displaying compile errors is a good thing.


I agree Mike, but the issue here isn't displaying the errors, it's that the IDE focuses the cursor on the first error after compiling, relocating it from wherever it was previously in the code.

I think the key here is to keep the output/debug window from getting focus during the compile.

-Don
Back to top
Display posts from previous:   
Page 1 of 2

 



ZBasic Microcontrollers Home
All content Copyright © 2005, 2006, 2007, 2008 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group