Fire fail on autocomplete code

IDE: Fire
Version: 8.4.96.2033
Description:

Fail to select suggestions on drop list if you had typed at least one lettler or use the
keyboard to select the option.

To generate it, type:

var c = []

After you type “var” and press space will launch the error:

Expected Behavior:

Edit the code using autocomplete feature.

Actual Behavior:

Error:

Exception Name: NullReferenceException
Description: Null Reference Exception
User Info: (null)

0 CoreFoundation 0x00007fff8be3e1cb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fff9f8e38fa objc_exception_throw + 48
2 CoreFoundation 0x00007fff8beb66e5 +[NSException raise:format:] + 197
3 Fire 0x0000000104171d37 RaiseNullReferenceException + 39
4 Fire 0x00000001044ecdfc -[__RemObjects_Fire_ProjectSystem_TextFile__TextFile.CodeCompletionResultWrapper hasTabPositions] + 44
5 Fire 0x000000010459ae1e -[FCECanvasCodeSnippet acceptCodeCompletionWithTypedString:] + 830
6 Fire 0x0000000104589b5b -[FCECanvasCodeSnippet keyDown:] + 1051
7 AppKit 0x00007fff8a34defc -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 4086
8 AppKit 0x00007fff8a34cb3a -[NSWindow(NSEventRouting) sendEvent:] + 541
9 AppKit 0x00007fff8a1f16d7 -[NSApplication(NSEvent) sendEvent:] + 2691
10 AppKit 0x00007fff89add455 -[NSApplication run] + 1002
11 AppKit 0x00007fff89aa8aea NSApplicationMain + 1237
12 Fire 0x0000000104171c8d +[__RemObjects_Fire_Program Main::] + 237
13 libdyld.dylib 0x00007fffa01bc255 start + 1

Thanks, logged as bugs://76002

What language? C#? Swift?

Swift

I cannot reproduce this. can you give me a full project where this shows?

Any project. Even a new one.

Using Swift to .Net

It occur when a drop down list appear to you select to autocomplete. Can be a method from a class or any other thing.

Try this:

var c = []
c.a

And select append

A new project create now.

http://share.dwarfland.com/hKh6, http://share.dwarfland.com/hKkH

what am i missing?

Yes. The same.
If don’t occur the first time, delete the a write it again, wait the drop list appear and press enter key.

If you need I can give you access using Team Viewer to you see and check what was necessary.

Did you make the error appear?

No, i can’t see this. can you retest with tomorrow’s new beta?

ok. I will do

1 Like

Tested and fail sometimes on new Beta (8.4.96.2037).

Works sometimes and fail sometimes.
When fail is we press ESC key twice to pop-up menu appear again, then works.

If works on first attempt and you delete the letter and type again can fail.

When fail, the same error is showed like in image previously posted.

hmm. consistent steps really would be helpful :frowning:

The same example that I used previously.

Var c = []
c.a

And try select append

Works sometimes. But any code you try to edit will give the error.
Any code you try to edit will give the error when pop-up menu appear to you select something to autocomplete.

If you try to type (not copy and paste) the code below you will get the error many times.

extension Int8 {
	init(_ text: String, radix: Int8 = 10) {
		if (radix > 16) {
			return 0
		}
		let digits = "0123456789abcdef"
		var result : Int8 = 0
		for digit in text.ToLower() {
			let val = text.IndexOf(digit)
			if (val >= 0) {
				if val >= radix {
					return 0
				}
				result = result * radix + val
			} else {
				return 0
			}
		}
		return result
	}
}