question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Get Roslyn API calls to generate this code as LINQPad file!" button doesn't work

See original GitHub issue

it just gets redirected to https://roslynquoter.azurewebsites.net/[object%20Object] which is a blank page

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
KirillOsenkovcommented, Mar 4, 2021

Yes, your proposal won’t work because you can’t cause a file download from an XMLHTTPRequest that is POST. I needed a GET endpoint for the download to work.

You’re right about the duplication, I didn’t care much but I guess I can remove it.

0reactions
Pzixelcommented, Mar 4, 2021

Thanks you fixed it, but it looks like it duplicate an already-present logics, see https://github.com/KirillOsenkov/RoslynQuoter/blob/f3b595a683bda6323c13f407fdde275246fcf9b9/src/Quoter.Web/Controllers/QuoterController.cs#L55 and https://github.com/KirillOsenkov/RoslynQuoter/blob/master/src/Quoter.Web/wwwroot/scripts.js#L23

One of them seems redundant and may be safely removed. I’d expect the fix I proposed to work but if you think another endpoint is required then maybe you could remove this extra logic from the old place

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Get Roslyn API calls to generate this code as LINQPad file!" button ...
I've checked sources, this line doesn't make much sense to me function onSubmitLINQPad() { var arguments = generateQuery(); arguments.
Read more >
Writing a LINQPad Data Context Driver
Create a new class that subclasses DynamicDataContextDriver or StaticDataContextDriver (or both) as described in the following sections. Create ...
Read more >
Explore code with the Roslyn syntax visualizer in ...
The syntax visualizer provides a visual tool to explore the models the .NET Compiler Platform SDK generates for code.
Read more >
Referencing other .linq files
LINQPad will automatically correct relative #load references when you save a query to a different folder.
Read more >
Support C#8 NRT (Nullable Reference Types ...
The gist contains a linqpad file. Linqpad does not have a project, and the code within this file does not create a project...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found