Coder Social home page Coder Social logo

fakesharper's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fakesharper's Issues

"Not found any '*.sln' file."

I get the above whenever I run a fakesharper command. There is no sln file in my workspace only csproj files

Any way around this? Not a fan of sln files if I can get away with it

Not an actual issue

Sorry to ask this here but I dont know how else to conctact you and have been looking for this for a while...

How do you get that nice c# syntax highligthing in your screenshots on the main page? https://github.com/fakesharper/fakesharper

Do you use an extention and custom theme? Cause my syntax highligting in vscode is no where near this detailed.

Thank you.

Inspect Code does not work with project path containing spaces

Tested with a Unity project on Windows 10.

I created a new Unity project in C:\Temp\Hello World and added a script.

using System.Collections;
using System.Collections.Generic;
using JetBrains.Annotations;
using UnityEngine;

public class Test : MonoBehaviour
{
    void Start()
    {
        DoSomething(null);
    }

    private void DoSomething([NotNull] GameObject value)
    {
        Debug.Log(value);
    }
}

When I ran Inspect Code, it said: Process did not exit with 0 code. Please check output.

Output:

Inspect Code command is running for 'c:\Temp\Hello World\Hello World.sln'...
JetBrains Inspect Code 2022.3.1
Running on x64 OS in x64 architecture, .NET 6.0.12 under Microsoft Windows 10.0.19044
Specify only one solution file
Usage: inspectcode [options] [solution or project file]
Show help: inspectcode --help

If I change the project path to C:\Temp\Hello-World then it works.

[Error] Failed to load inspection results

Extension successfully being installed, etc.

After code inspection popups error:
Снимок экрана от 2023-05-19 12-06-33

But inspect file is being correctly created.

I think something goes wrong with the XMLReader, while parsing inspectcode.xml
because error occurs here

category: item.attributes["@_Category"],

My current environment:
Ubuntu 23.04: Linux 6.2.0-20-generic #20-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 6 07:48:48 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
VSCode 1.78.0
jb tool JetBrains Inspect Code 2023.1.2

Install ReSharper command line tool via .NET Core

It's much easier to install the ReSharper command line tool through the Dotnet command (as documented on https://www.jetbrains.com/help/resharper/ReSharper_Command_Line_Tools.html#install-and-use-resharper-command-line-tools-as-net-core-tools) than it is to download it, put it in a folder, and change the PATH property.
And it also doesn't happen that the tool can't find MS Build (had this problem).

You may be able to install the tools automatically if they are not available on your computer when you run the extension.

File paths in inspectcode XML-report are broken on some systems

The filepaths in the XML generated by inspectcode uses backward-slashes which results in 'File not found' errors on MacOS (and most likely other systems too).

A good fix could be to have the extension normalize the filepaths based on the OS at parse-time.

Example from the XML:

<Issue TypeId="MemberCanBePrivate.Global" File="TestProject\Helpers\Test.cs" Offset="751-757" Line="22" Message="Property 'PractitionerEventHelper' can be made private" />

This will try to open /some/base/path/TestProject\Helpers\Test.cs which is not valid.

[Issue] Specify only one solution file

Hi, I created a .net framework 4.7.2 (I think) project in visual studio 2019 and opened that in vscode. I have fake sharper installed. I wrote some sample code in the Program.cs and ran the fakesharper: Inspect code command from the command palette of vscode. and got the following error.

image

This is how my directory looks like in vscode

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.