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

Added Watch tool reference to .fsproj #48

Closed
wants to merge 1 commit into from
Closed

Added Watch tool reference to .fsproj #48

wants to merge 1 commit into from

Conversation

spaasis
Copy link
Contributor

@spaasis spaasis commented Jan 26, 2019

I couldn't get the watch working in my environment without this. Maybe this would help others as well?

I couldn't get the watch working in my environment without this. Maybe this would help others as well?
@isaacabraham
Copy link
Member

Hey. I think this is just because your version of .NET Core needs an upgrade. The earlier versions didn't have an integrated watch tool and you needed the separate tool. In newer versions it's integrated into the CLI. So you should be able to upgrade core on your machine and it'll just work.

If you can confirm this, I'll close this PR.

Thanks!!

@spaasis
Copy link
Contributor Author

spaasis commented Jan 28, 2019

Very likely that it's something like that. However, it seems like I'm running the latest .NET Core. Can you spot anything odd from this (dotnet --info): .NET Core SDK (reflecting any global.json):

 Version:   2.2.102
 Commit:    96ff75a873

Runtime Environment:
 OS Name:     antergos
 OS Version:
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /opt/dotnet/sdk/2.2.102/

Host (useful for support):
  Version: 2.2.1
  Commit:  878dd11e62

.NET Core SDKs installed:
  2.2.102 [/opt/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.NETCore.App 2.2.1 [/opt/dotnet/shared/Microsoft.NETCore.App]

My Mono is at 5.16.

The error without this config is

Cannot find command 'dotnet watch', please run the following command to install

dotnet tool install --global dotnet-watch

I've ran the command, and it installs ok, but still doesn't do much.

I also seems to have a build issue (on dotnet build) so romething is probably pretty borked at my configuration somewhere.

I'll close this since I believe that this is not an issue with the code itself.

@spaasis spaasis closed this Jan 28, 2019
@spaasis spaasis deleted the patch-1 branch January 28, 2019 15:41
@spaasis
Copy link
Contributor Author

spaasis commented Jan 30, 2019

Whew, got it working. Here's my steps for anyone running into the same issues (probably due to the Arch dotnet package)
Added this to .bashrc (edit: removed extra line that didn't actually matter)
export PATH="$PATH:/home/<user>/.dotnet/tools"

dotnet tool install --global dotnet-watch

That got the dotnet watch working.
Next was the build error, which got solved by this:
dotnet/fsharp#3303

Now I can get to actually start the Dojo.
Cheers!

@isaacabraham
Copy link
Member

Wow. Thanks for figuring this out. @bruinbrown thoughts?

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

Successfully merging this pull request may close these issues.

2 participants