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

Fix CI: upload-artifacts #250

Merged
merged 10 commits into from
Nov 20, 2024
Merged

Fix CI: upload-artifacts #250

merged 10 commits into from
Nov 20, 2024

Conversation

HugoGranstrom
Copy link
Collaborator

It's due time we try to fix the preview in the CI

@HugoGranstrom
Copy link
Collaborator Author

Strange, I can't reproduce the error locally :/

@HugoGranstrom
Copy link
Collaborator Author

Seems like it's happyx that gives us troubles now. Haven't dug into the code much but the error is quite confusing:

/home/runner/work/nimib/nimib/docsrc/interactivity_nbCodeToJs_7.nim(15, 10) template/generic instantiation of `appRoutes` from here
/home/runner/work/nimib/nimib/docsrc/interactivity_nbCodeToJs_7.nim(19, 5) template/generic instantiation of `buildHtml` from here
/home/runner/work/nimib/nimib/docsrc/interactivity_nbCodeToJs_7.nim(21, 8) Error: expression ' {.emit: ev, " = event;".}' has no type (or is ambiguous)

@HugoGranstrom
Copy link
Collaborator Author

@quimt do you have any ideas what might be going on?

@quimt
Copy link
Contributor

quimt commented Nov 18, 2024

@quimt do you have any ideas what might be going on?

I don't know in detail, but happyx does use macros to produce emit pragmas. I haven't encountered this bug using happyx by itself, so I suspect it has something to do with how happyx interacts with nimib's protocol for sandboxing the code. Whatever the reason, emiting something other than a string doesn't make sense as far as I know.

@HugoGranstrom
Copy link
Collaborator Author

I don't know in detail, but happyx does use macros to produce emit pragmas. I haven't encountered this bug using happyx by itself, so I suspect it has something to do with how happyx interacts with nimib's protocol for sandboxing the code. Whatever the reason, emiting something other than a string doesn't make sense as far as I know.

Thanks for the leads :D Judging from the error message and this code: https://github.com/HapticX/happyx/blob/3b1d08aaed757cd1747c50a5f1d480444fa18b20/src/happyx/private/macro_utils.nim#L1065
It seems like whatever args[1][0] is, it isn't what is't supposed to be. I'll continue digging.

@HugoGranstrom
Copy link
Collaborator Author

The HappyX problem is solved! Now it's just CI stuff that's not working. Will look at it some other day

@HugoGranstrom
Copy link
Collaborator Author

Ahh, the changes I make to the CI files aren't run... So I will have to merge the changes and just hope it works and then test it with a new PR 🙈

@HugoGranstrom HugoGranstrom merged commit 2498063 into main Nov 20, 2024
6 of 7 checks passed
@HugoGranstrom HugoGranstrom mentioned this pull request Nov 20, 2024
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

Successfully merging this pull request may close these issues.

2 participants