[IronPython] IronPy Tools for VS - Bugs #2

Steve Dower s.j.dower at gmail.com
Mon May 10 01:05:33 CEST 2010


Another set, this time with some slightly more helpful repro steps (I hope).

An exception is added to the devenv log file when triggering a
completion on an 3rd-level import (ie. import
moduleA.moduleB.<exception> or from moduleA.moduleB import
<exception>):

System.NullReferenceException: Object reference not set to an instance
of an object. at
Microsoft.PyAnalysis.Values.Namespace.AddReference(Node node,
AnalysisUnit unit) at
Microsoft.PyAnalysis.Values.ModuleInfo.GetMember(Node node,
AnalysisUnit unit, String name) at
Microsoft.PyAnalysis.Values.NamespaceSetExtensions.GetMember(ISet`1
self, Node node, AnalysisUnit unit, String name) at
Microsoft.PyAnalysis.ProjectState.GetModuleMembers(String[] names,
Boolean bottom) at
Microsoft.IronPythonTools.Intellisense.CompletionList.GetModules(IGlyphService
glyphService, String text) at
Microsoft.IronPythonTools.Intellisense.FromImportCompletionList.GetCompletions(IGlyphService
glyphService) at
Microsoft.IronPythonTools.Intellisense.CompletionSource.AugmentCompletionSession(ICompletionSession
session, IList`1 completionSets) at
Microsoft.VisualStudio.Language.Intellisense.Implementation.CompletionSession.Start()
at Microsoft.VisualStudio.Language.Intellisense.Implementation.CompletionBroker.TriggerCompletion(ITextView
textView) at Microsoft.IronPythonTools.Intellisense.IntellisenseController.TriggerCompletionSession(Boolean
completeWord) at
Microsoft.IronPythonTools.Intellisense.IntellisenseController.OnPreprocessKeyDown(Object
sender, TextCompositionEventArgs e) at
Microsoft.IronPythonTools.Intellisense.IntellisensePreKeyProcessor.FireTextInput(TextCompositionEventArgs
args) at Microsoft.IronPythonTools.Intellisense.IntellisensePreKeyProcessor.TextInput(TextCompositionEventArgs
args) at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<DispatchTextInputEvents>b__0(KeyProcessor
p, TextCompositionEventArgs args) at
Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c__DisplayClass1e`1.<Dispatch>b__1a()
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object
errorSource, Action call)


Completion displays only items matching characters already typed but
does not remember those characters if you continue to type:
Repro steps:
1. Type 's' within a method where 'self' and at least one other
variable starting with 's' are available
2. Press Ctrl+Space/Ctrl+J (completion dropdown appears)
3. Type 'elf' (the item 'self' does not become highlighted)
4. Delete 'elf', type 'self' (the item 'self' becomes highlighted, but
the line reads 'sself')
5. Commit the completion, 'sself' is replaced by 'self'

Typing '.' as part of an incremental search triggers completion

Only the first completion set for imports includes project packages
(after the first dot it falls back on members of the package specified
so far).

Sometimes (can't reliably reproduce) completion cannot be committed by
keyboard (can be by mouse, and can be aborted by keyboard)

Auto-indent keeps adding indentation for every new blank line.



More information about the Ironpython-users mailing list