haxe-sublime-bundle icon indicating copy to clipboard operation
haxe-sublime-bundle copied to clipboard

Sublime Text 3 attempting to reload files from disk while editing

Open kennygoff opened this issue 7 years ago • 9 comments

I'm having an issue where Sublime Text 3 is opening a file reload prompt when the Haxe plugin's autocomplete is triggered. It seems to consistently happen with , and ( which goes along with closed issues I've linked from the past. I'm getting following error in the console:

not well-formed (invalid token): line 20, column 15
invalid xml

This happened after upgrading to macOS High Sierra. I've uninstalled and reinstalled ST3, as well as cleared all preference settings as a "fresh install state".

Let me know if you need more details or if I can help with any fixes.

System details:

  • macOS High Sierra: 10.13.1
  • Upgraded from Sierra

Similar issues:

  • #127
  • #244

kennygoff avatar Nov 14 '17 15:11 kennygoff

The symptoms are similar to other issues because they are common to a lot of issues where the plugin "crashes" during completion, sometimes leaving the filesystem in a broken state... :S A few questions:

  • Did you install the bundle via Package Control ?
  • Can you otherwise run Haxe properly from the command line ?
  • Aren't there any other messages in the console (such as a stack trace, or whatever...) ?

clemos avatar Nov 17 '17 07:11 clemos

Also, as mentionned in other issues, you might want to check the permissions in your project folder.

clemos avatar Nov 17 '17 08:11 clemos

To answer your questions:

  1. Yes, the bundle is installed via the package manager
  2. Yes, I'm able to run haxe on the command line
  3. No, there's no other messages in the ST console
  4. My permissions are drwxr-xr-x on directories and -rw-r--r-- on the files.

I tried the console statements from this comment to test to make sure ST properly could access the directory and I had no errors.

kennygoff avatar Nov 20 '17 13:11 kennygoff

Ok. What Haxe version do you use ?

clemos avatar Nov 21 '17 07:11 clemos

I'm having the same issue since I upgraded to High Sierra a few days ago. Same permissions on files and folders. I tried reinstalling both Sublime and Haxe Sublime bundle from package manager.

I don't get any warning nor error in the sublime console though.

In my case, it seems to occur on autocomplete just after I saved a file and modified it again.

Haxe is 3.4.4

bleucitron avatar Nov 21 '17 09:11 bleucitron

Getting the same issue on OS X and Haxe 3.4.4. I'm getting an error of a missing library which leads me to believe the haxelib directory is not being picked up correctly. Is there a way to set this?

I am also using hvm to manage Haxe versions if that helps.

hexonaut avatar Dec 01 '17 18:12 hexonaut

I'm also seeing the same issue. I've updated my local haxe to run 3.4.7. Nothing in the console, just a dialog saying the file "Has Changed on disk. Do you want to reload it?"

iruffner avatar Mar 07 '18 16:03 iruffner

I love haxe and sublime text, but this issue is driving me crazy, and making editing haxe on a mac with sublime text almost unusable. Is there anything I can do to help with this issue? Are there any workarounds even?

dionjwa avatar May 07 '18 22:05 dionjwa

If you want to temporarily disable auto-complete, which is the cause of the errors, you can do that in the sublime settings for the plugin.

{
  "haxe_auto_complete": true
}

As for a workaround, I have done some digging and think I found the source of the error. Opened a PR #273 to get the work started, and its working so far for me if you want to install my branch, package auto-complete is back and without this popup.

kennygoff avatar May 08 '18 02:05 kennygoff