fakesharper / fakesharper Goto Github PK
View Code? Open in Web Editor NEWReSharper features for Visual Studio Code
License: MIT License
ReSharper features for Visual Studio Code
License: MIT License
I've been reviewing some of the changes made on one of forks and i consider that are interesting for an integration.
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
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.
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.
Extension successfully being installed, etc.
After code inspection popups error:
But inspect file is being correctly created.
I think something goes wrong with the XMLReader, while parsing inspectcode.xml
because error occurs here
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
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.
Need more test
The prefix FakeSharper:
would fit better with the rest of the vscode environment.
Need inspect code and clean code settings files example
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.
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.
This is how my directory looks like in vscode
Dont forget to add badge
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.