robsontenorio / voltage

Livewire Volt + Blade Intellisense for VSCode/Cursor/Windsurf
https://marketplace.visualstudio.com/items?itemName=robsontenorio.voltage
11 stars 0 forks source link

VSCode Error: Windows support #1

Open Maxiviper117 opened 4 days ago

Maxiviper117 commented 4 days ago

Just installed and get error.

This is from vs-code insiders but same issue on vscode

[Error - 2:40:30 PM] Voltage client: couldn't create connection to server.
Launching server using command c:\Users\david\.vscode-insiders\extensions\robsontenorio.voltage-0.0.10\voltage failed. Error: spawn c:\Users\xxx\.vscode-insiders\extensions\robsontenorio.voltage-0.0.10\voltage ENOENT

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

Maxiviper117 commented 4 days ago

Voltage extension version 0.0.10

robsontenorio commented 3 days ago

@Maxiviper117 I have published 0.0.11 now. Please, give a try.

mustaqim224 commented 3 days ago

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

robsontenorio commented 3 days ago

Ok, I realized you are using windows.

robsontenorio commented 2 days ago

@Maxiviper117 @mustaqim224 Try now 0.0.12

Maxiviper117 commented 2 days ago

Still same issue with 0.0.12

image

robsontenorio commented 2 days ago

@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?

ozerozay commented 2 days ago

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

Maxiviper117 commented 2 days ago

@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
robsontenorio commented 1 day ago

@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.

ozerozay commented 1 day ago

php voltage

voltage 0.0.14

USAGE: [options] [arguments]

lsp:start Start Voltage LSP server

php voltage lsp:start Content-Length: 88

{"method":"window\/logMessage","params":{"type":3,"message":"\"Voltage starting ...\""}}

Maxiviper117 commented 1 day ago

image

robsontenorio commented 1 day ago

@Maxiviper117 it should be exactly “php voltage”

Maxiviper117 commented 22 hours ago

php ./voltage works the same as php voltage

image

robsontenorio commented 14 hours ago

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