-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1081 from digitallyinduced/fix-query-or
Fixed queryOr causing strange type errors in complex Queries.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ea6bcf7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @mpscholten!
Following the direction here:
https://ihp.digitallyinduced.com/Guide/updating.html#updating-to-a-specific-git-commit
I updated
default.nix
with the following:Rebuilt:
When I access a page that was working before the update, I get this:
Let me know if there's anything you want me to test on this end.
Thanks for looking into this!
ea6bcf7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you run the dev server in debug mode and share logs?
ea6bcf7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran as follows:
Contents of
ihp-debug.txt
:ea6bcf7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And just to confirm, when I reverted
default.nix
and rebuilt, the page loaded fine.Switched back to the new commit and the issue returned.
ea6bcf7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mpscholten,
In case it helps, here's the repository and branch that the issue occurs in:
https://github.com/dharmatech/ContosoUniversityIhp/tree/2021-09-04-02-queryOr-fix
This is a conversion of a very small subset of the following ASP.NET Core tutorial just to test out various parts of IHP:
https://docs.microsoft.com/en-us/aspnet/core/data/ef-rp/intro?view=aspnetcore-5.0&tabs=visual-studio
ea6bcf7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logs look ok.
What is the output on http://localhost:8001/PostgresLogs ?
ea6bcf7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, this makes it clear :-)
ea6bcf7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense 👍 I just checked the repo and your master is on IHP v0.12. We've updated the nixpkgs version with IHP v0.13, which also included an upgrade of the postgres version :) You can run
make clean
to get rid of the current database state. Then runnix-shell
andmake -B .envrc
after that.ea6bcf7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll give that a whirl!
I wonder if the directions here should perhaps mention
make clean
to handle this situation?https://ihp.digitallyinduced.com/Guide/updating.html#updating-to-a-specific-git-commit
ea6bcf7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I did
make clean
followed bynix-shell
andmake -B .envrc
inside there, then exited thenix-shell
.I got a different error message, but it was just saying to push 'Update DB'. I did so and the page is working now. :-)
Thanks so much Marc!