Giter Club home page Giter Club logo

Comments (11)

paulvi avatar paulvi commented on July 28, 2024

It seems to be git version related.

from tern.java.

angelozerr avatar angelozerr commented on July 28, 2024

@paulvi do you know how to resolve it?

from tern.java.

paulvi avatar paulvi commented on July 28, 2024

It seems to be only on Win 32x
On Win 64 it is OK.

No way to resolve, just to know (add to README?) that there are long names, that on Windows can run into this problem.

from tern.java.

angelozerr avatar angelozerr commented on July 28, 2024

Ok. I close this issue. Thank's to speak about this problem.

from tern.java.

gamerson avatar gamerson commented on July 28, 2024

I see the same error and I'm on win64. Windows msysgit just can't handle
the long file names. But here is how we can solve it, because I had to
solve it this way.

  • don't check in the node files as a directory
  • instead check in a node.js zip file that contains the contents of the
    node/** directory
  • and then have some Plugin Activator code in the node bundles/fragments
    that first checks for a directory under the bundle
  • if the directory doesn't exist, then unzip the contents of the zip

Then we can check in the files without any problem. You can see some
example of this type of code here:
https://github.com/liferay/liferay-ide/blob/master/tools/plugins/com.liferay.ide.alloy.core/src/com/liferay/ide/alloy/core/LautRunner.java

The class LautRunner will check for existence of "laut" directory under the
OS fragments. If the directory doesn't exist it will unzip it and return a
path to the executable.

But see the fragment is empty:
https://github.com/liferay/liferay-ide/tree/master/tools/plugins/com.liferay.laut.win32.win32.x86_64

what do you think?

On Thu, Apr 10, 2014 at 8:43 PM, Paul Verest [email protected]:

It seems to be only on Win 32x
On Win 64 it is OK.

No way to resolve, just to know (add to README?) that there are long
names, that on Windows can run into this problem.

Reply to this email directly or view it on GitHubhttps://github.com//issues/35#issuecomment-40073116
.

Greg Amerson
Liferay Developer Tools
Liferay, Inc. www.liferay.com

from tern.java.

gamerson avatar gamerson commented on July 28, 2024

Angelo, can we reopen to continue this discussion? I believe I may be able
to contribute this functionality, because this problem is hurting me at the
moment, I can't see those OS fragments. msysgit fails on checkout.

On Thu, Apr 10, 2014 at 8:52 PM, Greg Amerson
[email protected]:

I see the same error and I'm on win64. Windows msysgit just can't handle
the long file names. But here is how we can solve it, because I had to
solve it this way.

  • don't check in the node files as a directory
  • instead check in a node.js zip file that contains the contents of the
    node/** directory
  • and then have some Plugin Activator code in the node bundles/fragments
    that first checks for a directory under the bundle
  • if the directory doesn't exist, then unzip the contents of the zip

Then we can check in the files without any problem. You can see some
example of this type of code here:

https://github.com/liferay/liferay-ide/blob/master/tools/plugins/com.liferay.ide.alloy.core/src/com/liferay/ide/alloy/core/LautRunner.java

The class LautRunner will check for existence of "laut" directory under
the OS fragments. If the directory doesn't exist it will unzip it and
return a path to the executable.

But see the fragment is empty:

https://github.com/liferay/liferay-ide/tree/master/tools/plugins/com.liferay.laut.win32.win32.x86_64

what do you think?

On Thu, Apr 10, 2014 at 8:43 PM, Paul Verest [email protected]:

It seems to be only on Win 32x
On Win 64 it is OK.

No way to resolve, just to know (add to README?) that there are long
names, that on Windows can run into this problem.

Reply to this email directly or view it on GitHubhttps://github.com//issues/35#issuecomment-40073116
.

Greg Amerson
Liferay Developer Tools
Liferay, Inc. www.liferay.com

Greg Amerson
Liferay Developer Tools
Liferay, Inc. www.liferay.com

from tern.java.

paulvi avatar paulvi commented on July 28, 2024

@gamerson I think that solution with .zip file should be open as new issue.

Other solution could be handling npm modules on runtime with npm or some alternative, i.e. not package them.

from tern.java.

gamerson avatar gamerson commented on July 28, 2024

Agree, if Angelo would rather not host node all together that could be an option. If node is still going to be embedded, I would like to pursue the zip option.

from tern.java.

angelozerr avatar angelozerr commented on July 28, 2024

I don't understand you rproblem, today we use zip file.

from tern.java.

paulvi avatar paulvi commented on July 28, 2024

@natasha544 Please raise new issue

from tern.java.

AndrewJobel avatar AndrewJobel commented on July 28, 2024

I recommend LongPathTool, Please try.

from tern.java.

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.