headmelted / codebuilds

Community builds of Visual Studio Code for Chromebooks and Raspberry Pi
https://code.headmelted.com
MIT License
1.03k stars 56 forks source link

sqlite error #95

Open joomcoder opened 4 years ago

joomcoder commented 4 years ago

I got this error on raspbian (raspberry pi 4) which causes context data cannot be stored so welcome pages, notification always appear on launch. Any idea on this?

ERR [storage state.vscdb] open(): Unable to open DB due to Error: Cannot find module '../build/Release/sqlite'
Require stack:
- /usr/share/code-oss/resources/app/node_modules.asar/vscode-sqlite3/lib/sqlite3.js
- /usr/share/code-oss/resources/app/out/vs/loader.js
- /usr/share/code-oss/resources/app/out/bootstrap-window.js
- /usr/share/code-oss/resources/app/out/vs/code/electron-browser/workbench/workbench.html
Silerra commented 4 years ago

The SQLite error messages don't only appear in the log today and not only on RPi 4. I saw this in December 2018 and is nothing new. I suspect that it exists longer. I haven't seen this before, because I have never looked in the log before.

Despite this error message, Code-OSS should run normally.

payonel commented 4 years ago

I just spent a good 2 hours on this problem

  1. new rpi 4, installed code-oss from headmelted
  2. open vscode, notice opt-out notification for telemetry
  3. update settings to opt-out
  4. every time i open vscode i see the opt out message
  5. search for an hour for anything bug report about the notification always appearing - nothing
  6. checked the logs found the sqlite3 exception
  7. spent a couple of hours trying to build sqlite and update npm and node -- never fixed the module note found exception
  8. decided to finally give up and report the bug to this repo..and found this bug

so.. yeah -- it would be nice if this gets fixed or anyone can find a work around

Thanks!

tuanpham-dev commented 4 years ago

@payonel - I have build a version for myself. You can download it here https://github.com/tuanpham-dev/vscode-arm-builder/releases. I will create pull request for this soon.