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