Code Monkey home page Code Monkey logo

Comments (15)

Danieleeee avatar Danieleeee commented on June 2, 2024 1

I updated "gulp-git": "^2.5.2" in package.json and it seems to work

from oradew-vscode.

mickeypearce avatar mickeypearce commented on June 2, 2024

Hi, thanks for your feedback. 😀

You start up workspace with "Initialize Workspace/Version" command that creates configuration file (oradewrc.json) in your working folder.

Can you please try to do that if you haven't already done so and post about results (or errors).

from oradew-vscode.

Danieleeee avatar Danieleeee commented on June 2, 2024

I have this error:
You must have 64-bit Oracle client libraries in your PATH environment variable.
I have the variable "path" with this folder "C:\product\11.1.0\client_2"

from oradew-vscode.

mickeypearce avatar mickeypearce commented on June 2, 2024

If you have a 32-bit Oracle driver, please make sure that your Node.js is also 32-bit (ia32) if that is possible. Oracle driver in extension is currently precompiled for this architecture.

from oradew-vscode.

Danieleeee avatar Danieleeee commented on June 2, 2024

I have 64bit oracle driver and Node.js

from oradew-vscode.

mickeypearce avatar mickeypearce commented on June 2, 2024

Oracle drivers in extension (node-oracledb) require pre-built binaries for correct architecture. Extension install package is currently built with 32-bit drivers.

I will post a 64-bit version asap.

Could you please tell me your OS and Node.js details (version/arch) ?

from oradew-vscode.

mickeypearce avatar mickeypearce commented on June 2, 2024

Hey @Danieleeee,

if you are still interested in trying it out..., I think the best way to do it would be to rebuild node-oracledb drivers in extension locally (for now - hopefully this process would get easier in the future somehow 🙏)

  1. Go to extension folder using Powershell (as Admin)
    cd $env:userprofile/.vscode/extensions/mp.oradew-vscode-0.0.2
  2. Install Windows-Build -Tools:
    npm --add-python-to-path install --global --production windows-build-tools
  3. Rebuild Oracle drivers:
    npm rebuild
  4. If everything goes well, Oradew should now work and you can start using it with "Initialize" command in your workspace.

Please let me know if it worked.

from oradew-vscode.

Danieleeee avatar Danieleeee commented on June 2, 2024

I have error when I try npm rebuild:

gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: tunneling socket could not be established, statusCode=407
gyp ERR! stack at ClientRequest.onConnect (C:\Program Files\nodejs\node_modules\npm\node_modules\request\node_modules\tunnel-agent\index.js:166:19)
gyp ERR! stack at Object.onceWrapper (events.js:255:19)
gyp ERR! stack at ClientRequest.emit (events.js:160:13)
gyp ERR! stack at Socket.socketOnData (_http_client.js:469:11)
gyp ERR! stack at Socket.emit (events.js:160:13)
gyp ERR! stack at addChunk (_stream_readable.js:269:12)
gyp ERR! stack at readableAddChunk (_stream_readable.js:256:11)
gyp ERR! stack at Socket.Readable.push (_stream_readable.js:213:10)
gyp ERR! stack at TCP.onread (net.js:599:20)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\dricci.vscode\extensions\mp.oradew-vscode-0.0.2\node_modules\oracledb
gyp ERR! node -v v9.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

from oradew-vscode.

Danieleeee avatar Danieleeee commented on June 2, 2024

Can you integrate this extension with sqlTools that works fine with others DB, or plsql-language?

from oradew-vscode.

mickeypearce avatar mickeypearce commented on June 2, 2024

If you are behind a proxy you should set it correctly.

npm config set proxy http://my-proxy.example.com:80/
npm config set https-proxy http://my-proxy.example.com:80/
npm rebuild

from Error: tunneling socket could not be established,...
or

set http_proxy=http://my-proxy.example.com:80/
set https_proxy=http://my-proxy.example.com:80/
npm install

from Installing node-oracledb Version 2

from oradew-vscode.

mickeypearce avatar mickeypearce commented on June 2, 2024

Well, I should definitely include precompiled node-oracledb binaries for different architectures in extension package itself. 🤔

from oradew-vscode.

Danieleeee avatar Danieleeee commented on June 2, 2024

I use a proxy, but it is correctly set up and works for other extensions.
Thanks

from oradew-vscode.

Danieleeee avatar Danieleeee commented on June 2, 2024

Hi,
finally I recompiled (npm rebuild) the extension in 64 bit.
Now I have this error:

TypeError: require.extensions.hasOwnProperty is not a function
at requireDir (C:\Users\dricci.vscode\extensions\mp.oradew-vscode-0.0.2\node_modules\require-dir\index.js:93:37)
at Object. (C:\Users\dricci.vscode\extensions\mp.oradew-vscode-0.0.2\node_modules\gulp-git\index.js:4:18)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object. (C:\Users\dricci.vscode\extensions\mp.oradew-vscode-0.0.2\out\config\utils\git.js:2:13)

from oradew-vscode.

Danieleeee avatar Danieleeee commented on June 2, 2024

I use node version 9.4.0
require.extensions.hasOwnProperty is deprecated

from oradew-vscode.

mickeypearce avatar mickeypearce commented on June 2, 2024

Thanks a lot for putting extra effort into it and making it work for 64-bit. I upgraded the gulp-git dependency.

from oradew-vscode.

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.