How can you export content from your Output in VS Code? - csv

I am utilizing an extension called Azure Event Hub Explorer in Visual Studio Code. The extension allows me to see messages from an Azure Event Hub within the VS Code Output.
There are a lot of messages and you have to scroll through them to find what you want. There is no way to filter the results. I am looking for a way to export the output into something like a csv file so that I can easily filter my results.
Please let me know if there is a way.

Click on "Open log file" button on right upper corner of output window. Also you can canfigure key bindings for commands:

Related

How do I know my Foundry Job is using AQE?

I hear people mention this AQE feature sometimes and I'm wondering how to verify if my job is using it or not. I'm running transformations both in Code Repositories and Code Workbooks.
This is noted in the Environment details tab of a job.
Navigate to Builds page
Find your running Build in the Build page. Click on it.
Find your relevant Job inside your Build's page. Click on it.
In the expanded view under your Job, click on the Spark Details button
Click on the Environment tab
Look for a row for adaptiveExecutionEnabled. If true, you are using AQE. If false then you are not.

Logging in Revit Design Automation add-in

I want to send some diagnostic output to the default report.txt file.
In some posts it is shown that exceptions are logged to this report.txt file somehow (automatically or not?).
Also, I see in some samples that people do the logging with
System.Console.WriteLine(),
I've tried this, but still can't see it in the report file.
Could you tell me, how to achieve this?
I understand there is an option to create another log file and send it back with the result, but I think it would be easier to use this existing report.txt.
Thanks!
UPDATE: System.Console.WriteLine() works.
The reason why I didn't see the output was that my add-in failed to load.
So, it simply didn't reach this line of code.
Logging in Design Automation for Revit appbundles can indeed be done with System.Console.WriteLine. Anything sent to standard output will be capture in your workitems report.txt. For example.
The following code:
System.Console.WriteLine("Hello World!");
Will generate the following lines in the report.txt:
[04/23/2020 19:20:59] Hello World!

Collecting Visual Studio Intellisense results from command line

When you open json files that have a "$schema" property in Visual Studio 2017, intellisense will add messages to the Error List window describing which lines in the file do not match the schema (e.g. missing required property, wrong data type, doesn't match pattern, etc.). This only happens if the file is currently open.
I would like these results to show up when I build (even if the json files are not open). I don't want to make an extension to do it, but I do currently run a custom executable during the build. I know how to format the output of the executable so that errors and warnings generated by that tool show up in the Error List window.
Basically, I am wondering if I can use that to somehow force the intellisense results specifically from the json files to appear in the Error List window. I would like to have the ability to promote some of the messages to errors and some to warnings, so I don't just want to hack it in by forcing the json files to open during the build. (Can I somehow use MsBuild to get intellisense results from json files?)
If there is no way to collect the results of intellisense in an external tool, then I will most likely use a completely separate json validation library instead. I just wanted to save the effort since it is built into Visual Studio. Thanks.
It turns out that NJsonSchema (https://github.com/RSuter/NJsonSchema) is so easy to use. If anyone has ideas about intellisense, that may still be useful, though.

Multiple Shiny apps using the ui to populate the second app

I currently have a app that manages projects. The user sees a list of projects and can select one. They can should (it would be nice) be able to click a run button and have another app open. The parameters stored in the project they selected are populated into the second application. The issue I am having is firing the second application. runApp generates the following.
ui code line:
actionButton("RunProj", "Run"),
Warning in run(timeoutMs) :
Unhandled error in observer: Key / already in use
observeEvent(input$RunProj)
I would like to trigger the second app and pass in the location of the project directory I have looked at parseQueryString and still trying to figure out a way to include that. Maybe via a redirect?
Any suggests would be much appreciated.
Regards,
Rich
I'm not 100% sure if I understand your intention correctly but here is a few things I think you may want to think about.
In one project, if you want to run a few kinds of analyses, you may want to try navbarPage
If there are many different types of analyses, you may want to try shinydashboard
If you know the link to each app and you really want to add those "run" buttons, you can add a button manually in ui.R. I think you can write some codes in server.r to generate the link based on your database.
tags$a(href="the link to your apps", class= "btn btn-default", "Run App")

How can I disable "HTML Checking" in NetBeans?

I'm using NetBean's Compile on Save setting, and it's really handy when I'm editing a single file. But when I'm dealing with a pair of (or more) class files and am switching between the files, I have a problem:
The Task tab is nearly worthless since it is littered by HTML "error" messages(+) from many dozens of HTML files in the project that are generated by some external tool. The number of HTML errors swamps out any actual Java errors.
What I want is one of:
A way to tell NB to ignore the directory with the HTML files ("help").
A way to turn off HTML "errors" or even to specify HTML2.
A way to filter "Task" errors by file type, parent folder: all Java is under "com".
I've perused the settings and properties, but found nothing that helps.
<rant> Yet another reason I hate an IDE that use the "Take Everything in the Folder" approach.... </rant>
+ = The files are valid HTML but probably not XHTML. Plus, half the messages end abruptly, with something like: "Unexpected tag <TD> found, expecting one of
I found the answer, or at least one that works for me (NB 6.8, YMMV):
In the Tasks tab, click the filter button in the left,
Choose Edit...
In the Task List Filter dialog:
Click New
Enter a value for Name (such as "No Script Messages"),
Uncheck the Scripting Language Tasks option
Click OK.
If the filter doesn't work immediately, you may wish to close/open the Task window or Netbeans.
Hope that helps someone else.
You can go to Tools->options->Editor->Hint .
You can easily select the right options from there .
I want to use task list to only track my To Do list and It can be a real pain when Netbeans starts showing me #todos from included libraries and all sort of compile errors that I am not interested in. If your use case is like me (not interested in compile errors etc. in task window) then you can do following:- (Netbeans 7.1.2)
1) Tasks window | Right click filter | Edit
To edit the default filter.
Click default filter in left hand panel.
Right hand panel, under Type tab - un-check compile errors and issues
2) You can go to Tools | Options | Miscellaneous
Go to Tasks tab now.
Here you can add/remove the To Do strings that you want.
You can create your own custom todo string or make sure that only one of them is listed (what you use)
Now apply default filter and you will only see your #todo tasks. sane and sweet :D