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

Build with Debug version: Assertion failed #89

Closed
inkydragon opened this issue Apr 11, 2022 · 2 comments
Closed

Build with Debug version: Assertion failed #89

inkydragon opened this issue Apr 11, 2022 · 2 comments

Comments

@inkydragon
Copy link
Contributor

Clone and build, then Assertion failed.

image

If I ignore this error, the program runs normally.
Build the release version, the program also works fine.

assert((startPosStyling + validLen) < Length());

In debug mode, all three values are 0.

Version

  • npn: dev branch - v0.4.9 release
  • Qt 5.15.2 - MSVC 2019 x64
  • OS: Windows 10 Version 2009 [winnt version 10.0.19044]
  • cl 19.29.30137
@dail8859
Copy link
Owner

Thanks for opening this issue. This was discussed in #63 and the conclusion was the Lexilla project would need to fix this (ScintillaOrg/lexilla#35), however that project didn't seem to concerned with the assertion error. As far as I know there's nothing Notepad Next can do differently. I'll keep this open for now to see if there can be some simple changes in the Lexilla project.

@diegoiast
Copy link
Contributor

diegoiast commented Apr 16, 2022

You can define NDEBUG while building, this will remove that issue. I did that on the CMake port here: #100

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

3 participants