Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange crash/recovery issue #56

Open
doubledave22 opened this issue Dec 9, 2022 · 5 comments
Open

Strange crash/recovery issue #56

doubledave22 opened this issue Dec 9, 2022 · 5 comments

Comments

@doubledave22
Copy link

So I hit save in Scite4autohotkey and my mouse/keyboard totally freeze up. Only solution is to unplug pc and plug back in. Get back in and load back up my (60k line) script and 30,000 lines are missing. It seems to have also changed encoding somehow and spanish characters like í and ó are replaced with a <?> looking character. Not only that, when I try to type and make changes weird spaces and characters are now appearing. I've tried uninstalling and re-installing Scite4autohotkey but it's still happening. Restarted pc multiple times... Thankfully everything was saved to github and my laptop has backups but what the heck is happening?

Now normally I'd be fine to just pull my code back from github and fix the encoding issues, but here's what happens now in Scite when I try to fix the encoding problems that appeared (watch second half of gif carefully)
https://gyazo.com/eddc9f0dbdd21f256181a5b81e8fbea5

Uninstall/reinstall Scite4autohotkey and it's still happening, tried restarting pc etc...

Version 3.0.06.01 - Based on SciTE 3.5.1
Built on Oct 12 2014 13:40:05

Thanks for any help!

@fincs
Copy link
Owner

fincs commented Dec 9, 2022

That's the old version from 2014. Have you tried the latest version (v3.1.0) from 2022?

@doubledave22
Copy link
Author

I have, I didn't personally like it. I think I was having trouble with fold.on.open=1 in my user properties. I will try again and let you know.

Notably forcing the File codepage to UTF-8 has stabilized the editor. Any idea why my "system default" was not longer operating normally? Is there a way to check my system default encoding somehow?

@doubledave22
Copy link
Author

on v3.1.0 it seems to be stable even on "system default" for encoding however it seems to be a different encoding as I am used to. It's fairly minor, certain hacky things like creating arrows with wingding characters is no longer working with either "system default" or utf-8 on v3.1.0.

I deeply rely on fold.on.open=1 in user settings and that doesnt seem to be working on my 3.1.0 still. Perhaps you could recommend a fix there also.

@fincs
Copy link
Owner

fincs commented Dec 10, 2022

I cannot reproduce the fold.on.open issue (it works for me, in SciTEUser.properties). As for the file encoding issue, I'd like to see what kind of "wingding" characters you're seeing. fwiw is the Unicode replacement character, used to signify an encoding error. The most reliable encoding to save your scripts is UTF-8.

@doubledave22
Copy link
Author

I've abused brackets in some pretty questionable ways and I guess on the new version fold.on.open can't handle some of these cases. Version 3.0.06.01 just happily folds everything but I guess I'm punished in v3.1.0 for these not so good practices. On a smaller simpler project the folding does work.

As for the encoding stuff, I was seeing "�" when importing my code directly from github in the place of certain characters such as ¢ or • but I wasn't in UTF-8 and I think github was converting it when I pushed the code so all that makes sense.

For the wingdings stuff, I wanted a simple way to put an arrow as the text of a button so I used the font wingdings with the button text "à" and this created a right arrow. Now all I see is the "à" as the button text. I'm sure this has to do with the encoding as well and it's not a huge deal, I will find another way to display the shapes I want.

My real only huge question mark is why did my whole system freeze up suddenly and my encoding change when saving my work on Scite4Autohotkey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants