question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ignore projects in hidden directories (starting with a dot)

See original GitHub issue

…or at least in the .fable directory. This is because Fable 2 copies the sources of the referenced packages into a hidden folder in the repository named .fable. This is done to avoid problems with most JS tooling which usually expects all sources (and F# files are also considered sources of JS project thanks to Webpack & fable-loader) to be in the hierarchy defined by the package.json file.

Right now Paket checks the projects in this .fable directory too, so if I run .paket/paket.exe install I get warnings like the following:

 - paket.references -> .fable/Fable.Elmish.1.0.3/Fable.Elmish.fsproj
F# project /Users/alfonsogarciacaronunez/dev/fulma-demo/.fable/Fable.Elmish.1.0.3/Fable.Elmish.fsproj does not reference FSharp.Core.
 - paket.references -> .fable/Fable.Elmish.Browser.1.0.0/Fable.Elmish.Browser.fsproj
F# project /Users/alfonsogarciacaronunez/dev/fulma-demo/.fable/Fable.Elmish.Browser.1.0.0/Fable.Elmish.Browser.fsproj does not reference FSharp.Core.
 - paket.references -> .fable/Fable.Elmish.Debugger.1.0.1/Fable.Elmish.Debugger.fsproj
F# project /Users/alfonsogarciacaronunez/dev/fulma-demo/.fable/Fable.Elmish.Debugger.1.0.1/Fable.Elmish.Debugger.fsproj does not reference FSharp.Core.
 - paket.references -> .fable/Fable.Elmish.HMR.1.0.0/Fable.Elmish.HMR.fsproj
F# project /Users/alfonsogarciacaronunez/dev/fulma-demo/.fable/Fable.Elmish.HMR.1.0.0/Fable.Elmish.HMR.fsproj does not reference FSharp.Core.
 - paket.references -> .fable/Fable.Elmish.React.1.0.3/Fable.Elmish.React.fsproj
F# project /Users/alfonsogarciacaronunez/dev/fulma-demo/.fable/Fable.Elmish.React.1.0.3/Fable.Elmish.React.fsproj does not reference FSharp.Core.
 - paket.references -> .fable/Fable.PowerPack.1.5.0/Fable.PowerPack.fsproj
F# project /Users/alfonsogarciacaronunez/dev/fulma-demo/.fable/Fable.PowerPack.1.5.0/Fable.PowerPack.fsproj does not reference FSharp.Core.
 - paket.references -> .fable/Fable.React.3.1.2/Fable.React.fsproj
F# project /Users/alfonsogarciacaronunez/dev/fulma-demo/.fable/Fable.React.3.1.2/Fable.React.fsproj does not reference FSharp.Core.
 - paket.references -> .fable/Fulma.1.0.0-beta-022/Fulma.fsproj
F# project /Users/alfonsogarciacaronunez/dev/fulma-demo/.fable/Fulma.1.0.0-beta-022/Fulma.fsproj does not reference FSharp.Core.
 - paket.references -> .fable/Fulma.Elmish.0.1.0-beta-010/Fulma.Elmish.fsproj
F# project /Users/alfonsogarciacaronunez/dev/fulma-demo/.fable/Fulma.Elmish.0.1.0-beta-010/Fulma.Elmish.fsproj does not reference FSharp.Core.
 - paket.references -> .fable/Fulma.Extensions.1.0.0-beta-016/Fulma.Extensions.fsproj
F# project /Users/alfonsogarciacaronunez/dev/fulma-demo/.fable/Fulma.Extensions.1.0.0-beta-016/Fulma.Extensions.fsproj does not reference FSharp.Core.
 - paket.references -> .fable/Thoth.Json.1.0.0/Thoth.Json.fsproj
F# project /Users/alfonsogarciacaronunez/dev/fulma-demo/.fable/Thoth.Json.1.0.0/Thoth.Json.fsproj does not reference FSharp.Core.
 - src/paket.references -> src/Demo.fsproj

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
alfonsogarciacarocommented, May 26, 2018

Thanks @forki!

@matthid There’s indeed a paket.references in the repo root (same level as .fable folder) because @MangelMaxime likes to have a *.proj file there to be able to use dotnet CLI tool commands from the repo root 😉

1reaction
forkicommented, May 26, 2018

I think we should ignore hidden folders. Matthias Dittrich notifications@github.com schrieb am Sa., 26. Mai 2018, 07:05:

Also this behavior can be a blocker for adoption, for example if you introduce fake and manage it with paket. In this scenario you have a paket.reference in your root and paket will rewrite/format all project files. I have seen that already creating questions…

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fsprojects/Paket/issues/3225#issuecomment-392237159, or mute the thread https://github.com/notifications/unsubscribe-auth/AADgNIaytyzv-tGYTQXGxfl7fg7zwX93ks5t2OK3gaJpZM4UOo85 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to exclude/ignore hidden files and directories in a ...
Allowing hidden files while excluding hidden directories is the case that requires a further filter. This is where you would include -type d...
Read more >
Exclude hidden files and folders in linux find
I am trying to exclude hidden files and folders when doing a find in linux. I have to exclude files or folders that...
Read more >
Exclude hidden files when searching with Unix/Linux find?
Ignores hidden directories and files, by default. ... If you aims is to find and grep , ripgrep does exclude hidden files by...
Read more >
ls: long listing format but ignore files starting with dot
The default behaviour of the ls command is to ignore files starting with dot, but if you use the long listing format with...
Read more >
Skip Hidden Files and Directories During Recursive Copy
We know that dotfiles are treated as hidden files in Linux. Sometimes, when we copy directories recursively, we want to exclude hidden files...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found