Skip to content
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

Is Paket required for FSharp.CosmosDb.Analyzer? #56

Closed
mabasic opened this issue Sep 20, 2021 · 8 comments
Closed

Is Paket required for FSharp.CosmosDb.Analyzer? #56

mabasic opened this issue Sep 20, 2021 · 8 comments

Comments

@mabasic
Copy link

mabasic commented Sep 20, 2021

I am using dotnet add package, but I don't have the packages directory anywhere.

@aaronpowell
Copy link
Owner

You don't need to use paket for the analyzer, it's just the easiest way to control install locations, as you need to provide a path to the analyzer for Ionide to get it from.

@mabasic
Copy link
Author

mabasic commented Sep 21, 2021

Do you know how can I install the package and tell Ionide its location by using dotnet and not paket?

I'm new to the .NET ecosystem..

@aaronpowell
Copy link
Owner

@mabasic
Copy link
Author

mabasic commented Oct 3, 2021

I am using:

dotnet add package FSharp.CosmosDb.Analyzer --package-directory ./packages

This creates a new directory called packages and inside it places a whole bunch of things. I assume that I need to add this directory to gitignore?

@mabasic
Copy link
Author

mabasic commented Oct 3, 2021

I have tried everything that came to mind, read all the blog posts and still I can't get this to work.

How do I know if the analyzer is picked up in ionide?

Is this related to: ionide/FSharp.Analyzers.SDK#9

Resources:

@aaronpowell
Copy link
Owner

I'll admit to never having tried with NuGet so it may be related to that problem.

From my understanding of how analyzers work, they require the path to the folder the DLL is in, and for it to be there when the Ionide plugin starts up, so it can load.

If you look into the Ionide logs in VS Code you might get some insights

@mabasic
Copy link
Author

mabasic commented Oct 13, 2021

Do you know where I can find Ionide logs in VS code, I can't seem to find them?

@aaronpowell
Copy link
Owner

In the VS Code output pane there's a drop down list with all the different output logs. Ionide appears as F# something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants