<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged hugsql</title>
<link>https://ask.clojure.org/index.php/tag/hugsql</link>
<description></description>
<item>
<title>Why i get the &quot;Could not locate hugsql/core__init.class, hugsql/core.clj or hugsql/core.cljc on classpath.&quot; ?</title>
<link>https://ask.clojure.org/index.php/12240/could-locate-hugsql-coreinit-class-hugsql-hugsql-classpath</link>
<description>&lt;p&gt;It's happen when i load the huqsql namespace into nREPL and then the error is appears to be something like this :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Syntax error (FileNotFoundException) compiling at (src/db_examples/hugsql.clj:1:1).
Could not locate hugsql/core__init.class, hugsql/core.clj or hugsql/core.cljc on classpath.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;dependencies :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[[org.clojure/clojure &quot;1.10.1&quot;]
             [seancorfield/next.jdbc &quot;1.1.613&quot;]
             [org.postgresql/postgresql &quot;42.2.8&quot;]
             [com.layerware/hugsql &quot;0.5.3&quot;]
             [hugsql-next-jdbc &quot;0.1.3&quot;]]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;the namespace :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(ns db-examples.hugsql

(:require [db-examples.core :refer [db]]
            [next.jdbc :as jdbc]
            [hugsql.core :as hugsql]))

(hugsql/def-db-fns &quot;resources/users.sql&quot;)
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Syntax and reader</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/12240/could-locate-hugsql-coreinit-class-hugsql-hugsql-classpath</guid>
<pubDate>Mon, 26 Sep 2022 16:46:09 +0000</pubDate>
</item>
</channel>
</rss>