Skip to content

[Haxe3] Completion breaks when you have unsaved new hx file #3025

Open
@markknol

Description

@markknol

Completion is completely broken when you have a unsaved new file open.

Demonstration:

haxedevelop-new-hx-file-completion-error

The error:

Path cannot be the empty string or all whitespace.

   at System.IO.Directory.CreateDirectory(String path)
   at PluginCore.Helpers.FileHelper.WriteFile(String file, String text, Encoding encoding, Boolean saveBOM)
   at FlashDevelop.Docking.TabbedDocument.Save(String file, String reason)
   at HaXeContext.HaxeComplete330.SaveFile()
   at HaXeContext.HaxeComplete.StartThread[T](HaxeCompleteResultHandler`1 callback, Func`1 resultFunc)
   at HaXeContext.HaxeComplete.GetList(HaxeCompleteResultHandler`1 callback)
   at HaXeContext.Context.ResolveDotContext(ScintillaControl sci, ASExpr expression, Boolean autoHide)
   at ASCompletion.Completion.ASComplete.HandleDotCompletion(ScintillaControl sci, Boolean autoHide, List`1 list, Comparison`1 comparison)
   at ASCompletion.Completion.ASComplete.HandleDotCompletion(ScintillaControl sci, Boolean autoHide)
   at ASCompletion.Completion.ASComplete.OnChar(ScintillaControl sci, Int32 value, Boolean autoHide)

Version info:

I use a nightly build from this version:
7325aacd84

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions