textmate / ruby.tmbundle

TextMate support for Ruby
178 stars 90 forks source link

Errors cloning repository on Windows #83

Closed FractalizeR closed 9 years ago

FractalizeR commented 9 years ago

Today cloned a bundle on my Windows machine. Got the following errors:

d:\PHPProjects>git clone https://github.com/textmate/ruby.tmbundle
Cloning into 'ruby.tmbundle'...
remote: Counting objects: 3935, done.
emote: Total 3935 (delta 0), reused 0 (delta 0), pack-reused 3935
Receiving objects: 100% (3935/3935), 982.09 KiB | 347.00 KiB/s, done.
Resolving deltas: 100% (2007/2007), done.
Checking connectivity... done.
error: unable to create file Commands/Enclose in * (RDoc comments).tmCommand (In
valid argument)
error: unable to create file Macros/class .. < DelegateClass .. initialize .. en
d  (class).plist (Invalid argument)
error: unable to create file Macros/each_char { |chr| .. }  (eac).plist (Invalid
 argument)
error: unable to create file Macros/each_cons(..) { |group| .. }  (eac).plist (I
nvalid argument)
error: unable to create file Macros/each_slice(..) { |group| .. }  (eas).plist (
Invalid argument)
error: unable to create file Macros/map_with_index { |e, i| .. }  (mapwi).plist
(Invalid argument)
error: unable to create file Macros/require_gem "__".tmMacro (Invalid argument)
error: unable to create file Snippets/:yields: RDoc comment.tmSnippet (Invalid a
rgument)
error: unable to create file Snippets/Add '# =>' Marker.tmSnippet (Invalid argum
ent)
error: unable to create file Snippets/Array.new(10) { |i| .. }  (Arr).plist (Inv
alid argument)
error: unable to create file Snippets/Dir.glob("..") do |file| .. end  (Dir).pli
st (Invalid argument)
error: unable to create file Snippets/Dir["__"].tmSnippet (Invalid argument)
error: unable to create file Snippets/File.foreach ("..") do |line| .. end  (Fil
e).plist (Invalid argument)
error: unable to create file Snippets/File_open("__") { |file| __ }.tmSnippet (I
nvalid argument)
error: unable to create file Snippets/File_read("__").tmSnippet (Invalid argumen
t)
error: unable to create file Snippets/Hash.new { |hash, key| hash[key] = .. }  (
Has).plist (Invalid argument)
error: unable to create file Snippets/Insert ERb's <% __ %> or <%= __ %>.tmSnipp
et (Invalid argument)
error: unable to create file Snippets/all? { |e| .. }  (all).plist (Invalid argu
ment)
error: unable to create file Snippets/any? { |e| .. }  (any).plist (Invalid argu
ment)
error: unable to create file Snippets/class .. < DelegateClass .. initialize ..
end  (class).plist (Invalid argument)
error: unable to create file Snippets/class .. < ParentClass .. initialize .. en
d.plist (Invalid argument)
error: unable to create file Snippets/class .. < Struct .. initialize .. end.pli
st (Invalid argument)
error: unable to create file Snippets/class .. < Test;;Unit;;TestCase .. end  (t
c).plist (Invalid argument)
error: unable to create file Snippets/class << self __ end.tmSnippet (Invalid ar
gument)
error: unable to create file Snippets/classify { |e| .. }  (clas).plist (Invalid
 argument)
error: unable to create file Snippets/collect { |e| .. }  (col).plist (Invalid a
rgument)
error: unable to create file Snippets/delete_if { |e| .. }  (deli).plist (Invali
d argument)
error: unable to create file Snippets/detect { |e| .. }  (det).plist (Invalid ar
gument)
error: unable to create file Snippets/do |obj| .. end (doo).plist (Invalid argum
ent)
error: unable to create file Snippets/downto(0) { |n| .. }  (dow).plist (Invalid
 argument)
error: unable to create file Snippets/each { |e| .. }  (ea).plist (Invalid argum
ent)
error: unable to create file Snippets/each_byte { |byte| .. }  (eab).plist (Inva
lid argument)
error: unable to create file Snippets/each_char { |chr| .. }  (eac-).plist (Inva
lid argument)
error: unable to create file Snippets/each_cons(..) { |group| .. }  (eac-).plist
 (Invalid argument)
error: unable to create file Snippets/each_index { |i| .. }  (eai).plist (Invali
d argument)
error: unable to create file Snippets/each_key { |key| .. }  (eak).plist (Invali
d argument)
error: unable to create file Snippets/each_line { |line| .. }  (eal).plist (Inva
lid argument)
error: unable to create file Snippets/each_pair { |name, val| .. }  (eap).plist
(Invalid argument)
error: unable to create file Snippets/each_slice { |group| .. }  (eas).plist (In
valid argument)
error: unable to create file Snippets/each_value { |val| .. }  (eav).plist (Inva
lid argument)
error: unable to create file Snippets/each_with_index { |e, i| .. }  (eawi).plis
t (Invalid argument)
error: unable to create file Snippets/fetch(name) { |key| .. }  (fet).plist (Inv
alid argument)
error: unable to create file Snippets/fill(range) { |i| .. }  (fil).plist (Inval
id argument)
error: unable to create file Snippets/find { |e| .. }  (fin).plist (Invalid argu
ment)
error: unable to create file Snippets/find_all { |e| .. }  (fina).plist (Invalid
 argument)
