Git Product home page Git Product logo

Comments (7)

progfolio avatar progfolio commented on June 16, 2024 1

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.

64J0 avatar 64J0 commented on June 16, 2024 1

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.

64J0 avatar 64J0 commented on June 16, 2024

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.

64J0 avatar 64J0 commented on June 16, 2024

https://github.com/64J0/Emacs-config/blob/master/src/org-mode.el

from straight.el.

64J0 avatar 64J0 commented on June 16, 2024

Also, I noticed that we don't have a receipt for the ob-fsharp package. How can I add it?

from straight.el.

64J0 avatar 64J0 commented on June 16, 2024

@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.

64J0 avatar 64J0 commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.