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

richtext.nim is to be changed #14

Open
retsyo opened this issue Jan 29, 2019 · 2 comments
Open

richtext.nim is to be changed #14

retsyo opened this issue Jan 29, 2019 · 2 comments

Comments

@retsyo
Copy link

retsyo commented Jan 29, 2019

sorry, I don't know git very well, so I just post the issue and solution here
in richtext.nim, every ".nim" should be erased, then all /' should be ., i.e.

import wx

{.noforward: on.}

include private.richtext.richtextdialogpage
include private.richtext.richtextbuffer
include private.richtext.richtextbulletspage
include private.richtext.richtextctrl
include private.richtext.richtextbackgroundpage
include private.richtext.richtextborderspage

include private.richtext.richtextfontpage
include private.richtext.richtextformatdlg
include private.richtext.richtexthtml
include private.richtext.richtextimagedlg
include private.richtext.richtextindentspage
include private.richtext.richtextliststylepage
include private.richtext.richtextmarginspage
include private.richtext.richtextprint
include private.richtext.richtextsizepage
include private.richtext.richtextstyledlg
include private.richtext.richtextstylepage
include private.richtext.richtextstyles
include private.richtext.richtextsymboldlg
include private.richtext.richtexttabspage
include private.richtext.richtextuicustomization
include private.richtext.richtextxml
@teras
Copy link

teras commented Feb 18, 2019

I don't know if this is a related issue, but I also have problems compiling example2 & rich text.

The error is as follows:

Hint: used config file '/usr/local/Cellar/nim/0.19.4/nim/config/nim.cfg' [Conf]
Hint: used config file '/Users/teras/Sources/wxnim/examples/purewx/nim.cfg' [Conf]
Hint: system [Processing]
Hint: example2 [Processing]
Hint: wx [Processing]
Hint: ospaths [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: math [Processing]
Hint: bitops [Processing]
Hint: algorithm [Processing]
Hint: unicode [Processing]
../../wxCompile.nim(14, 14) Warning: Compiling without wxWidgetsPath assumes wx-config is in your path [User]
../../wx.nim(15, 12) Warning: use {.experimental: "codeReordering.".} instead; {.noForward.} is deprecated [Deprecated]
Hint: richtext [Processing]
../../richtext.nim(4, 12) Warning: use {.experimental: "codeReordering.".} instead; {.noForward.} is deprecated [Deprecated]
../../richtext.nim(6, 44) Warning: using '.' instead of '/' in import paths is deprecated [Deprecated]
../../richtext.nim(6, 25) Error: cannot open file: private/richtext/richtextdialogpage/nim

@PMunch
Copy link
Owner

PMunch commented Feb 18, 2019

Yes, that's related. There is a PR which includes a fix to this problem, but some other parts of that are still under review. For now you can just manually drop all the .nim parts in richtext.nim and it should work fine.

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