Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 170967 - PythonDebugConsole can't handle for loop syntax
PythonDebugConsole can't handle for loop syntax
Product: python
Classification: Unclassified
Component: Debugger
PC All
: P3 (vote)
Assigned To: jymen
Depends on:
  Show dependency treegraph
Reported: 2009-08-27 00:08 UTC by wmsky33
Modified: 2017-06-23 08:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
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\", 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.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo