Comments (7)
Everything appears to install correctly with the following test case.
Test Case
(straight-bug-report
:user-dir "straight.ob-fsharp"
:preserve t
:post-bootstrap
(straight-use-package 'use-package)
(use-package ob-fsharp :straight
(ob-fsharp :host github :repo "juergenhoetzel/ob-fsharp")))
- Test run at:
2023-02-04 11:49:26
- system-type:
gnu/linux
- straight-version:
prerelease (HEAD -> refactor/straight-get-recipe, fork/refactor/straight-get-recipe) 3525d4c 2023-01-29
- emacs-version:
GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) of 2023-01-23
Output
Bootstrapping straight.el...
Bootstrapping straight.el...done
Looking for gnu-elpa-mirror recipe → Cloning melpa...
Looking for gnu-elpa-mirror recipe → Cloning melpa...done
Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...
Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...done
Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...
Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...done
Looking for emacsmirror-mirror recipe → Cloning el-get...
Looking for emacsmirror-mirror recipe → Cloning el-get...done
Looking for straight recipe → Cloning emacsmirror-mirror...
Looking for straight recipe → Cloning emacsmirror-mirror...done
Building straight...
Building straight...done
Test run with version: prerelease (HEAD -> develop, origin/develop) 3fa415c 2023-01-20
Cloning use-package...
Cloning use-package...done
Building use-package...
Building use-package → Building bind-key...
Building use-package → Building bind-key...done
Building use-package...
Building use-package...done
Cloning ob-fsharp...
Cloning ob-fsharp...done
Building ob-fsharp...
Building ob-fsharp → Cloning emacs-fsharp-mode...
Building ob-fsharp → Cloning emacs-fsharp-mode...done
Building ob-fsharp → Building fsharp-mode...
Building ob-fsharp → Building fsharp-mode...done
Building ob-fsharp...
Building ob-fsharp...done
Packages:
"straight" n/a develop 3fa415c 2023-01-20
"org-elpa" n/a n/a
"melpa" n/a master cd55f4fb 2023-01-30
"gnu-elpa-mirror" n/a master 3350028 2023-02-03
"nongnu-elpa" n/a main 85c7a060c6 2023-01-26
"el-get" melpa master 17db7640 2023-01-28
"emacsmirror-mirror" n/a master 03db6f7 2023-02-03
"use-package" melpa master 77945e0 2023-02-03
"bind-key" melpa master 77945e0 2023-02-03
"ob-fsharp" melpa master a5e893a 2022-11-13
"fsharp-mode" melpa master cfd3f88 2022-11-06
Error (use-package): org/:config: Cannot open load file: No such file or directory, ob-fsharp
Note the issue is in org/:config: (not ob-fsharp).
org-babel-do-load-languages
requires features associated with the languages in org-babel-load-languages
:
;;;###autoload
(defun org-babel-do-load-languages (sym value)
"Load the languages defined in `org-babel-load-languages'."
(set-default-toplevel-value sym value)
(dolist (pair org-babel-load-languages)
(let ((active (cdr pair)) (lang (symbol-name (car pair))))
(if active
(require (intern (concat "ob-" lang)))
(fmakunbound
(intern (concat "org-babel-execute:" lang)))
(fmakunbound
(intern (concat "org-babel-expand-body:" lang)))))))
You'll need to add ob-fsharp to that list and org-babel-do-load-languages
after it has been installed/activated. You should be able to do so in the :config
section of your use-package declaration for ob-fsharp. e.g.
(add-to-list 'org-babel-load-languages '(fsharp . t))
Also, I noticed that we don't have a [recipe] for the ob-fsharp package. How can I add it?
If the recipe is not in any of the recipe repositories, you can manually specify it as you did in your example. Aside from that, the package author would have to submit it to one of the curated ELPAs (e.g. MELPA, GNU/NonGNU ELPA, etc).
Does that help?
from straight.el.
Thanks for the help @progfolio, I'm going to close this issue now. Also, related to the recipe, thanks for the clarification!
from straight.el.
I'm not sure if it could be related, but the ob-fsharp
configuration appears after the org
package configuration in my .emacs file.
from straight.el.
https://github.com/64J0/Emacs-config/blob/master/src/org-mode.el
from straight.el.
Also, I noticed that we don't have a receipt for the ob-fsharp
package. How can I add it?
from straight.el.
@progfolio Thank you very much for this detailed answer, it definitely clarifies many parts of the error I'm facing. I'll test the approach you mentioned in my local setup! 🙌🏼 🚀
from straight.el.
You'll need to add ob-fsharp to that list and org-babel-do-load-languages after it has been installed/activated. You should be able to do so in the :config section of your use-package declaration for ob-fsharp. e.g.
(add-to-list 'org-babel-load-languages '(fsharp . t))
Confirming that this configuration worked in my local setup!
from straight.el.
Related Issues (20)
- tree-sitter tsc module will be re-built instead of being downloaded with straight-rebuild-package HOT 3
- Help with cloud sync and Straight : whats the LEAST I need to sync to minimise traffic? HOT 1
- Killing Emacs while straight.el is cloning and buildng packages can leave things in a bad state? HOT 4
- Byte compilation issue with straight.el at commit b3760f5 HOT 4
- "Autoloading file /home/..../straight/build/pkgname/pkgname.el failed to define function pkgname-mode" HOT 1
- Magit is complaining that it needs a later version of transient HOT 9
- straight fails very early in startup emacs HOT 1
- use-package-secret Eager macro-expansion failure: (wrong-number-of-arguments (2 . 2) 3) HOT 5
- Using straight.el conditionally from use-package? HOT 9
- Loading bootstrap.el takes 2s HOT 3
- Could we improve error message when the ~/.config/emacs moved (dangling symlinks) HOT 1
- Can't use eglot with latest Emacs & straight, due to project.el location HOT 9
- Report warning when built-in package gets shadowed HOT 3
- `use-package` integration causes incorrect `symbol-file` HOT 5
- How the autoload affect the `Integration of use-package` HOT 2
- `bootstrap.el` may fail behind a proxy HOT 1
- sunrise-commander should use currently maintained repo HOT 1
- Clarification on `:if` and `:when` behavior HOT 2
- Why a package trigger another's download even when I have built-in in the other's recipe? HOT 2
- AUCTeX mirror no longer contains `tex-site.el` HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from straight.el.