This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 170967

Summary: PythonDebugConsole can't handle for loop syntax
Product: python Reporter: wmsky33 <wmsky33>
Component: DebuggerAssignee: jymen <jymen>
Status: CLOSED WONTFIX    
Severity: blocker CC: Jenselme
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description wmsky33 2009-08-27 00:08:35 UTC
In the PythonDebugConsole the simple for loop below resulted in a syntax error.

>>>for p in os.environ.keys():	
Error on CMD
Traceback (most recent call last):
  File "C:\Documents and Settings\bills\.netbeans\6.7\config\nbPython\debug\nbpythondebug\jpydaemon.py", line 1033, in
dealWithCmd    code = compile( arg ,"<string>" , cmdType)
  File "<string>", line 1
    for p in os.environ.keys():
                              ^
SyntaxError: mismatched input '\n' expecting INDENT

The same line does not result in a syntax error in the PythonInteractiveConsole window, although the
PythonInteractiveConsole has it's own problems, namely:
-- when Enter is pressed at the end of a line, the cursor is left at the beginning of that line instead of the beginning
of the next line; no big deal
-- if you enter a line that requires indenting the next line, pressing tab seems to do nothing, until you finish the
line and hit Enter. Then the tab takes effect. Again not a big problem, just ugly.
Comment 1 Jenselme 2017-06-22 21:52:20 UTC
Should be solved with the new debugger when we add it. The debugger is currently disabled. Closing this since there is no point into importing it elsewhere.
Comment 2 Jiri Kovalsky 2017-06-23 08:06:32 UTC
Thanks for your evaluation Julien. Reporter, if you think your issue is still valid and needs to be addressed, don't hesitate to reopen it with additional information. Closing for now.