clemos / haxe-sublime-bundle

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

Sublime Text 3 attempting to reload files from disk while editing #272

Open kennygoff opened 6 years ago

kennygoff commented 6 years ago

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:

Similar issues:

clemos commented 6 years ago

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:

clemos commented 6 years ago

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

kennygoff commented 6 years ago

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.

clemos commented 6 years ago

Ok. What Haxe version do you use ?

bleucitron commented 6 years ago

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

hexonaut commented 6 years ago

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.

iruffner commented 6 years ago

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?"

dionjwa commented 6 years ago

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?

kennygoff commented 6 years ago

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.