clemos / haxe-sublime-bundle

Sublime Text bundle for Haxe programming language
Apache License 2.0
237 stars 86 forks source link

[refactoring branch] Auto-completion is broken on Windows 7 and ST3 #102

Closed nadako closed 11 years ago

nadako commented 11 years ago

I get this error when trying to auto-complete. The russian phrase there is "invalid folder name" or something like that. My project is in D:\Code\playground. Looks like you also need to replace the ":" character for temp folder name.

------- COMPLETION START -----------
OPTIONS:<haxe.completion.hx.types.CompletionOptions object at 0x0000000003EB1160>
MANUAL COMPLETION: True
CALLED ONCE
COMPLETE_CHAR:.
only_top_level: False
Traceback (most recent call last):
  File "C:\Users\nadako\SublimeText\sublime_plugin.py", line 358, in on_query_completions
    res = callback.on_query_completions(v, prefix, locations)
  File "C:\Users\nadako\SublimeText\Data\Packages/Haxe\haxe\completion\base.py", line 23, in on_query_completions
    return dispatch_auto_complete(project, view, prefix, locations[0])
  File "C:\Users\nadako\SublimeText\Data\Packages/Haxe\haxe\completion\base.py", line 70, in dispatch_auto_complete
    comps = handler(project, view, offset, prefix)
  File "C:\Users\nadako\SublimeText\Data\Packages/Haxe\haxe\completion\hx\base.py", line 94, in auto_complete
    res = create_new_completions(project, view, offset, options, prefix)
  File "C:\Users\nadako\SublimeText\Data\Packages/Haxe\haxe\completion\hx\base.py", line 156, in create_new_completions
    comp_build = create_completion_build(ctx)
  File "C:\Users\nadako\SublimeText\Data\Packages/Haxe\haxe\completion\hx\base.py", line 177, in create_completion_build
    temp_path, temp_file = hxtemp.create_temp_path_and_file(ctx.build, ctx.orig_file, tmp_src)
  File "C:\Users\nadako\SublimeText\Data\Packages/Haxe\haxe\temp.py", line 53, in create_temp_path_and_file
    temp_path = create_temp_path(build)
  File "C:\Users\nadako\SublimeText\Data\Packages/Haxe\haxe\temp.py", line 31, in create_temp_path
    os.makedirs(temp_path)
  File "X/os.py", line 266, in makedirs
NotADirectoryError: [WinError 267] Неверно задано имя папки: 'c:\\users\\nadako\\appdata\\local\\temp\\haxe_sublime_hxD:_Code_playground_'
frabbit commented 11 years ago

thx for reporting, should be fixed now