Skip to content
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

RLTK::Parser.finalize use: fails to load cache on Windows #45

Open
krzykos opened this issue Jun 5, 2015 · 0 comments
Open

RLTK::Parser.finalize use: fails to load cache on Windows #45

krzykos opened this issue Jun 5, 2015 · 0 comments

Comments

@krzykos
Copy link

krzykos commented Jun 5, 2015

Problem: Windows paths contain a colon

Solution: rltk-3.0.1\lib\rltk\parser.rb:564

Current:

def_file = caller()[2].split(':')[0] if opts[:use]

Should be (choose one):

def_file = caller()[2].split(':')[0..-3].join(':') if opts[:use]
def_file = caller()[2][/^(.*):[^:]+:[^:]+$/, 1] if opts[:use]
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

1 participant