-
Notifications
You must be signed in to change notification settings - Fork 304
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
"No executable found matching command "dotnet-fable"" #1073
Comments
Hello, did you run the command from src folder? |
No! That works! Thank you. |
Your welcome sorry, the docs was updated but not published. |
@MangelMaxime I know this is an old issue but I just created a new Fable project using the template and had to explicitly add the line |
@isaacabraham If you used the new fable template there is a change where the Look at the instruction in the readme to know how to use the template. This is indeed expected, in order to hide most of the tools under In Fulma-minimal, we have a |
OK. Indeed the |
On this page for me the only reference to
And the instruction for the template on the page is:
It looks fine to me. |
If I cd into the src folder (which contains the fsproj) and run |
Yes, this is expected behavior because the Can be indeed hard to new people to understand but they would probably not try to use the advance section. Or we could add: "If you encounter error No executable found matching command "dotnet-fable"" then the reason is XXXX |
Yep. Why not just include the fable cli to the paket references and it'll just work - the tooling is already in the deps file? Alternatively, change the docs to tell people to run it from the tools folder? It just seems kind of misleading - I just followed the docs now and fell into this trap. |
Seems reasonable, PR? :) |
I was waiting for that :-) |
Alternatively, just remove the quick start guide and point people towards the readme if that's the real source of truth. |
still broken ? barrier to entry |
@yetanotherlogonfail The template is not broken the instruction in the guide isn't up to date. Please follow the instruction from the readme.md file as stated:
We do need to change the documentation. And probably need to make point toward the readme as stated by @isaacabraham (will send a PR so it will be done) |
Please make the Getting started more visible. I only found it through a Medium article, almost by chance. Should be prominent on the fable.io site IMO. Either as a clear concise set of instructions or via a big fat button linking to a page that clearly spells out the steps to get the first apps running. |
~/repos/fable-projects/elmish-react-app
09:53 $ dotnet fable npm-run build
No executable found matching command "dotnet-fable" Trying from dotnet fable npm-run build
No executable found matching command "dotnet-fable"
✘-1 ~/repos/fable-projects/elmish-react-app/src |
"If I cd into the Where is the tools folder? I created a new NuGet.Config
RELEASE_NOTES.md
node_modules
package.json
paket.lock
sass
webpack.config.js
README.md
elmish-react-app.sln
package-lock.json
paket.dependencies
public
src
yarn.lock Please advice. Thanks |
Now tried following README instruction of project. Into |
Seems I need to follow this guide: https://fsharp.org/use/linux/ |
Looks like that doesn't work either. I've just installed the .NET SDK and thought mono was included there... hmm, guess it makes kinda sense it isn't but then should warn about it at least? I can see I don't have either compiler or interactive available? ~/repos/fable-projects/elmish-react-app/src
10:36 $ fsharpc
-bash: fsharpc: command not found
✘-127 ~/repos/fable-projects/elmish-react-app/src
10:39 $ sharpi
-bash: sharpi: command not found
✘-127 ~/repos/fable-projects/elmish-react-app/src
10:39 $ fsharpi
-bash: fsharpi: command not found Trying this guide now: https://www.mono-project.com/docs/getting-started/install/mac/ |
Hi @kristianmandrup! Have you checked the minimal Fable 2 sample? Since Fable 2.1, the distribution is done through npm (basically you don't need to worry about anything if you install the latest fable-loader for Webpack), so you don't need to run |
Thanks will try anything ;) super excited about Fable!! I'm on a MacOSX. Installing Mono now. I think your getting started mostly assumes a Windows machine? |
First steps first ;) gotta set up my environment for .NET and F# first... |
|
I'm on macOSX too since I started to write the very first version of Fable :) Now you only need mono if you want to use Paket to manage Nuget dependencies. It Paket is not used (as in the minimal sample), the dotnet SDK should be enough (we're using 2.1.x, not sure if 2.2.x can also run Fable). I'm happy to hear you're excited about Fable! It's true it's a bit complicated to get started with the tooling at first, I'm sorry about that. We're planning to update the website and the documentation, but it will still take a bit. |
haha :) I can imagine. So much todo, hard to do it all - so many priorities. I downloaded and installed: Not Core. Guess I should install Core as well? or remove the dotnet SDK first? Was complaining about missing Then installed Also have your |
The dotnet SDK already includes the Core runtime so that should be fine :) Hmm, it seems the "Getting started with Fable and Fable Elmish" guide is a bit old. I'd recommend checking the SAFE-stack which probably has the best documentation at the moment and also helps you set up the server side. |
I will look into the SAFE stack as well. Thank you so much Alfonso. |
OK, turned out I had to install xcode again since it was out of date (new OS release?). ENOENT: no such file or directory, open '/Users/kristianmandrup/repos/fable-projects/elmish-react-app/src/elmish_react_app.fsproj' Turns out the file generate is called |
would you be surprised if the "user has left the building......"
why not just rename yourself Microsoft !
MAKE IT WORK, and make it easy to work, out of the BOX, NOTHING else will
keep users interested..... don't see how you cant get this simple message
…On Fri, 25 Jan 2019 at 12:33, Kristian Mandrup ***@***.***> wrote:
OK, turned out I had to install xcode again since it was out of date (new
OS release?).
Anyways, now I get:
ENOENT: no such file or directory, open '/Users/kristianmandrup/repos/fable-projects/elmish-react-app/src/elmish_react_app.fsproj'
Turns out the file generate is called elmish-react-app.fsproj' since I
named the project elmish-react-app I also have a ``elmish-react-app.sln`
in the root. Looks like a bug in the template generator.
elmish/react#35 <elmish/react#35>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1073 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGIVWkgGQQQAw1rVPY5Z78_IEryh82GPks5vGvmMgaJpZM4OZPbD>
.
--
Regards, Carl
"Chance has put in our way a most singular and whimsical problem, and
its solution is its own reward."
|
Hello @yetanotherlogonfail, Also, the project is Open Source, so you can propose a fix if you have a solution in general for the problem. About the situation described on this issue, the error This is why now (from Fable 2.1), you invoke |
ok, let me try this, you don't get it.
sorry if i'm impolite but I see potential and then I see this wasted, and
i'm inpatient, I've seen IBM lie(cognos shi*), Microsoft LIE (ssis*, ssrs,
windows*)
adobe LIE, borland LIE, you name it I've seen them fail to get it.
now we are on windows version 24 and still its CRAP.
what folks want..... LISTEN CAREFULLY
from github or wherever online
download something, that WORKS. (this means actually works not approx
EXACT).. don't care what with, say visual studio, or vs code on windows
or equiv on mac, or linux BUT YOU'd BETTER GIVE specific exact
instructions, BECAUSE 90% don't.
download and "hello word", complies and runs, 1st step, this is mandatory,
fable failed this step, as did xamarin forms, as did asp.net, web sharper,
I could go on, with their 1000's steps and oh I forgot the reference to
this obscure library that I didn't mention in line 2 or the 50 line check
list.
THIS MUST work, or im out (as are 90% of people )..... and C++ rules, or
VB, python, java, scala, or whatever that does pass this simple test.
FAKE, Paket, all fail......
the past is littered with languages that fail not because they are weak,
because folks cant get over the simple "hello world" rule.
if I cant start with this and it can't compile or run. then YOUR history,
sorry don't care how great a concept, idea whatever.
YOU FAIL.
that's why VB is still alive today as are access db applications. as are
plain old terminal applications.
hell at work I have trouble promoting F# over python, java and VB. when its
clearly superior.
lets take F#, not allowing nulls , great idea, love it, then in practice
the first query I do from a database in the real world and I have nulls in
my table , THAT'S REAL LIFE DUDE
2 weeks later, my code goes into production, written in scala, cos f#
offers not real examples of how to handle this. wasted.
#challenge_make_hello_world_work
god damit even vs code does not work with f# out of the box, I have to
change the setting to get space/tabe to work, and dot net core I HAVE to do
a dotnet restore for each new ref added, waste of my time. maybe you think
that 7 reboots after a MS upgrade is the normal, BUT IT is not.
apologies for rant, but its embarrassing, big time.
…On Sat, 26 Jan 2019 at 21:48, Maxime Mangel ***@***.***> wrote:
Hello @yetanotherlogonfail <https://github.com/yetanotherlogonfail>,
please remember that most of use are working on our free time so please
stay calm and polite :)
Also, the project is Open Source, so you can propose a fix if you have a
solution in general for the problem.
About the situation described on this issue, the error no executable
found... is something generated by the dotnet cli and we can't catch it.
This is why now (from Fable 2.1), you invoke webpack directly as you
would for any JavaScript project and it will start Fable directly.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1073 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGIVWjCMUtLo54HmAsRspzZGUAtxm4qVks5vHM0tgaJpZM4OZPbD>
.
--
Regards, Carl
"Chance has put in our way a most singular and whimsical problem, and
its solution is its own reward."
|
@yetanotherlogonfail The thing is that not all the problem you have are from Fable projects but related to the .Net ecosystem. The If you like the stack and want to push it more, you are welcome to help fix the existing templates or to create a template that suits your needs for example and start from it. If you want you can also start from fulma-demo repro which should work out of the box so you can remove the code and put your own. Most if not all of them, have documentation or explanations on how to run the project. From my experience, they work out of the box and if you encounter a bug you can fill an issue and explain your problem. Then people will come to help you if needed. Also, by being friendly people will be more open to help you. It's a win-win situation. If you think that F#, Fable or tech Y is "superior" to something else and is missing something you can also reach the community and work together with it to improve the situation. |
First of all Fake and Paket are optional not just hello world, want to run a cross-platform web server? there you go open Suave
let webApp = Successful.OK "Hello from Suave"
startWebServer defaultConfig webApp they all "just work" In fact, In the past I had a lot of trouble getting scala and c++ to run on my machine because of the exact same reasons you mentioned above, it is not just F#.
So for this specific example, you bailed out on F# just because tables returned let getAllUsers() : User list =
defaultConnection
|> Sql.connect
|> Sql.query "SELECT * FROM \"users\""
|> Sql.executeTable
|> Sql.mapEachRow (fun row ->
option {
let! id = Sql.readInt "user_id" row
let fname = Sql.readString "first_name" row
let lname = Sql.readString "last_name" row
return {
Id = id;
FirstName = defaultArg fname ""
LastName = defaultArg lname ""
}
}) Similar code can be written to work with
I know your intensions are good and your frustration of not being able to use a great language because of poor tooling but rants don't help anyone, not even you. There are things we can do like building libraries to make things simpler and simpler, helping out in developing vs code instead of waiting for ms for better F# tooling and most importantly: helping out with writing build instructions you said were missing. |
@yetanotherlogonfail Please be a little respectful. As they say, this is an Open Source project and much of this relies on 3rd party dependencies, Microsoft platform etc. which they/we have little to no control over. I do think however that we can sometimes patch some of the inconsistencies or missing parts of said dependencies, such as running a post-generator step to "repair" file naming errors generated by the MS generator f.ex. Also, we could in principle create a script that checks the host system for certain platform components that are required and alert the user as to what parts need installation, possibly providing a guide as to how to remedy the situation (per platform). Of course this is all an "ideal vision" and will take some effort, where we all need to do our part to make it a reality so as to make it easy for newbies to get up and running with the least amount of friction and "pain". Your thoughts please. Cheers :) |
I think your approache is a good one.
so:
fable
I access the fable site looks simple
I go to the fable2 samples as this look the best simplist route for me to
discover
the words on the page read:
- When you're ready to start a Fable project in your computer you can
clone the Fable 2 minimal sample
<https://github.com/fable-compiler/fable2-samples/tree/master/minimal>and
check its README for more detailed instructions. For a more complex sample,
check the Fulma demo <https://github.com/MangelMaxime/fulma-demo>.
so I have to Fork/ instructions say clone (no clone on the page at all)
Barrier
mangae to download locally to my c:\dev\ folder
instructions say and I quote
check its README for more detailed instructions
bewlow is the detailed instructions VVVVVVVVV
fable2-samples
Fable 2 samples
2 line of details....... really? now what?
ps I also tried and downloaded the
https://github.com/fable-compiler/Fable
opened the folder in VS and I had red errors could not find references to
files in a local folder?
Fable .core not present ?
Im being unreasonable ?
…On Sun, 27 Jan 2019 at 19:35, Kristian Mandrup ***@***.***> wrote:
@yetanotherlogonfail <https://github.com/yetanotherlogonfail> Please be a
little respectful. As they say, this is an Open Source project and much of
this relies on 3rd party dependencies, Microsoft platform etc. which
they/we have little to no control over.
I do think however that we can sometimes patch some of the inconsistencies
or missing parts of said dependencies, such as running a post-generator
step to "repair" file naming errors generated by the MS generator f.ex.
Also, we could in principle create a script that checks the host system for
certain platform components that are required and alert the user as to what
parts need installation, possibly providing a guide as to how to remedy the
situation (per platform).
Of course this is all an "ideal vision" and will take some effort, where
we all need to do our part to make it a reality so as to make it easy for
newbies to get up and running with the least amount of friction and "pain".
Your thoughts please. Cheers :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1073 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGIVWvlKg8iOftWkch4kRjHkVslr1Cyuks5vHf9zgaJpZM4OZPbD>
.
--
Regards, Carl
"Chance has put in our way a most singular and whimsical problem, and
its solution is its own reward."
|
ok, new approach
how do I request the permission to change this page which is obviously
incomplete? with something that is better
How can I contribute to make this change myself for example?
I want to suggest an update for this readme document
https://github.com/yetanotherlogonfail/fable2-samples
…On Sun, 27 Jan 2019 at 19:35, Kristian Mandrup ***@***.***> wrote:
@yetanotherlogonfail <https://github.com/yetanotherlogonfail> Please be a
little respectful. As they say, this is an Open Source project and much of
this relies on 3rd party dependencies, Microsoft platform etc. which
they/we have little to no control over.
I do think however that we can sometimes patch some of the inconsistencies
or missing parts of said dependencies, such as running a post-generator
step to "repair" file naming errors generated by the MS generator f.ex.
Also, we could in principle create a script that checks the host system for
certain platform components that are required and alert the user as to what
parts need installation, possibly providing a guide as to how to remedy the
situation (per platform).
Of course this is all an "ideal vision" and will take some effort, where
we all need to do our part to make it a reality so as to make it easy for
newbies to get up and running with the least amount of friction and "pain".
Your thoughts please. Cheers :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1073 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGIVWvlKg8iOftWkch4kRjHkVslr1Cyuks5vHf9zgaJpZM4OZPbD>
.
--
Regards, Carl
"Chance has put in our way a most singular and whimsical problem, and
its solution is its own reward."
|
@yetanotherlogonfail Perhaps clone, edit and make a PR? You can also have a look at my fable2-samples account, where I've tried to remedy some of these issues... |
I've followed the getting started guide and have run into this error:
I am running Windows 10 and have followed the guide to the letter as far as I'm aware. I have tried several times with a clean directory, and have rebooted my computer. How can I diagnose what I am missing?
The text was updated successfully, but these errors were encountered: