Coder Social home page Coder Social logo

Comments (9)

weavejester avatar weavejester commented on May 29, 2024

The code sample you give is different from the line of code that you've linked.

The linked code seems to work fine at the REPL.

user=> (let [sep "\\"] (re-pattern (str "([^\\" sep "]*)\\" sep "?$")))
#"([^\\]*)\\?$"

Could you post the error you're encountering?

from ragtime.

sveri avatar sveri commented on May 29, 2024

Hm, I copy / pasted this one from my windows repl. Are you on linux?

I encountered this one while I tried to use joplin 0.3.4 and migrate something. I throws the same error.

from ragtime.

weavejester avatar weavejester commented on May 29, 2024

You posted a REPL session, but the code you posted isn't the same as the code in Ragtime.

from ragtime.

sveri avatar sveri commented on May 29, 2024

You are right, it was not exactly the same code, but what I thought comes out after the replacement.
This is the repl session I have without diving into the code:

C:\Users\sveri\IdeaProjects\temp\closp_showc>lein repl
2015-12-12 20:13:29.767:INFO::main: Logging initialized @4794ms
WARNING: update already refers to: #'clojure.core/update in namespace: hara.common.state, being     replaced by: #'hara.common.state/update
WARNING: update already refers to: #'clojure.core/update in namespace: foo.bar.db.user, being     replaced by: #'korma.core/update
nREPL server started on port 58457 on host 127.0.0.1 - nrepl://127.0.0.1:58457
REPL-y 0.3.7, nREPL 0.2.7
Clojure 1.7.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_65-b17
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

foo.bar.user=> (require 'foo.bar.db.joplin-alias)
nil
foo.bar.user=> (foo.bar.db.joplin-alias/migrate "joplin.edn" :sqlite-dev-env)
CompilerException java.util.regex.PatternSyntaxException: Unclosed character class near index 9
([^\]*)\?$
         ^, compiling:(ragtime/jdbc.clj:83:1)

What I am doing is to call a joplin function that indirectly calls this ragtime function.

from ragtime.

weavejester avatar weavejester commented on May 29, 2024

Which version of Ragtime are you using?

from ragtime.

sveri avatar sveri commented on May 29, 2024

According to https://clojars.org/joplin.jdbc this is version: ragtime/ragtime.jdbc 0.5.1

from ragtime.

weavejester avatar weavejester commented on May 29, 2024

In which case you're probably running into #83. That's fixed in 0.5.2.

from ragtime.

sveri avatar sveri commented on May 29, 2024

Yes, thats true. Sorry for the double issue. I didn't see that one. Upgrade to 0.5.2 fixes the problem. Thanks for your work :-)

from ragtime.

weavejester avatar weavejester commented on May 29, 2024

No problem. Marking this as closed.

from ragtime.

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.