-
Notifications
You must be signed in to change notification settings - Fork 220
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
System.ArgumentException: SyntaxTree is not part of the compilation #527
Comments
Thanks for posting. The stack trace should be enough to fix the bug. I'll try to take a look soon. It's probably something like you've declared a names pace also used in a different project, but used different casing. |
(i.e. Even without the "fix" added, it doesn't repro)
I can't reproduce the issue, but I have a possible fix in master. You can uninstall your current build and try a CI build here: https://icsharpcode.visualstudio.com/icsharpcode-pipelines/_build/results?buildId=922&view=artifacts&type=publishedArtifacts or run from source if you'd like to test. Thanks! |
Hi Graham,
I think you were on the right lines about something else in the solution interfering because the code converted OK when I put the project into its own solution with nothing else present. I’ll let you know how I get on with the CI build.
Many thanks for your prompt response!
Regards, Peter
From: GrahamTheCoder <notifications@github.com>
Sent: 18 February 2020 09:05
To: icsharpcode/CodeConverter <CodeConverter@noreply.github.com>
Cc: Peter Simpson <peter@peterandjill.co.uk>; Author <author@noreply.github.com>
Subject: Re: [icsharpcode/CodeConverter] System.ArgumentException: SyntaxTree is not part of the compilation (#527)
I can't reproduce the issue, but I have a possible fix in master. You can uninstall your current build and try a CI build here: https://icsharpcode.visualstudio.com/icsharpcode-pipelines/_build/results?buildId=922 <https://icsharpcode.visualstudio.com/icsharpcode-pipelines/_build/results?buildId=922&view=artifacts&type=publishedArtifacts> &view=artifacts&type=publishedArtifacts or run from source if you'd like to test. Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#527?email_source=notifications&email_token=AJIOJ6IJNOQYCZYOTQJXBUDRDOQDVA5CNFSM4KW7LT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMBET5Q#issuecomment-587352566> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJIOJ6MTRTBUZSPQW3XERJTRDOQDVANCNFSM4KW7LT5A> . <https://github.com/notifications/beacon/AJIOJ6ICCJIOTRLXXDKNU5DRDOQDVA5CNFSM4KW7LT5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMBET5Q.gif>
|
Hi Graham,
Not so good I’m afraid, the CI version doesn’t throw the exception anymore but instead VS goes quiet for a while but then just closes without warning or error message. When I start VS again the code hasn’t been converted and I can repeat the convert / close cycle. In case it’s important I’m using the latest VS version 16.4.5.
I’ve uploaded the VS solution containing the problem project here: https://1drv.ms/u/s!Aj1pud_Txa8Sgpwk8QVwyGGuaYRy5Q?e=TERW0S in case it helps find the underlying issue. The ASCOM.Utilities.Support C# project is the one I’m trying to convert to VB as shown below. Overall the solution is about 1.3Gb when uncompressed from the zip file.
Many thanks, Peter
|
Hi Peter, it sounds like you may now be hitting #524 which I was in dire need of a repro for, so this will be very helpful. I'll try to look into it in the next few days. Thanks! I assume it's ASCOM.Utilities.vbproj that is showing the issue? |
Hi @Peter-Simpson, I just ran the converter on the whole solution's VB to C# in about 10 minutes. Here are just the changed files that you could unzip at the base directory in case it's helpful: Since it worked, I suspect something deeper is going on with VS software versions (I'm running 16.5 preview 2), hardware, or antivirus scanning. I've posted more about it here: |
Hi,
I'm using 7.8 and tried to convert a small C# project to VB that is part of a much larger solution and received the exception message below that displays a message: " System.ArgumentException: SyntaxTree is not part of the compilation Parameter name syntaxtree".
The output window just had the text "Converting ASCOM.Utilities.Support...".
Any thoughts?
Thanks, Peter
The text was updated successfully, but these errors were encountered: