rizonesoft / Notepad3

Notepad like text editor based on the Scintilla source code. Notepad3 based on code from Notepad2 and MiniPath on code from metapath. Download Notepad3:
https://www.rizonesoft.com/downloads/notepad3/
Other
5.14k stars 336 forks source link

My settings are getting reset randomly #1862

Closed xCONFLiCTiONx closed 4 years ago

xCONFLiCTiONx commented 4 years ago

I use Notepad3 a lot for quick code editing and sometimes just out of the blue, it opens to a 50% transparency or something near that.

I normally do have transparency set but it's set to 91%.

The following is what my Notepad3.ini file looks like AFTER this happens:

[Settings]
SettingsVersion=4
SaveRecentFiles=false
OpenWithDir=%USERPROFILE%\Desktop
Favorites=%APPDATA%\Rizonesoft\Notepad3\Favorites\
WordWrap=true
TabsAsSpaces=true
BackspaceUnindents=true
WordWrapIndent=0
ShowWordWrapSymbols=false
ShowSelectionMargin=false
SaveBeforeRunningTools=true
FileWatchingMode=2
ResetFileWatching=false
TransparentMode=true
[Window]
1366x768 HighDpiToolBar=0
1366x768 PosX=312
1366x768 PosY=8
1366x768 SizeX=683
1366x768 SizeY=728
1366x768 Maximized=true
1366x768 Zoom=100
[Styles]
ThemeFileName=Obsidian
[Recent Files]
[Recent Find]
[Recent Replace]

The following is what it's set to normally:

[Notepad3]
;Notepad3.ini=%USERPROFILE%\Notepad3.ini
;Notepad3.ini=%APPDATA%\Rizonesoft\Notepad3\Notepad3.ini
[Settings]
SettingsVersion=4
Favorites=%APPDATA%\Rizonesoft\Notepad3\Favorites\
OpenWithDir=%USERPROFILE%\Desktop
TransparentMode=true
SaveRecentFiles=false
WordWrap=true
WordWrapIndent=0
ShowWordWrapSymbols=false
ShowSelectionMargin=false
SaveBeforeRunningTools=true
FileWatchingMode=2
TabsAsSpaces=true
BackspaceUnindents=true
[Settings2]
;IMEInteraction=0
;AutoReloadTimeout=2000
;DateTimeLong=
;DateTimeShort=
;DefaultDirectory=
;DefaultExtension=txt
;DefaultWindowPosition=
;DenyVirtualSpaceAccess=0
;filebrowser.exe=minipath.exe
;FileCheckInverval=2000
;FileDlgFilters=
;FileLoadWarningMB=256
;MarkOccurrencesMaxCount=2000
;MultiFileArg=0
;NoCGIGuess=0
;NoFadeHidden=0
;NoFileVariables=0
;NoHTMLGuess=0
;PortableMyDocs=1
OpacityLevel=91
;FindReplaceOpacityLevel=50
;RelativeFileMRU=1
;ReuseWindow=0
;SciFontQuality=3
;SimpleIndentGuides=0
;SingleFileInstance=1
;ShellAppUserModelID=Notepad3
;ShellUseSystemMRU=1
;StickyWindowPosition=0
;TimeStamp=\\$Date:[^\\$]+\\$ | $Date: %Y/%m/%d %H:%M:%S $
;UseOldStyleBraceMatching=0
;WebTemplate1=https://google.com/search?q=%s
;WebTemplate2=https://en.wikipedia.org/w/index.php?search=%s
;ExtendedWhiteSpaceChars=:
;AutoCompleteWordCharSet=
;AutoCompleteFillUpChars=
;UpdateDelayMarkAllOccurrences=50
;CurrentLineHorizontalSlop=40
;CurrentLineVerticalSlop=5
;AdministrationTool.exe=
;DevDebugMode=0
;AnalyzeReliableConfidenceLevel=67
[Statusbar Settings]
;VisibleSections=0 1 12 14 2 4 5 6 7 8 9 10 11
;SectionPrefixes=Ln  ,Col  ,Sel  ,Sb  ,SLn  ,Occ  ,,,,,,,Ch  ,Repl  ,Eval  ,
;SectionPostfixes=,,,,,,,,,,,,,,,
;SectionWidthSpecs=30 20 20 20 20 20 0 0 0 0 0 0 20 20 20
;ZeroBasedColumnIndex=0
;ZeroBasedCharacterCount=0
[Toolbar Images]
;BitmapDefault=<[<drive>:|relative_]\path_to>\Toolbar.bmp
;BitmapHot=<[<drive>:|relative_]\path_to>\ToolbarHot.bmp
;BitmapDisabled=<[<drive>:|relative_]\path_to>\ToolbarDisabled.bmp
[Toolbar Labels]
;01=New
;02=Open
;03=Browse
;04=Save
;05=Undo
;06=Redo
;07=Cut
;08=Copy
;09=Paste
;10=Find
;11=Replace
;12=Word Wrap
;13=Zoom In
;14=Zoom Out
;15=Scheme
;16=Customize Schemes
;17=Exit
;18=Save As
;19=Save Copy
;20=Delete
;21=Print
;22=Favorites
;23=Add to Favorites
;24=Toggle Folds
;25=Execute Document
;26=Focused View
;27=Monitoring Log
;28=History
;29=Always On Top
[Custom Colors]
[Styles]
ThemeFileName=Obsidian
[Common Base]
[2nd Common Base]
[Text Files]
[ANSI Art]
[Apache Config Files]
[Assembly Script]
[AutoHotkey_L Script]
[AutoIt3 Script]
[AviSynth Script]
[Awk Script]
[Batch Files]
[C# Source Code]
[C/C++ Source Code]
[Cmake Script]
[Coffeescript]
[Configuration Files]
[CSS Style Sheets]
[D Source Code]
[Diff Files]
[Go Source Code]
[Inno Setup Script]
[Java Source Code]
[JavaScript]
[JSON]
[LaTeX Files]
[Lua Script]
[Makefiles]
[Markdown]
[MATLAB]
[Nim Source Code]
[NSIS Script]
[Pascal Source Code]
[Perl Script]
[PowerShell Script]
[Python Script]
[Registry Files]
[Resource Script]
[R-S-SPlus Statistics Code]
[Ruby Script]
[Rust Source Code]
[Shell Script]
[SQL Query]
[Tcl Script]
[TOML Config]
[VBScript]
[VHDL]
[Visual Basic]
[Web Source Code]
[XML Document]
[YAML]
[Window]
1366x768 HighDpiToolBar=0
1366x768 PosX=312
1366x768 PosY=8
1366x768 SizeX=683
1366x768 SizeY=728
1366x768 Maximized=true
1366x768 Zoom=100
[Suppressed Messages]
MsgFileUnknownExt=6
[Recent Files]
[Recent Find]
[Recent Replace]
RaiKoHoff commented 4 years ago

Hello @xCONFLiCTiONx ,

I just created an experimental version where the shared access to Notepad3.ini file by multiple NP3 instances is synchronized by a LOCK (shared read / exclusive write).

Feel free to test the XPERIMENTAL version "Notepad3Portable_5.20.217.1_BETA.paf.exe.7z" . See "Notepad3 BETA-channel access issue #1129" or here Notepad3Portable_5.20.217.1_BETA.paf.exe.7z.

Note: "Notepad3Portable BETA" can be used in "2 flavors" (with or without the extension ".7z").

Your comments and suggestions are welcome... 😃

hpwamr commented 4 years ago

Hello @RaiKoHoff , Just a reflection on this experimental: Could the issue #1548 be related to this one? :thinking:

RaiKoHoff commented 4 years ago

@hpwamr : Not really, the corruption of the .ini-file from asynchronous concurrent write access is not related to the undo/redo issue (#1548) (except the Settings-File is also loaded to the Editor). Ed.: But I thought, there was another issue related to .ini-file corruption ... 🤔 ?

xCONFLiCTiONx commented 4 years ago

@RaiKoHoff Thank you... I installed it to my computer just now so I'll keep an eye on things and let you know if I find any issues.

RaiKoHoff commented 4 years ago

Hello @xCONFLiCTiONx ,

I just made some bug fixes to the concurrent .ini-file access synchronized by a LOCK (shared read / exclusive write) and integrated it for the upcoming Release Candidate (RC1).

Feel free to test the RC prototype version "Notepad3Portable_5.20.218.1_RC1.paf.exe.7z" . See "Notepad3 BETA-channel access issue #1129" or here Notepad3Portable_5.20.218.1_RC1.paf.exe.7z.

Note: "Notepad3Portable BETA" can be used in "2 flavors" (with or without the extension ".7z").

Your comments and suggestions are welcome... 😃

RaiKoHoff commented 4 years ago

I did a major rework of the introduced concurrent settings-file read/write access on closing multiple instances at the same time.

Feel free to test the RC prototype version "Notepad3Portable_5.20.312.1_RC3.paf.exe.7z" . See "Notepad3 BETA-channel access issue #1129" or here Notepad3Portable_5.20.312.1_RC3.paf.exe.7z.

Note: "Notepad3Portable BETA" can be used in "2 flavors" (with or without the extension ".7z").

xCONFLiCTiONx commented 4 years ago

I've not had any issues yet. Thx for resolving this!

hpwamr commented 4 years ago

Hello @xCONFLiCTiONx , As far as I'm concerned, I think you (requester) can close this issue...