error: unable to create file Snippets/grep(;pattern;) { |match| .. }  (gre).plis
t (Invalid argument)
error: unable to create file Snippets/gsub(;..;) { |match| .. }  (gsu).plist (In
valid argument)
error: unable to create file Snippets/inject(init) { |mem, var| .. }  (inj).plis
t (Invalid argument)
error: unable to create file Snippets/lambda { |args| .. }  (lam).plist (Invalid
 argument)
error: unable to create file Snippets/map { |e| .. }  (map).plist (Invalid argum
ent)
error: unable to create file Snippets/map_with_index { |e, i| .. }  (mapwi).plis
t (Invalid argument)
error: unable to create file Snippets/max { |a, b| .. }  (max).plist (Invalid ar
gument)
error: unable to create file Snippets/min { |a, b| .. }  (min).plist (Invalid ar
gument)
error: unable to create file Snippets/open("path;or;url", "w") do |doc| .. end (
ope).plist (Invalid argument)
error: unable to create file Snippets/partition { |e| .. }  (par).plist (Invalid
 argument)
error: unable to create file Snippets/reject { |e| .. }  (rej).plist (Invalid ar
gument)
error: unable to create file Snippets/require ".."  (req).plist (Invalid argumen
t)
error: unable to create file Snippets/require "tc_.." ..  (ts).plist (Invalid ar
gument)
error: unable to create file Snippets/require_gem "__".tmSnippet (Invalid argume
nt)
error: unable to create file Snippets/reverse_each { |e| .. }  (rea).plist (Inva
lid argument)
error: unable to create file Snippets/scan(;..;) { |match| .. }  (sca).plist (In
valid argument)
error: unable to create file Snippets/select { |e| .. }  (sel).plist (Invalid ar
gument)
error: unable to create file Snippets/sort { |a, b| .. }  (sor).plist (Invalid a
rgument)
error: unable to create file Snippets/sort_by { |e| .. }  (sorb).plist (Invalid
argument)
error: unable to create file Snippets/step(2) { |e| .. }  (ste).plist (Invalid a
rgument)
error: unable to create file Snippets/sub(;..;) { |match| .. }  (sub).plist (Inv
alid argument)
error: unable to create file Snippets/task :task_name => [:dependent, :tasks] do
 __ end.tmSnippet (Invalid argument)
error: unable to create file Snippets/times { |n| .. }  (tim).plist (Invalid arg
ument)
error: unable to create file Snippets/upto(1.0;0.0) { |n| .. }  (upt).plist (Inv
alid argument)
error: unable to create file Snippets/zip(enums) { |row| .. }  (zip).plist (Inva
lid argument)
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
elia commented 9 years ago

Look more like a fit issue, possibly no space left on disk

elia commented 9 years ago

fit => Git (sorry)

FractalizeR commented 9 years ago

No, the problem is that filenames of Snippets contain symbols, that are restricted for filenames in Windows: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx

elia commented 9 years ago

Oh I see, I'd say you should do a PR with the changes, but I'm not sure if it can interfere with previously created deltas.

Btw what's your editor?

FractalizeR commented 9 years ago

I work in PHPStorm mostly. When I need to edit simple text files, I use Notepad++ on Windows (at home's desktop), Sublime on MacOS (at work) and jEdit on Linux (at home's notebook) ;) So I have quite the zoo here ;)

FractalizeR commented 9 years ago

I would file a PR, but I don't know Textmate well. Can Snippets have any name? Should the name be descriptive? Is it displayed somewhere?

I use Textmate bundles only as a syntax highlighting packages in PHPStorm. It doesn't integrate Snippets anywhere.

sorbits commented 9 years ago

File names can contain anything but slashes.

Maybe you can instruct git to only checkout the syntax file you’re interested in, or download it directly from GitHub.com.

As this repository is for TextMate, which only runs on OS X, we do not consider Windows filename compatibility an issue worth addressing.

On 3 May 2015, at 20:36, Vladislav Rastrusny wrote:

I would file a PR, but I don't know Textmate well. Can Snippets have any name? Should the name be descriptive? Is it displayed somewhere?

I use Textmate bundles only as a syntax highlighting packages in PHPStorm. It doesn't integrate Snippets anywhere.


Reply to this email directly or view it on GitHub: https://github.com/textmate/ruby.tmbundle/issues/83#issuecomment-98520239

FractalizeR commented 9 years ago

Maybe you can instruct git to only checkout the syntax file you’re interested in, or download it directly from GitHub.com.

Well, I am interested in no Snippets, so current situation fine by me ;) But may be some other poor Windows guy will need Snippets and will stumble over the same problem. Just thought to report.