Skip to content

Syntax Loading Error #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
debetimi opened this issue May 27, 2014 · 4 comments
Closed

Syntax Loading Error #156

debetimi opened this issue May 27, 2014 · 4 comments

Comments

@debetimi
Copy link

For some reason certain namespaces cause errors with vim-clojure-static when I have fireplaced enabled.

I get this error below, after which all the highlight is completed messed up. Also when this happens something weird happens with buffers because I get an "file already exists" warning and I'm forced to save with w!:
"test/clj/caisha/controllers/register_test.clj" 62L, 3304C
Error detected while processing function 68_syntax_keyword:
line 2:
E395: contains argument not accepted here
E475: Invalid argument: clojureFunc +' decimal? restart-agent sort-by macroexpand ensure chunk-first tree-seq unchecked-remainder-int seq reduce find-ns get-thread-bindings co
ntains? every? proxy-mappings keep-indexed subs ref-min-history set one-of take-last bit-set FALSEY butlast satisfies? line-seq unchecked-subtract-int take-nth first re-groups
seq? dec' ns-unmap println-str with-bindings* iterator-seq iterate slurp newline body nine-of short-array fn? doall prefers enumeration-seq dissoc atom bit-shift-right query-
string print-method anything peek aget last pr namespace push-thread-bindings bases = remove-ns take vector? thread-bound? send-via boolean bit-shift-left find-var rand-int ac
lone chunk dec future-call resultset-seq struct map juxt ns-publics < test rest ex-data compile isa? munge set-error-mode! re-seq char? make-hierarchy set-agent-send-executor!
keep char mapcat unchecked-long aset-long some? unchecked-negate reverse range sort -cache-protocol-fn unchecked-inc-int map-indexed rand-nth comp a
E395: contains argument not accepted here
E475: Invalid argument: clojureFunc +' decimal? restart-agent sort-by macroexpand ensure chunk-first tree-seq unchecked-remainder-int seq reduce find-ns get-thread-bindings co
ntains? every? proxy-mappings keep-indexed subs ref-min-history set one-of take-last bit-set FALSEY butlast satisfies? line-seq unchecked-subtract-int take-nth first re-groups
seq? dec' ns-unmap println-str with-bindings* iterator-seq iterate slurp newline body nine-of short-array fn? doall prefers enumeration-seq dissoc atom bit-shift-right query-
string print-method anything peek aget last pr namespace push-thread-bindings bases = remove-ns take vector? thread-bound? send-via boolean bit-shift-left find-var rand-int ac
lone chunk dec future-call resultset-seq struct map juxt ns-publics < test rest ex-data compile isa? munge set-error-mode! re-seq char? make-hierarchy set-agent-send-executor!
keep char mapcat unchecked-long aset-long some? unchecked-negate reverse range sort -cache-protocol-fn unchecked-inc-int map-indexed rand-nth comp a

@debetimi
Copy link
Author

This is my namespace

(ns caisha.controllers.register-test
(:require [midje.sweet :refer :all]
[ring.mock.request :refer :all]
[caisha.util.http :as http]
[clojure.data.json :as json]
[caisha.validation.registration :refer [missing]]
[clojure.edn]
[caisha.controllers.register :refer :all]))

I belive midje is the culprite because I've noticed this happening mostly with files that contain midje.sweet.

@tpope
Copy link
Owner

tpope commented May 27, 2014

This definitely isn't fireplace. Maybe some dynamic highlighter.

@tpope tpope closed this as completed May 27, 2014
@debetimi
Copy link
Author

Edit: It looks like its vim-clojure-highlight which only works when fireplace is enabled. Sorry.
Thanks for the great plugin.

I can confirm that this problem stops immediately once I move vim fireplace out of my .bundle. I'm not sure in what way fireplace interacts with syntax files from other plugins, but it is certainly causing this error. I only have about 6 or 7 vim plugins so I tested by added/removing them one at a time until the behavior stopped. The problem is the combination of vim clojure static and fireplace, certain files or inclusion in my namespace cause this to happen, and it breaks syntax, hightlight and other things no only for clojure but perhaps other syntaxes as well. (I'm seeing weird behavior after this error happens with some html files, where files I've opened prior to getting this error will have the usual html highlighting/indentation and others won't. For example after this happens and I open and html file and try to fix indentation with gg=G I get ever line indendented a tab from the one above it.).

@cursork
Copy link
Contributor

cursork commented Jun 6, 2014

FYI @debetimi it is the contains function from [midje.sweet :refer :all]. I have had the same thing since giving vim-clojure-highlight a second go in the last couple of days. See my report against vim-clojure-static: guns/vim-clojure-static#52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants