aCute icon indicating copy to clipboard operation
aCute copied to clipboard

After creating a new .NET CORE Project getting the "Building Workspace" Error

Open premanir opened this issue 7 years ago • 14 comments
trafficstars

I have created my first .NET CORE project using Eclipse as IDE and installed acute plugin and added the .NET CORE preferences Then created a new .NET CORE project I have encountered the below error Please help me to resolve the issue

image

premanir avatar Jul 08 '18 07:07 premanir

Can you check in Window > Preferences > .NET Core whether the pat to the dotnet executable is correct?

mickaelistria avatar Jul 09 '18 15:07 mickaelistria

I think it is correct, then only the "Apply and Close" button will get enable.

Please find the below screenshot for reference

image

premanir avatar Jul 09 '18 15:07 premanir

Do you continuously get this error message or just for the first time the workspace builds after the project creation?

LucasBullen avatar Jul 09 '18 17:07 LucasBullen

This is my first C# project in Eclipse Earlier for past 3 years I am working on Eclipse using Java and never experience such error before This error I came across for the first time only while building a C# workspace and the information available online is also scarce for this respective configuration

premanir avatar Jul 10 '18 06:07 premanir

I created a PR that will hopefully solve this issue. However, since I am unable to reproduce it, I can not be 100% sure. If the problem persists or the error warning is irritating you in the mean time, you are able to remove the builder from the project so that the fault won't happen:

Right click on the project in the Package Explorer > Configure > Remove .NET Builder

LucasBullen avatar Jul 10 '18 16:07 LucasBullen

From the screenshot and "Connot run program dotnet", I have the impression it can be that the builder doesn't resolve well to the path where dotnet is installed and configured in preferences.

mickaelistria avatar Jul 11 '18 07:07 mickaelistria

@LucasBullen @mickaelistria I have removed the .NET builder following the exact navigation Then I removed the complete project itself from the workspace Then I again created a new . net project and i did not encountered any error The project got created successfully But I am not able to use the predefined functions which are suggested to the user by displaying in a drop down Please find the below screenshot image

premanir avatar Jul 11 '18 09:07 premanir

Can you share interesting part of you eclipse-workspace/.metadata/.log file?

mickaelistria avatar Jul 11 '18 09:07 mickaelistria

.log.log

premanir avatar Jul 11 '18 09:07 premanir

Thanks. Log shows a lot of Server file not found. Has Omnisharp server been unpacked in C:\Users\rpremani\eclipse-workspace\.metadata\.plugins\org.eclipse.acute\omnisharp-roslyn ? Can you please check wheter thiere is something in the specified directory or in a sibling?

mickaelistria avatar Jul 11 '18 10:07 mickaelistria

omnisharp-roslyn.zip I can see all the dll files in omnisharp-roslyn folder

premanir avatar Jul 11 '18 12:07 premanir

(a) i keep getting the "Building Workspace" freeze occasionally (except for the very first time after eclipse restart). (b) java.lang.NullPointerException in Outline tab most of the time. (c) also many "omnisharp" errors in log. (d) overall, editing code feels laggy/slow, ex. if i try to replace or paste text.

i tried both stable acute version and then latest from snapshots, same results. i have .net core 2.1.502 and dotnet.exe location specified in eclipse settings as instructed.

steps to reproduce the building workspace freeze: -create new .net core project with default settings (console application c#); -paste this attached other hello world code (took it from a .net framework tutorial); -create a run configuration with default settings; -run it, code will compile fine and output to console; -clear console, change int a=1 to int a=2, save code; -try to run it and you get the building workspace error; -restart eclipse, run the same code, it will work fine; -repeat an edit (like change 2 back to 1) and you get the freeze again... -plus the other (b), (c), (d) as mentioned above

PS: if the code itself is not correct for .net core test, you let me know guys, i'm new to this.

log: .log code: hello world.txt

sign-in-smth avatar Jan 05 '19 17:01 sign-in-smth

I hope this improves when omnisharp 1.32.9 or 1.33.0 is released and we can switch to it.

mickaelistria avatar Jan 05 '19 22:01 mickaelistria

thanks, will be looking forward to it!

about (a), pls disregard it: after a little closer look i saw that new build (after code editing) hangs just because previous launch hasn't terminated. that sneaky readline at the end waiting for input.. my bad sorry-)

sign-in-smth avatar Jan 06 '19 00:01 sign-in-smth