Giter VIP home page Giter VIP logo

Comments (6)

atilaneves avatar atilaneves commented on June 29, 2024 1

Strange. I have no problems at all with any of my dub.sdl projects. I'll take a look at one of yours to see if I can reproduce the issue.

from flycheck-dmd-dub.

atilaneves avatar atilaneves commented on June 29, 2024

Is the source code public?

from flycheck-dmd-dub.

nordlow avatar nordlow commented on June 29, 2024

I have the same problem in all my repos who are dub.sdl based.

I'm not sure it's cased by some other of my packages, though.

I'm gonna try on top of a vanilla Emacs tonite.

But it has worked before so I'm guessing some recent update is the cause.

from flycheck-dmd-dub.

nordlow avatar nordlow commented on June 29, 2024

You can try gmp-d.

from flycheck-dmd-dub.

atilaneves avatar atilaneves commented on June 29, 2024

I opened the first file I saw in gmp-d. Couldn't reproduce the issue. I looked at my init.el in case my configuration was the reason why but all I have there is:

(add-hook 'd-mode-hook 'flycheck-dmd-dub-set-variables)

from flycheck-dmd-dub.

nordlow avatar nordlow commented on June 29, 2024

Thanks.

Forgot to mention that I'm using latest stable Emacs 26.1.

I'm gonna test with a minimal configuration.

Update: After loading the flycheck-dmd-dub.el or .elc manually the problem goes away. Could it be some fldd-variable that is not initialized correctly?... I'm digging on...

Update: The problem seems to be that fldd incorrectly thinks that $HOME is the project root instead of top in $HOME/Work/gmp-d and therefore incorrectly tries to call dub describe in that directory which returns an empty json-file which Emacs then fails to parse...:

Debugger entered--Lisp error: (json-readtable-error 114)
  signal(json-readtable-error (114))
  json-read()
  json-read-from-string("rawRead must take a non-empty buffer\n")
  fldd--set-variables-from-json-string("rawRead must take a non-empty buffer\n")
  fldd--set-variables-from-dub-describe("/home/per/")
  flycheck-dmd-dub-set-variables()
  run-hooks(change-major-mode-after-body-hook prog-mode-hook c-mode-common-hook d-mode-hook d-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook prog-mode-hook c-mode-common-hook d-mode-hook d-mode-hook))
  run-mode-hooks(d-mode-hook)

Update: Doh, I had accidentally added an empty dub.sdl in my HOME. Sorry for the inconvenince.

from flycheck-dmd-dub.

Related Issues (4)

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.