Comments (9)
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.
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.
You posted a REPL session, but the code you posted isn't the same as the code in Ragtime.
from ragtime.
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.
Which version of Ragtime are you using?
from ragtime.
According to https://clojars.org/joplin.jdbc this is version: ragtime/ragtime.jdbc 0.5.1
from ragtime.
In which case you're probably running into #83. That's fixed in 0.5.2.
from ragtime.
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.
No problem. Marking this as closed.
from ragtime.
Related Issues (20)
- Migration strategy for continuous delivery HOT 3
- Catch and rethrow exceptions during migrations with more context? HOT 1
- Allow migrations to be clojure function instead on just sql HOT 2
- ragtime.strategy/ignore-future doesn't exist in the newest version 0.7.2 HOT 1
- Add clean option to rollback all migrations HOT 4
- Abstract out jdbc project HOT 8
- Read error on wildfly HOT 2
- illegal
- WARNING: An illegal reflective access operation has occurred HOT 3
- get-table-metadata* leaks a ResultSet
- Migration conflict on app restart HOT 2
- Throw more actionable "Conflict" exceptions?
- Upgrade ragtime.jdbc to use next-jdbc HOT 1
- next-jdbc: Discover that the migration table exists even if the name is quoted
- Make a new release with the support for quoted identifiers HOT 2
- No such var: next.jdbc.default-options/wrapped-connection? HOT 11
- Ragtime tries to run same migrations twice on Ubuntu 22.04 HOT 3
- Optimize performance of `ragtime.next-jdbc/ensure-migrations-table-exists` HOT 9
- Consider changing the SQL separator to support MySQL users for the better HOT 2
- Instructions on Concepts wiki page does not match `ragtime 0.8.1` behavior HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ragtime.