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

filePicker example does not compile #9

Closed
matkuki opened this issue Mar 8, 2021 · 4 comments
Closed

filePicker example does not compile #9

matkuki opened this issue Mar 8, 2021 · 4 comments

Comments

@matkuki
Copy link

matkuki commented Mar 8, 2021

Hi,

Trying to compile the filePicker.nim give the following error:

C:\Users\someuser\.nimble\pkgs\neel-0.2.7\neel.nim(6, 20) Warning: inherit from a more precise exception type like ValueError, IOError or OSError. If these don't suit, inherit from
 CatchableError or Defect. [InheritFromException]
C:\Users\someuser\.nimble\pkgs\jester-0.5.0\jester.nim(1298, 9) Hint: Asynchronous route: theRouter. [User]
C:\Users\someuser\Desktop\Neel-master\examples\filePicker.nim(21, 9) template/generic instantiation of `startApp` from here
C:\Users\someuser\.nimble\pkgs\neel-0.2.7\neel.nim(241, 16) template/generic instantiation of `router` from here
C:\Users\someuser\.nimble\pkgs\jester-0.5.0\jester.nim(1304, 35) template/generic instantiation of `async` from here
C:\Users\someuser\.nimble\pkgs\neel-0.2.7\neel.nim(292, 88) Error: type mismatch: got <string, proc (req: Request): string{.noSideEffect, gcsafe, locks: 0.}>
but expected one of:
proc `/`(head, tail: string): string
  first type mismatch at position: 2
  required type for tail: string
  but expression 'path' is of type: proc (req: Request): string{.noSideEffect, gcsafe, locks: 0.}
3 other mismatching symbols have been suppressed; compile with --showAllMismatches:on to see them

expression: getCurrentDir() / "web" / path

Any ideas on how to solve this?
Specs:

  • Windows 10
  • Nim Devel
@Niminem
Copy link
Owner

Niminem commented Mar 9, 2021

@NecroticOoze
Can you check this when you get a chance? He's using Windows 10 and the devel version of Nim.

@matkuki
We'll get you squared away man

@Niminem
Copy link
Owner

Niminem commented Mar 19, 2021

@matkuki Can you switch to v4.0 and try the demo? It may be an issue the devel branch is causing, I've been using this successfully up to v4.0 on Mac, Windows, Linux

@Niminem
Copy link
Owner

Niminem commented Mar 19, 2021

@matkuki Let me know if this is still an issue, I'll get to this as soon as possible and get you squared away

@matkuki
Copy link
Author

matkuki commented Mar 20, 2021

Hey @Niminem ,
What is v4.0? Looking at the repository tags, it goes from v0.2.0 to v0.2.7?
Am I missing something?

Tried with v0.2.0, but then I get this:

...\Neel-0.2.0\filePicker.nim(21, 9) Error: type mismatch: got <startURL: string, assetsDir: string, size: array[0..1, int]>
but expected one of:
template startApp(startURL, assetsDir: string; appMode: bool = true)
  first type mismatch at position: 3
  unknown named parameter: size

expression: startApp(startURL = "index.html", assetsDir = "web", size = [400, 250])

Niminem added a commit that referenced this issue Mar 30, 2021
fix #9, the example now compiles
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