Comments (4)
Aha, apparently TabNine will only detect a project_root
if there is a .tabnine_root
or .git
: codota/TabNine#5
a git init
in /tmp/vscode-tabnine
actually did the trick ๐
If this is intended behaviour, it should clearly be mentioned somewhere in TabNine's docs.
from tabnine-vscode.
I just tried with ccls
and it has a similar error:
...
[2019-08-03][13:43:01][lsp::language_server_transport][INFO] Starting language server: `ccls --init={"cacheDirectory":"${project_root}/.ccls"}`
...
[2019-08-03][13:44:24][lsp::language_server_transport][ERROR] Language server error:
13:43:02 ccls initialize.cc:272 I initialize in directory /tmp/vscode-tabnine/myfile.cpp with uri file:///tmp/vscode-tabnine/myfile.cpp
13:43:02 ccls initialize.cc:295 I initializationOptions: {"compilationDatabaseCommand":"","compilationDatabaseDirectory":"","cache":{"directory":".ccls-cache","format":"binary","hierarchicalPath":false,"retainInMemory":2},"capabilities":{"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"}","moreTriggerCharacter":[]},"foldingRangeProvider":true,"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":true}}},"clang":{"excludeArgs":[],"extraArgs":[],"pathMappings":[],"resourceDir":""},"client":{"diagnosticsRelatedInformation":true,"hierarchicalDocumentSymbolSupport":true,"linkSupport":true,"snippetSupport":true},"codeLens":{"localVariables":true},"completion":{"caseSensitivity":2,"detailedLabel":true,"dropOldRequests":true,"duplicateOptional":true,"filterAndSort":true,"include":{"blacklist":[],"maxPathSize":30,"suffixWhitelist":[".h",".hpp",".hh",".inc"],"whitelist":[]},"maxNum":100},"diagnostics":{"blacklist":[],"onChange":1000,"onOpen":0,"onSave":0,"spellChecking":true,"whitelist":[]},"highlight":{"largeFileSize":2097152,"lsRanges":false,"blacklist":[],"whitelist":[]},"index":{"blacklist":[],"comments":2,"initialNoLinkage":false,"initialBlacklist":[],"initialWhitelist":[],"maxInitializerLines":5,"multiVersion":0,"multiVersionBlacklist":[],"multiVersionWhitelist":[],"name":{"suppressUnwrittenScope":false},"onChange":false,"parametersInDeclarations":true,"threads":0,"trackDependency":2,"whitelist":[]},"request":{"timeout":5000},"session":{"maxNum":10},"workspaceSymbol":{"caseSensitivity":1,"maxNum":1000,"sort":true},"xref":{"maxNum":2000}}
13:43:02 ccls initialize.cc:324 I use -resource-dir=/usr/lib/llvm-8/lib/clang/8.0.1
13:43:02 ccls initialize.cc:359 I workspace folder: /tmp/vscode-tabnine/myfile.cpp/ -> /tmp/vscode-tabnine/myfile.cpp//
13:43:02 ccls initialize.cc:382 I start 4 indexers
13:43:02 ccls initialize.cc:390 I dispatch initial index requests
13:43:02 ccls pipeline.cc:485 I loaded project. Refresh semantic highlight for all working file.
13:43:02 indexer0 pipeline.cc:351 I parse /tmp/vscode-tabnine/myfile.cpp
13:43:02 preamble sema_manager.cc:743 I create session for /tmp/vscode-tabnine/myfile.cpp
13:43:02 indexer0 pipeline.cc:389 I store index for /tmp/vscode-tabnine/myfile.cpp (delta: 0)
13:43:02 indexer0 utils.cc:185 E failed to write to /tmp/vscode-tabnine/myfile.cpp/.ccls-cache/@@tmp@[email protected]/@tmp@[email protected] Not a directory
13:43:02 indexer0 utils.cc:185 E failed to write to /tmp/vscode-tabnine/myfile.cpp/.ccls-cache/@@tmp@[email protected]/@tmp@[email protected] Not a directory
(formatting by me)
from tabnine-vscode.
I have the impression that the ${project_root}
variable doesn't correctly expand when starting the server. That would explain why it tries to "initialize in directory /tmp/vscode-tabnine/myfile.cpp", which is not a directory but a file. Of course this won't work.
Where, and to what value is ${project_root}
set? I tried to change the toml to use vscode's ${workspaceFolder}
, but that didn't help and I'm not sure it would work anywhere outside launch.json and tasks.json files...
Also see codota/TabNine#119, which seems to be related
from tabnine-vscode.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from tabnine-vscode.
Related Issues (20)
- Mustafa
- ใใกใคใซใใใฉใซใใฎๆไฝใ่กใใจโ๏ผๆไฝใฎๅๅ๏ผใฎๅๅ ่ ใๅฎ่กใใฆใใพใโใ่กจ็คบใใใๅฆ็ใซๆ้ใใใใ HOT 1
- ๆ ๆณ็ปๅฝtabnine ่ดฆๅท HOT 1
- Can I custom the code color? HOT 1
- [ERROR]: Error: Binary request timed out. {"State":{}} HOT 12
- ne marche pas HOT 1
- [ERROR] autocomplete timed out/[ERROR]: Error: Binary request timed out. HOT 2
- [Type: enhancement] Force trigger inline suggestion HOT 2
- FastAPI Strange suggestion HOT 1
- Sign in prompt doesn't go away HOT 1
- Do not delete inaccessible code after `return` HOT 1
- please add some screenshots / videos of the feature? including the newly added `TabnineTreeItem`. HOT 1
- bluescreenshots! HOT 1
- LOADING PLEASE WAIT (Forever) HOT 1
- "Reload the window" popup shown after each update. HOT 7
- cannot show codelens HOT 5
- Tabnine plugin automatically switches focus to Chat window HOT 7
- Error loading webview: Error: Could not register service worker: InvalidStateError: HOT 1
- vscode extension stops working produces no results. chat also stops working. HOT 5
- Tabnine stuck at 'Workspace indexing' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tabnine-vscode.