Git Product home page Git Product logo

Comments (13)

felixfbecker avatar felixfbecker commented on July 29, 2024 1

v0.0.6

from vscode-php-intellisense.

felixfbecker avatar felixfbecker commented on July 29, 2024

that is a very weird version string. Is it only Gentoo that does this kind of thing? Do you know if this is a pattern (like the double dash)?

from vscode-php-intellisense.

jusesilva avatar jusesilva commented on July 29, 2024

I don't know.. I fixed the version with: if (!semver.satisfies(version.split('-')[0]], '>=7.0')) {
but it is only a temporal work around .. for semver anything with "-" is "less than" the specified version:

$ semver -r '>=7.0' '7.0.10'
7.0.10
$ semver -r '>=7.0' '7.0.10-rc1'
$ semver -r '>=7.0' '7.0.10--pl0-gentoo'
$ semver -r '>=7.0' '7.0.10-pl0-gentoo'
$ semver -r '>=7.0' '7.0.10-gentoo'
$ semver -r '^7.0' '7.0.10-rc1'
$ semver -r '^7.0' '7.0.10'
7.0.10
$

from vscode-php-intellisense.

felixfbecker avatar felixfbecker commented on July 29, 2024

Yes, that's because in semver a - means a pre release, and a pre-release is "before" the stable version of the same number. You fix will not work to validate actual prereleases like 7.0.0-beta1. Which is why I asked if this double dash is a pattern that can be relied upon.

from vscode-php-intellisense.

sunverwerth avatar sunverwerth commented on July 29, 2024

I just want to chime in to say that I have the same problem on elementary OS. The extension fails to load with:

TypeError: Invalid Version: 7.0.8--0ubuntu0.16.04.2

from vscode-php-intellisense.

felixfbecker avatar felixfbecker commented on July 29, 2024

Seems like we can split by the --

from vscode-php-intellisense.

sunverwerth avatar sunverwerth commented on July 29, 2024

If you want to test, the actual output from php --version is:

PHP 7.0.8-0ubuntu0.16.04.2 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.8-0ubuntu0.16.04.2, Copyright (c) 1999-2016, by Zend Technologies

Note: There's only one dash, I guess the seconds dash gets added by your format normalization logic.

from vscode-php-intellisense.

felixfbecker avatar felixfbecker commented on July 29, 2024

Thanks for that info! Very important

from vscode-php-intellisense.

felixfbecker avatar felixfbecker commented on July 29, 2024

Could you try this release?
php-intellisense-0.0.5.vsix.zip

from vscode-php-intellisense.

sunverwerth avatar sunverwerth commented on July 29, 2024

Could not open input file: /home/xxx/.vscode/extensions/felixfbecker.php-intellisense-0.0.5/vendor/felixfbecker/language-server/bin/php-language-server.php

from vscode-php-intellisense.

sunverwerth avatar sunverwerth commented on July 29, 2024

I merged your changes to extension.js into the marketplace release and was able to start the extension.

from vscode-php-intellisense.

felixfbecker avatar felixfbecker commented on July 29, 2024

I'm confused. Can I release this or not?

from vscode-php-intellisense.

felixfbecker avatar felixfbecker commented on July 29, 2024

Ah sorry, it seems like I had a symlink in place to a development version of the language server.

from vscode-php-intellisense.

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.