pkulchenko / wxlua

wxlua: Lua bindings for wxWidgets cross-platform GUI toolkit; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and wxWidgets 3.x
306 stars 59 forks source link

editor.wx.lua with wxWidgets 3.1.1 #25

Closed sonoro1234 closed 5 years ago

sonoro1234 commented 5 years ago

editor.wx.lua with wxLua compiled with wxWidgets/wxWidgets tag 3.1.1 dont show lua markdown but instead clipboard01

Any clues?

pkulchenko commented 5 years ago

@sonoro1234, I'll have to check. I'm using a slightly earlier version of 3.1.1 and don't see this issue.

sonoro1234 commented 5 years ago

Yes the issue is generated in some commit between your master and tag 3.1.1. Watching the commits that affect stc didnt give me any clue :-(

print("wxstc.wxSTC_LEX_LUA",wxstc.wxSTC_LEX_LUA)
editor:SetLexer(wxstc.wxSTC_LEX_LUA)
print(editor:GetLexer())

prints wxstc.wxSTC_LEX_LUA 15 0

sonoro1234 commented 5 years ago

@pkulchenko I have found that SCI_LEXER dont gets defined (Althought it seems to be defined in cmakelist.txt) https://github.com/wxWidgets/wxWidgets/blob/v3.1.1/build/cmake/lib/stc/CMakeLists.txt#L176

The above file is missing

wx_lib_compile_definitions(wxscintilla PRIVATE
    SCI_LEXER
    LINK_LEXERS
)

which solves the problem but I dont know how to PR to wxWidgets for making tag 3.1.1 to work I have made a PR to master but my fork has a branch for 3.1.1 in https://github.com/sonoro1234/wxWidgets