Comments (13)
v0.0.6
from vscode-php-intellisense.
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.
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.
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.
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.
Seems like we can split by the --
from vscode-php-intellisense.
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.
Thanks for that info! Very important
from vscode-php-intellisense.
Could you try this release?
php-intellisense-0.0.5.vsix.zip
from vscode-php-intellisense.
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.
I merged your changes to extension.js into the marketplace release and was able to start the extension.
from vscode-php-intellisense.
I'm confused. Can I release this or not?
from vscode-php-intellisense.
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)
- Extension issue
- Extension issue
- Extension issue
- Keeps popping up with a Warning saying that the extension is not working properly. So I disabled it.
- php intellisense not found in vscode HOT 4
- Extension issue - PHP IntelliSense ver 2.3.14
- Extension issue
- function names inserted as GlobalFunctionName
- Extension issue
- Dependency Dashboard
- Extension issue
- Deprecation notice on start-up
- Go to definition not working on use statements HOT 1
- phpcs: Unable to locate phpcs. Command failed: "C:/Servers/php8" --version '"C:/Servers/php8"' is not recognized as an internal or external command, operable program or batch file.
- Extension issue
- This plugin shows an error when using PHP mixed with HTML
- Is this dead? HOT 2
- Deprecation warning via Github Copilot
- PHP + HTML indentation pattern
- Go To Definition fails with Definition not found 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 vscode-php-intellisense.