-
-
Notifications
You must be signed in to change notification settings - Fork 337
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
netcore #2088
netcore #2088
Conversation
@eirannejad, I don't have libs on .NET Core
|
|
I think we need to divide projects into those that use Revit, just libraries, applications. |
# Conflicts: # dev/pyRevitLoader/pyRevitLoader.2710.csproj # dev/pyRevitLoader/pyRevitLoader.273.csproj # dev/pyRevitLoader/pyRevitLoader.277.csproj # dev/pyRevitLoader/pyRevitLoader.278.csproj # dev/pyRevitLoader/pyRevitLoader.279.csproj # dev/pyRevitLoader/pyRevitRunner.2710.csproj # dev/pyRevitLoader/pyRevitRunner.273.csproj # dev/pyRevitLoader/pyRevitRunner.277.csproj # dev/pyRevitLoader/pyRevitRunner.278.csproj # dev/pyRevitLoader/pyRevitRunner.279.csproj
@sanzoghenzo |
Alright, Cpython tests are working now! I was overwriting the I also added a The last commit is a refactor of the various |
@jmcouffin you were right, I've edited too many lines of code and introduced a bug 😅 In trying to reduce the code repetition, I wrongly set all the engines as netfx, even the netcore ones. It is now fixed. The code in pyrevit cli throws an exception, but the program itself exits with a 0 exit code, that's why the installer doesn't complain. EDIT: I went ahead and added the non-zero exit code. That's it for today, I consider it mission accomplished 😎 |
Clearly |
Checked this morning the latest WIP installer A thing I noticed, and I am pretty sure this is not a new bug: ==> Running Revit Instances
Debug: Getting host product info for: 20240319_1700(x64)
Debug: Getting data source "C:\Users\Jean-Marc\AppData\Roaming\pyRevit\Cache\pyrevit-hosts.json"
Debug: Getting data source "C:\Users\Jean-Marc\AppData\Roaming\pyRevit-Master\bin\pyrevit-hosts.json"
Debug: Data source exists "C:\Users\Jean-Marc\AppData\Roaming\pyRevit-Master\bin\pyrevit-hosts.json"
Debug: Using already loaded data. Identical signatures "1205207726" = "1205207726"
Error: Object reference not set to an instance of an object. (System.NullReferenceException)
at pyRevitCLI.PyRevitCLIRevitCmds.<>c.<PrintLocalRevits>b__1_0(RevitProcess x) in D:\a\pyRevit\pyRevit\dev\pyRevitLabs\pyRevitClI\PyRevitCLIRevitCmds.cs:line 31
at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
at System.Linq.EnumerableSorter`1.ComputeMap(TElement[] elements, Int32 count)
at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
at System.Linq.OrderedEnumerable`1.GetEnumerator()+MoveNext()
at pyRevitCLI.PyRevitCLIRevitCmds.PrintLocalRevits(Boolean running) in D:\a\pyRevit\pyRevit\dev\pyRevitLabs\pyRevitClI\PyRevitCLIRevitCmds.cs:line 31
at pyRevitCLI.PyRevitCLIAppCmds.MakeEnvReport(Boolean json) in D:\a\pyRevit\pyRevit\dev\pyRevitLabs\pyRevitClI\PyRevitCLIAppCmds.cs:line 144
at pyRevitCLI.PyRevitCLI.ProcessArguments() in D:\a\pyRevit\pyRevit\dev\pyRevitLabs\pyRevitClI\PyRevitCLI.cs:line 189
at pyRevitCLI.PyRevitCLI.Main(String[] args) in D:\a\pyRevit\pyRevit\dev\pyRevitLabs\pyRevitClI\PyRevitCLI.cs:line 150 the hosts file is located in all 4 locations: and checked against in the CLI in the running instances and throws a NullReferenceException
Like @dosymep suggested yesterday, I think we could merge this PR and making it a beta release and from now on, address the remaining issues in a new PR. Thoughts? |
Yes, I think this is ready to be merged. |
We need to merge the current master into my branch, and then make a squash commit. Then we'll refine the beta and fix the problems in the new PR. I don't have the opportunity to do this at the moment, I'm far from home :) good work @sanzoghenzo @jmcouffin :) |
You do it, or I do? @sanzoghenzo |
My OCD will make me take way longer than needed, so you can go ahead, even without squash (the git history is a total mess anyway 🤣) Only one thing: maybe we should merge the develop-4 branch onto dosymep's, so that we have also the latest fixes... |
exactly what I thought |
I did my best to squash and merge it without messing the work previously done 🤞 |
The merge of develop-4 deleted the .cs files in the |
It might be a mistake from my side, let me check |
do we need those? with all the changes? |
Yes, the .cs files are needed, otherwise the resulting pyRevitLabs.Pyrevit.Runtime.YYYY.dll would be empty! The build and CI doesn't fail because the |
fixing it right now |
@sanzoghenzo can you go on slack, that will make things easier? |
Y'all are rockstars! |
No description provided.