Coder Social home page Coder Social logo

@enpoint? about vscode-warpscriptlanguage HOT 7 CLOSED

senx avatar senx commented on June 12, 2024
@enpoint?

from vscode-warpscriptlanguage.

Comments (7)

Giwi avatar Giwi commented on June 12, 2024 1

thanks for your encouragements :) I will try it on Windows later (we have no Windows OS at work).

from vscode-warpscriptlanguage.

whitetigle avatar whitetigle commented on June 12, 2024

Hi, just tried again this mornning. FYI I'm now using the extension from a windows 10 machine and docker.
Changing enpoint to local docker machine ip does not work, I get the same error message ECONNREFUSED 127.0.0.1:808. Thanks for your help!

from vscode-warpscriptlanguage.

whitetigle avatar whitetigle commented on June 12, 2024

Ok changing configuration in vscode parameters does the trick. Maybe that's the way to do it?

from vscode-warpscriptlanguage.

Giwi avatar Giwi commented on June 12, 2024

You can do both ways.

I usually use preferences, but my colleagues use the annotation. I just tried it, it works fine (against our distributed cluster and a local docker image).

Are you sure about your local url (127.0.0.1:808) ? Isn't it listening on the 8080 port?

To my opinion, the request is sent to the right server, nevertheless, a standard Warp 10 instance do not return 'content-type' header on a exec response, while your Warp 10 instance (warp10.gra1.metrics.ovh.net) add content-type: "application/json". We have a dummy test here : https://github.com/Giwi/VSCode-WarpScriptLangage/blob/master/src/features/execCommand.ts#L165 so, the response from your instance is never displayed. According to issue #24, it seems, you have a customized Warp 10 which do not behave like a standard one.

It will be fixed in a future release.

from vscode-warpscriptlanguage.

whitetigle avatar whitetigle commented on June 12, 2024

Hi!

FYI, I'm using latest warp docker image on my local windows machine using
docker run --volume=/var/warp10:/data -p 8080:8080 -p 8081:8081 -d -i warp10io/warp10:latest

Are you sure about your local url (127.0.0.1:808) ? Isn't it listening on the 8080 port?

Sorry it was a typo. It was listening on 8080. But the local ip is 192.168.99.100 since according to the doc,

using Docker on Mac OS or Windows, there is no binding between Warp 10 API address and the host (docker is runned throw a Virtual Machine). To reach Warp 10 you need to replace 127.0.0.1 by the real Ip address of the container.

I don't know if that gives you interesting information though...

from vscode-warpscriptlanguage.

whitetigle avatar whitetigle commented on June 12, 2024

Anyway since I have found one way to change the endpoint, please feel free to close the issue.
Thanks for your answer and for the extension, It's been very useful so far! 👏

from vscode-warpscriptlanguage.

Giwi avatar Giwi commented on June 12, 2024

Hi, it seems to be fixed on windows, could you give a try with the 1.0.0 version?

from vscode-warpscriptlanguage.

Related Issues (8)

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.