fdorg / flashdevelop

FlashDevelop is a free and open source code editor.
MIT License
825 stars 220 forks source link

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

Open markknol opened 4 years ago

markknol commented 4 years ago

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: https://github.com/fdorg/flashdevelop/commit/7325aacd84

image

SlavaRa commented 4 years ago

in progress

SlavaRa commented 4 years ago

@markknol hi, can you check the latest development build? https://flashdevelop.org/downloads/builds/