Comments (4)
Looks like this folder is used by the function DoCompare
where temporary files to be compared are created... I would highly recommend to use e.g. $(PLUGINS_CONFIG_DIR)\HexEdit\Compare
or %TEMP%\HexEdit\Compare
instead.
The root issue is that a folder Notepad++\plugins\Compare
is created by the plugin. This folder is just not applicable for the task of temporary files comparison.
from npp_hexedit.
The same behavior with HexEditor_0.9.5.19_x86.zip
from npp_hexedit.
@d0vgan See
NPP_HexEdit/HexEditor/src/Hex.cpp
Lines 329 to 353 in 4af4aea
Seems that is expected behaviour. Since 7.6.x it might make sense to use the plugin subdir to create such a dir.
Additional observation:
The conf dir from NPPM_GETPLUGINSCONFIGDIR is not called first to retrieve the needed buffer size, but called just with MAX_PATH (see https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file, so maybe 260), so if the path exceed that size NULL is provided from N++. This might be the root cause of remaining #1 issues.
from npp_hexedit.
Ah, I forgot I can build the plugin myself :)
IMHO, this line in "Hex.cpp" just should not be there:
*_tcsrchr(cmparePath, '\\') = NULL;
What it does is it jumps one level up from the "Config" folder.
Why???
I have no answer for this.
I've started to experiment with the code (such as removing the mentioned line). In such case, the "Compare" folder is created under the "Config" folder, but after a few additional actions (when I checked how the comparison works) the plugin just crashed :( That killed my enthusiasm of further experiments.
from npp_hexedit.
Related Issues (20)
- Creates empty 'Compare' subfolder even when no compares have been performed HOT 3
- Are you interested in a nice new icon for this add-on?
- HexEditor x64 binary makes Notepad++ v8.3.0 crash HOT 2
- Displayed hex does not copy and paste HOT 1
- Intel Hex files don't open correctly
- RFH Enhancement ASCII Only mode HOT 1
- Bug with utf-16 file
- copying 0x00 still replaces with 0x20 HOT 3
- Crash while having selected lines
- How to set more extentions?
- changing the duration of the program start HOT 1
- HexEdit misinterprets file and saves incorrectly
- Unicode search is oblivious to NULL
- Search does not find UTF8 values
- UTF-16 BE BOM (Big Endian) encoding adds redundant characters when viewed in Hex Editor.
- New conversion formats HEX-BIN(binary), ASCII-BIN, BIN-ASCII
- 十六进制显示异常 HOT 1
- context menu copy (no response)
- Hijacking this issue tracker for XmlNavigator plugin HOT 2
- hex editor bom error ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npp_hexedit.