Open glittershark opened 6 years ago
I'm experiencing this error as well. I'll chime in if I find a solution. I might have to brush up on my viml chops..
I experienced this error a few days ago—I converted my filename from kebab-case to snake_case and it went away.
Edit: I've also had luck fixing this by following up the :Piggieback command with a manual :Connect.
+1
Edit: I've also had luck fixing this by following up the :Piggieback command with a manual :Connect.
Does not work for me...
I had similar errors , adding the src directory of the needed namespace under profiles (in my case, it was the dev profile) :source-path
field did it for me . Didn't test adding it to the root :source-path
field of the project.clj file though .
Even though the namespace was visible in the cljs-repl, due to the source-path settings in the respective build config for each build id.
Fireplace seems to check either profile source-path or the root source paths fields of project.clj to find the namespace.
Can anyone still reproduce this with a file that's in :source-path
and that has underscores rather than hyphens in the name?
This is a weird one, because a couple months ago I had
Piggieback
ontofigwheel
viafireplace
working fantastically - something in between updates to dependencies, moving to a different computer, and general Murphy's Law means that with a brand spanking new project, every time I evaluate code when Piggiebacked onto Figwheel I get the following error:I did some hunting, and as far as I can tell this boils down to
require
not working properly from a cljs repl - this line is emitting something of the form(ns clj.user (:require my-project.core))
, and if I run(require 'my-project.core)
at the CLJS repl I get the exact same error.Doing some more digging I'm guessing https://anmonteiro.com/2016/10/clojurescript-require-outside-ns/ might have something to do with it, but downgrading to a version of cljs before that patch landed didn't help.
One hack that had some impact (ie, allowed me to eval code) is the following patch:
which 1. totally breaks namespace preloading 2. throws a compiler warning whenever referencing variables from the namespace and 3. breaks eval from clj, but may serve as a hook into a real solution to the problem
I'm at kind of a loss for this, and though it's entirely possible this is a bug with my config/setup and not with fireplace I'd love any advice/help you can give
Thanks for Fireplace + everything you do for Vim.