Open Maxiviper117 opened 4 days ago
Voltage extension version 0.0.10
@Maxiviper117 I have published 0.0.11 now. Please, give a try.
Also have the same error on 0.0.11
[Error - 2:16:57 PM] Voltage client: couldn't create connection to server. Launching server using command c:\Users\mustaqim.vscode\extensions\robsontenorio.voltage-0.0.11\voltage failed. Error: spawn
Ok, I realized you are using windows.
@Maxiviper117 @mustaqim224 Try now 0.0.12
Still same issue with 0.0.12
@Maxiviper117 does your workspace have an up and running project? Does it have php installed?
What is the output for php -m
and php -v
?
PHP 8.3.14 (cli) (built: Nov 19 2024 15:53:36) (NTS Visual C++ 2019 x64) Copyright (c) The PHP Group Zend Engine v4.3.14, Copyright (c) Zend Technologies with Zend OPcache v8.3.14, Copyright (c), by Zend Technologies
[PHP Modules] bcmath bz2 calendar Core ctype curl date dom exif FFI fileinfo filter gd gmp hash herd iconv intl json libxml mbstring mongodb mysqli mysqlnd openssl pcre PDO pdo_mysql pdo_pgsql pdo_sqlite pgsql Phar random readline redis Reflection session shmop SimpleXML soap sockets sodium SPL sqlite3 standard tokenizer xml xmlreader xmlwriter Zend OPcache zip zlib
[Zend Modules] Zend OPcache
@robsontenorio
Using
->php -v
PHP 8.3.14 (cli) (built: Nov 19 2024 15:53:36) (NTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.3.14, Copyright (c) Zend Technologies
with Zend OPcache v8.3.14, Copyright (c), by Zend Technologies
php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
gd
gmp
hash
iconv
intl
json
libxml
mbstring
mongodb
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
random
readline
redis
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
@ozerozay @Maxiviper117 @mustaqim224
This is weird , because I set up a VM with Windows 11 + PHP and works fine.
What do you guys get when running this on powershell ?
php C:\Users\path-to-voltage-binary
Or enter on that directory and run “php voltage”
This path can be seen on your comments above .
By the way, there is a 0.0.13 version. But , the start up command has not changed.
php voltage
voltage 0.0.14
USAGE:
lsp:start Start Voltage LSP server
php voltage lsp:start Content-Length: 88
{"method":"window\/logMessage","params":{"type":3,"message":"\"Voltage starting ...\""}}
@Maxiviper117 it should be exactly “php voltage”
php ./voltage
works the same as php voltage
As I am not a Windows expert, I don't know if there is some permission/environment setup I am not aware.
This plugin tries to run this command in background, through JS.
I tried with Windows 11, no WSL. Maybe the issue involves that path to voltage when running through WSL.
php -d error_reporting=0 /path/to/voltage lsp:start
Just installed and get error.
This is from vs-code insiders but same issue on vscode
Version: 1.95.3 (user setup) Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813 Date: 2024-11-13T14:50:04.152Z Electron: 32.2.1 ElectronBuildId: 10427718 Chromium: 128.0.6613.186 Node.js: 20.18.0 V8: 12.8.374.38-electron.0 OS: Windows_NT x64 10.0.22631