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

fresh compile works but compiling again raises OsError [windows] #12249

Closed
sk-Prime opened this issue Sep 24, 2019 · 2 comments
Closed

fresh compile works but compiling again raises OsError [windows] #12249

sk-Prime opened this issue Sep 24, 2019 · 2 comments

Comments

@sk-Prime
Copy link

sk-Prime commented Sep 24, 2019

the code snippet i added below compiles first time, i mean fresh compile works fine, but if you try to compile it again it produces osError. the error log is at the bottom of the code snippet. the problem is not with this package, because i tried another package and faced same problem. Previous version of nim worked fine.

edit: compiling with -f switch produces no error, but if i remove -f same error appears.

Example

import nigui

app.init()

var window = newWindow("Hello World")
window.width= 300
window.height= 130

var container = newLayoutContainer(Layout_Vertical)
window.add(container)

var label = newLabel("Hello world")
label.fontSize = 50.0
container.add(label)

window.show()
app.run()
oserr.nim(94)            raiseOSError
Error: unhandled exception: The filename, directory name, or volume label syntax is incorrect.
 [OSError]

though i can compile echo "hello world" as many time as i want without any issue.

Additional Information

  • It works previous version of nim which is 0.20.2
Nim Compiler Version 1.0.0 [windows amd64]
@narimiran
Copy link
Member

This is probably a duplicate of #12242

@narimiran
Copy link
Member

It should be fixed by #12265

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

2 participants