iamcco / coc-flutter Goto Github PK
View Code? Open in Web Editor NEWflutter support for (Neo)vim
flutter support for (Neo)vim
When :CocCommand flutter.run
is executed in Vim8
, an error is output.
[coc.nvim] error: at VimTransport.request (/Users/xxxx/.vim/plugged/coc.nvim/build/index.js:6355:13)
flutter run
seems to be running, but I was worried about the error being output.
There is no problem with Neovim.
Maybe it's already implemented but I can't find it. Looking for a Coc command similar to flutter.dev.openProfiler that would run:
pub global run devtools
Then open a browser at:
but with the URL completed with the the current running profile in from flutter.dev.openProfiler to give something like:
http://127.0.0.1:9100/#/?uri=ws%XXXXXXXXXXXXXXXXXXX%2Fws
Would this be possible?
useful link: https://flutter.dev/docs/development/tools/devtools/cli
Currently, if flutter fails to render the page, a load of error output will be dumped to the debugger log, which will be displayed, line by line, by floating windows. This creates lag and sometimes even crashes NeoVim. I suggest that we need a command that clears the output queue produced flutter handled by coc-flutter.
What are your thoughts? @iamcco
I'm trying flutter for the first time, and coc-flutter as well. On Archlinux I can install the sdk from AUR. It installs to /opt/flutter
and symbolic links are created:
❯ ls -lh /usr/bin/flutter
lrwxrwxrwx 1 root root 24 Oct 14 18:44 /usr/bin/flutter -> /opt/flutter/bin/flutter
So the command is in my PATH, but due to a symlink in /usr/bin/flutter
, not because of adding /opt/flutter/bin
to my PATH.
感谢作者能发布这么优秀的neovim插件,我一直使用vim。此前一直用neovim写nodejs,感觉coc真的挺棒的。最近正在学习flutter所以想试试用neovim写flutter代码,发现coc-flutter插件真的挺幸运的,再次感谢。
在这之前一直用vscode编辑flutter代码,现在dart,flutter已经在环境变量里。命令行输入flutter run也可以直接编译apk文件,push到手机。vscode F5也可以自动reload.
现在按照readme介绍的,使用 coc-install coc-flutter,已经安装了这个插件。
:coc-list FultterDevices 提示 List FlutterDevices not found.
在打开~/project/projectName.iml文件的状态:
:CocList --input=flutter commands 选择flutter run ,在vim右上角显示 start flutter dev server,然后提示就没有了。。手机没有收到推送的安装包
目前coc里,flutter相关的插件只安装了coc-flutter,请问是我缺少了什么配置么?
OS:linux 4.19
dart 2.7.0
flutter 1.12.13
neovim 0.4.3
Is there a way to automatically scroll the dev server output whenever there is a new change?
I am currently opening the output buffer with :CocCommand workspace.showOutput
. However, I need to manually scroll down to see the latest logs. Is there a way to enable scrolling automatically?
As an alternative solution, I tried to tail -f the corresponding buffer "output:///flutter-dev" from a terminal, but I can't seem to locate it on my disk.
I am new to neovim.
Describe the bug
I'm having trouble getting this to work. All other Coc extensions works fine, but this one does not enable autocomplete or any linting, etc.
I use asdf to install flutter. I'm able to use visual studio code to point to the SDK and it works fine. But how can I point to it in neovim?
To Reproduce
Steps to reproduce the behavior:
"flutter.sdk.flutter-lookup": "/Users/nathan/.asdf/installs/flutter/1.20.3-stable",
"flutter.sdk.dart-lookup": "/Users/nathan/.asdf/installs/flutter/1.20.3-stable",
When I open a lib/main.dart
file in my flutter app, I don't get any linting or autocomplete.
Expected behavior
Should work with the language server. Does this need to be configured separately somehow?
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Output channel:
"flutter.trace.server": "verbose"
:CocList output
open output list and select flutter
Log:
[dev-command]: register dev command
[sdk]: flutter command not found: flutter lookup returned empty string
[sdk]: dart command not found: dart lookup returned empty string
[sdk]: analyzer path => bin/snapshots/analysis_server.dart.snapshot
[sdk]: dart command path => bin/dart
[sdk]: Dart SDK not found!
[sdk]: {
"dartHome": "",
"analyzerSnapshotPath": "bin/snapshots/analysis_server.dart.snapshot"
}
[lsp-server]: flutter SDK not found!
混合开发的时候,需要用到flutter attach命令,没有hot reload开发的时候会有不适,希望支持一下。
Is there a way to have more relevant entries like that of visual studio code flutter plugin.
Additionally is it possible to show the doc entry after autocomplete is selected?
For example:
MaterialColor colors = MaterialColor(
^
Can it show document entry for MaterialColor
constructor after (
is input?
Hi. I'm running application and want to see profiler. So i run this command:
flutter.dev.openProfiler
But get that error mentioned in title.
Describe the bug
Currently on a fresh flutter project, when I create a new file with a class it is not detected by the language server.
To Reproduce
Create a new flutter project.
Create a new file with a Class.
Try to get autocomplete for that class in the main.dart file.
Expected behavior
At this point I would like to have the new class to be autocompleted/imported. However nothing happens until I restart vim. (CocRestart does not help. A full vim restart seems to be needed.)
Desktop (please complete the following information):
Output channel:
this file is tens of thousands lines long.. The only reference to the new class I can find in this file is the diagnostic error that it does not exist.
Right now flutter.lsp.initialization.onlyAnalyzeProjectsWithOpenFiles = false
doesnt seem to do anything. Is it possible to somehow show all errors in a separate buffer or in explorer plugins like NERDTree? Awesome plugin btw.
When I launch :CocAction:
there is an option to extract the current widget. As in VS Code and Android studio, how do we enable or access the option to wrap the current widget inside a say Container
widget?
Hi, do you think it would be possible to add an autmatic dartfmt on save ? If so would it be logical to add it in this plugin or to create its own ?
Thanks for the input, I can try to help implement this if needed.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Output channel:
"flutter.trace.server": "verbose"
:CocList output
open output list and select flutter
Log:
I use the flutter test test/
command quite frequently (In VSCode, I can just add an entry to the launch.json
file and run it from there directly).
Right now, I am relying on executing the system command straight from neovim like :!flutter test test/
but the output is not exactly "pretty" as in green for passed or red for failed. This plugin's great, but if this feature could be added in the future as an enhancement, it would be great for development. Like a flutter.run.test
command or something.
In the meantime, I'll try to do something from my side when I have time and see if I can contribute a PR.
Currently, the devLog CocCommand will open a window that does not autoscroll nor wrap. Is there a way to change these behaviors?
Hello, @iamcco! Thank you for the extension. My issue is I get nothing when I run :CocFix. It seems coc runs quickfix with :CocAction quickfix
, and coc-flutter runs :CocAction -quickfix
, right? I discovered this by accident, and I could simply remap :CocFix to using :CocAction -quickfix
instead, but is this behavior expected?
To Reproduce
Steps to reproduce the behavior:
Press ? on normal mode to get help.
.Expected behavior
Quickfixes, e.g. imports, making a field final, create non-existing variable.
Desktop (please complete the following information):
Log:
[dev-command]: register dev command
[sdk]: which flutter command => /usr/bin/flutter
[sdk]: flutter command path => /opt/flutter/bin/flutter
[sdk]: dart sdk home => /opt/flutter/bin/cache/dart-sdk
[sdk]: analyzer path => /opt/flutter/bin/cache/dart-sdk/bin/snapshots/analysis_server.dart.snapshot
[sdk]: dart command path => /opt/flutter/bin/cache/dart-sdk/bin/dart
[sdk]: dart version: v2.9.0
[lsp-server]: rightVersion true
[Trace - 7:39:59 PM] Sending request 'initialize - (0)'.
Params: {
"processId": 175172,
"rootPath": "/home/rasuru/dev/progressbook-clean2",
"rootUri": "file:///home/rasuru/dev/progressbook-clean2",
"capabilities": {
"workspace": {
"applyEdit": true,
"workspaceEdit": {
"documentChanges": true,
"resourceOperations": [
"create",
"rename",
"delete"
],
"failureHandling": "textOnlyTransactional"
},
"didChangeConfiguration": {
"dynamicRegistration": true
},
"didChangeWatchedFiles": {
"dynamicRegistration": true
},
"symbol": {
"dynamicRegistration": true,
"symbolKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26
]
},
"tagSupport": {
"valueSet": [
1
]
}
},
"executeCommand": {
"dynamicRegistration": true
},
"configuration": true,
"workspaceFolders": true
},
"textDocument": {
"publishDiagnostics": {
"relatedInformation": true,
"versionSupport": false,
"tagSupport": {
"valueSet": [
1,
2
]
}
},
"synchronization": {
"dynamicRegistration": true,
"willSave": true,
"willSaveWaitUntil": true,
"didSave": true
},
"completion": {
"dynamicRegistration": true,
"contextSupport": true,
"completionItem": {
"snippetSupport": true,
"commitCharactersSupport": true,
"documentationFormat": [
"markdown",
"plaintext"
],
"deprecatedSupport": true,
"preselectSupport": true
},
"completionItemKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25
]
}
},
"hover": {
"dynamicRegistration": true,
"contentFormat": [
"markdown",
"plaintext"
]
},
"signatureHelp": {
"dynamicRegistration": true,
"signatureInformation": {
"documentationFormat": [
"markdown",
"plaintext"
],
"parameterInformation": {
"labelOffsetSupport": true
}
}
},
"definition": {
"dynamicRegistration": true
},
"references": {
"dynamicRegistration": true
},
"documentHighlight": {
"dynamicRegistration": true
},
"documentSymbol": {
"dynamicRegistration": true,
"symbolKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26
]
},
"hierarchicalDocumentSymbolSupport": true,
"tagSupport": {
"valueSet": [
1
]
}
},
"codeAction": {
"dynamicRegistration": true,
"isPreferredSupport": true,
"codeActionLiteralSupport": {
"codeActionKind": {
"valueSet": [
"",
"quickfix",
"refactor",
"refactor.extract",
"refactor.inline",
"refactor.rewrite",
"source",
"source.organizeImports"
]
}
}
},
"codeLens": {
"dynamicRegistration": true
},
"formatting": {
"dynamicRegistration": true
},
"rangeFormatting": {
"dynamicRegistration": true
},
"onTypeFormatting": {
"dynamicRegistration": true
},
"rename": {
"dynamicRegistration": true,
"prepareSupport": true
},
"documentLink": {
"dynamicRegistration": true,
"tooltipSupport": true
},
"typeDefinition": {
"dynamicRegistration": true
},
"implementation": {
"dynamicRegistration": true
},
"declaration": {
"dynamicRegistration": true
},
"colorProvider": {
"dynamicRegistration": true
},
"foldingRange": {
"dynamicRegistration": true,
"rangeLimit": 5000,
"lineFoldingOnly": true
},
"selectionRange": {
"dynamicRegistration": true
}
},
"window": {
"workDoneProgress": true
}
},
"initializationOptions": {
"onlyAnalyzeProjectsWithOpenFiles": true,
"suggestFromUnimportedLibraries": true,
"closingLabels": true
},
"trace": "verbose",
"workspaceFolders": [
{
"uri": "file:///home/rasuru/dev/progressbook-clean2",
"name": "progressbook-clean2"
}
],
"clientInfo": {
"name": "coc.nvim",
"version": "0.0.78"
}
}
[Trace - 7:39:59 PM] Received response 'initialize - (0)' in 332ms.
Result: {
"capabilities": {
"workspaceSymbolProvider": true,
"documentRangeFormattingProvider": false,
"executeCommandProvider": {
"commands": [
"edit.sortMembers",
"edit.organizeImports",
"edit.sendWorkspaceEdit",
"refactor.perform"
]
},
"workspace": {
"workspaceFolders": {
"supported": true,
"changeNotifications": true
}
}
}
}
[Trace - 7:39:59 PM] Sending notification 'initialized'.
Params: {}
[lsp-server]: analysis server ready!
[lsp-closing-labels]: register closing labels
[Trace - 7:39:59 PM] Received request 'workspace/configuration - (1)'.
Params: {
"items": [
{
"section": "dart"
}
]
}
[Trace - 7:39:59 PM] Sending response 'workspace/configuration - (1)'. Processing request took 1ms
Result: [
{}
]
[Trace - 7:39:59 PM] Received request 'client/registerCapability - (2)'.
Params: {
"registrations": [
{
"id": "0",
"method": "textDocument/didOpen",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
},
{
"language": "yaml",
"scheme": "file",
"pattern": "**/pubspec.yaml"
},
{
"language": "yaml",
"scheme": "file",
"pattern": "**/analysis_options.yaml"
}
]
}
},
{
"id": "1",
"method": "textDocument/didClose",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
},
{
"language": "yaml",
"scheme": "file",
"pattern": "**/pubspec.yaml"
},
{
"language": "yaml",
"scheme": "file",
"pattern": "**/analysis_options.yaml"
}
]
}
},
{
"id": "2",
"method": "textDocument/didChange",
"registerOptions": {
"syncKind": 2,
"documentSelector": [
{
"language": "dart",
"scheme": "file"
},
{
"language": "yaml",
"scheme": "file",
"pattern": "**/pubspec.yaml"
},
{
"language": "yaml",
"scheme": "file",
"pattern": "**/analysis_options.yaml"
}
]
}
},
{
"id": "3",
"method": "textDocument/completion",
"registerOptions": {
"triggerCharacters": [
".",
"=",
"(",
"$"
],
"resolveProvider": true,
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "4",
"method": "textDocument/hover",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "5",
"method": "textDocument/signatureHelp",
"registerOptions": {
"triggerCharacters": [],
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "6",
"method": "textDocument/references",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "7",
"method": "textDocument/documentHighlight",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "8",
"method": "textDocument/documentSymbol",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "9",
"method": "textDocument/formatting",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "10",
"method": "textDocument/onTypeFormatting",
"registerOptions": {
"firstTriggerCharacter": "}",
"moreTriggerCharacter": [
";"
],
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "11",
"method": "textDocument/definition",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "12",
"method": "textDocument/implementation",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "13",
"method": "textDocument/codeAction",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
],
"codeActionKinds": [
"source",
"source.organizeImports",
"source.sortMembers",
"quickfix"
]
}
},
{
"id": "14",
"method": "textDocument/rename",
"registerOptions": {
"prepareProvider": true,
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "15",
"method": "textDocument/foldingRange",
"registerOptions": {
"documentSelector": [
{
"language": "dart",
"scheme": "file"
}
]
}
},
{
"id": "16",
"method": "workspace/didChangeConfiguration"
}
]
}
[Trace - 7:39:59 PM] Sending notification 'textDocument/didOpen'.
Params: {
"textDocument": {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart",
"languageId": "dart",
"version": 1,
"text": "import 'package:flutter/material.dart';\nimport 'package:immortal/immortal.dart';\n\nimport 'utils/tasks/taskable_list.dart';\nimport 'adapters/data/gateway.dart';\nimport 'adapters/ui/controller.dart';\nimport 'adapters/ui/states.dart';\nimport 'attachments/adapters/ui/models.dart';\nimport 'entries/adapters/ui/models.dart';\nimport 'entries/api.dart';\nimport 'quests/adapters/ui/models.dart';\nimport 'retro_ui/app.dart';\n\nvoid main() {\n final BehaviorSubject<int> hey;\n WidgetsFlutterBinding.ensureInitialized();\n final gateway = DataGateway();\n final entriesApi = EntriesApi(\n dataPort: gateway,\n );\n final uiController = UiController(\n states: UiStates(),\n entriesApi: entriesApi,\n );\n\n ImmortalList([\n EntryModel(\n dateTime: DateTime.now(),\n id: 1,\n tags: ImmortalList.empty(),\n title: \"Hello\",\n attachment: QuestModel(\n id: 1,\n completionTemplate: AchievementModel(\n points: 65,\n ),\n ),\n ),\n EntryModel(\n id: 3,\n tags: ImmortalList.empty(),\n title: \"Hello\",\n dateTime: DateTime.now(),\n attachment: UserTextModel(\"Some thoughts...\"),\n ),\n EntryModel(\n id: 4,\n tags: ImmortalList.empty(),\n title: \"\",\n dateTime: DateTime.now(),\n attachment: UserTextModel(\"Some thoughts...\"),\n ),\n ])\n .taskAll(\n uiController.addEntry,\n )\n .andThen(\n uiController.getAllEntries(),\n )\n .run();\n\n runApp(App(controller: uiController));\n}\n"
}
}
[Trace - 7:39:59 PM] Sending response 'client/registerCapability - (2)'. Processing request took 4ms
No result returned.
[Trace - 7:40:02 PM] Received notification '$/analyzerStatus'.
Params: {
"isAnalyzing": true
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart",
"diagnostics": [
{
"range": {
"start": {
"line": 14,
"character": 29
},
"end": {
"line": 14,
"character": 32
}
},
"severity": 3,
"code": "unused_local_variable",
"source": "dart",
"message": "The value of the local variable 'hey' isn't used.\nTry removing the variable, or using it."
},
{
"range": {
"start": {
"line": 14,
"character": 29
},
"end": {
"line": 14,
"character": 32
}
},
"severity": 1,
"code": "final_not_initialized",
"source": "dart",
"message": "The final variable 'hey' must be initialized.\nTry initializing the variable."
},
{
"range": {
"start": {
"line": 14,
"character": 8
},
"end": {
"line": 14,
"character": 23
}
},
"severity": 1,
"code": "undefined_class",
"source": "dart",
"message": "Undefined class 'BehaviorSubject'.\nTry changing the name to the name of an existing class, or creating a class with the name 'BehaviorSubject'."
}
]
}
[Trace - 7:40:02 PM] Received notification 'dart/textDocument/publishClosingLabels'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart",
"labels": [
{
"range": {
"start": {
"line": 20,
"character": 23
},
"end": {
"line": 23,
"character": 3
}
},
"label": "UiController"
},
{
"range": {
"start": {
"line": 25,
"character": 2
},
"end": {
"line": 52,
"character": 4
}
},
"label": "ImmortalList"
},
{
"range": {
"start": {
"line": 26,
"character": 4
},
"end": {
"line": 37,
"character": 5
}
},
"label": "EntryModel"
},
{
"range": {
"start": {
"line": 31,
"character": 18
},
"end": {
"line": 36,
"character": 7
}
},
"label": "QuestModel"
},
{
"range": {
"start": {
"line": 33,
"character": 28
},
"end": {
"line": 35,
"character": 9
}
},
"label": "AchievementModel"
},
{
"range": {
"start": {
"line": 38,
"character": 4
},
"end": {
"line": 44,
"character": 5
}
},
"label": "EntryModel"
},
{
"range": {
"start": {
"line": 45,
"character": 4
},
"end": {
"line": 51,
"character": 5
}
},
"label": "EntryModel"
}
]
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/tags/entities/tag.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/tags/ports/data.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/tags/adapters/ui/models.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/tags/api.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/retro_ui/utils/sheet.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/retro_ui/states.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/retro_ui/app.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/retro_ui/widgets/menu.dart",
"diagnostics": [
{
"range": {
"start": {
"line": 3,
"character": 7
},
"end": {
"line": 3,
"character": 33
}
},
"severity": 3,
"code": "unused_import",
"source": "dart",
"message": "Unused import: 'package:dartz/dartz.dart'.\nTry removing the import directive."
}
]
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/utils/math/is_in_range.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/utils/lists/immortal.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/utils/lists/take_while_pairs.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/utils/lists/mortal.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/utils/eithers/catch_type.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/utils/create_state.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/utils/task_utils.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/utils/options/get.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/utils/pipe.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/utils/mixins/identifiable.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/utils/tasks/taskable_list.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/utils/tasks/taskable_function.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/utils/tasks/value.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/utils/list_utils.dart",
"diagnostics": [
{
"range": {
"start": {
"line": 0,
"character": 7
},
"end": {
"line": 0,
"character": 25
}
},
"severity": 1,
"code": "uri_does_not_exist",
"source": "dart",
"message": "Target of URI doesn't exist: 'list/mortal.dart'.\nTry creating the file referenced by the URI, or Try using a URI for a file that does exist."
},
{
"range": {
"start": {
"line": 1,
"character": 7
},
"end": {
"line": 1,
"character": 27
}
},
"severity": 1,
"code": "uri_does_not_exist",
"source": "dart",
"message": "Target of URI doesn't exist: 'list/immortal.dart'.\nTry creating the file referenced by the URI, or Try using a URI for a file that does exist."
},
{
"range": {
"start": {
"line": 2,
"character": 7
},
"end": {
"line": 2,
"character": 35
}
},
"severity": 1,
"code": "uri_does_not_exist",
"source": "dart",
"message": "Target of URI doesn't exist: 'list/take_while_pairs.dart'.\nTry creating the file referenced by the URI, or Try using a URI for a file that does exist."
}
]
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/adapters/data/gateway.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/adapters/ui/states.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/adapters/ui/controller.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/attachments/entities/user_text.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/attachments/entities/attachment.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/attachments/entities/achievement.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/attachments/retro_ui/models/entry.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/attachments/adapters/ui/models.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/quests/entities/quest.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/quests/entities/completion.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/quests/retro_ui/models/entry.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/quests/adapters/ui/models.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/failures/failure.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/entries/entities/entry.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/entries/retro_ui/models/entry.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/entries/ports/data.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/entries/adapters/data/gateway.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/entries/adapters/ui/models.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/entries/adapters/ui/states.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/entries/adapters/ui/controller.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/entries/api.dart",
"diagnostics": []
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/test/utils/either/catch_type_test.dart",
"diagnostics": [
{
"range": {
"start": {
"line": 2,
"character": 7
},
"end": {
"line": 2,
"character": 58
}
},
"severity": 1,
"code": "uri_does_not_exist",
"source": "dart",
"message": "Target of URI doesn't exist: 'package:progressbook/utils/either/catch_type.dart'.\nTry creating the file referenced by the URI, or Try using a URI for a file that does exist."
},
{
"range": {
"start": {
"line": 40,
"character": 8
},
"end": {
"line": 40,
"character": 17
}
},
"severity": 1,
"code": "undefined_function",
"source": "dart",
"message": "The function 'catchType' isn't defined.\nTry importing the library that defines 'catchType', correcting the name to the name of an existing function, or defining a function named 'catchType'."
},
{
"range": {
"start": {
"line": 16,
"character": 6
},
"end": {
"line": 16,
"character": 15
}
},
"severity": 1,
"code": "undefined_function",
"source": "dart",
"message": "The function 'catchType' isn't defined.\nTry importing the library that defines 'catchType', correcting the name to the name of an existing function, or defining a function named 'catchType'."
},
{
"range": {
"start": {
"line": 34,
"character": 6
},
"end": {
"line": 34,
"character": 15
}
},
"severity": 1,
"code": "undefined_function",
"source": "dart",
"message": "The function 'catchType' isn't defined.\nTry importing the library that defines 'catchType', correcting the name to the name of an existing function, or defining a function named 'catchType'."
}
]
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/test/utils/list/take_while_pairs_test.dart",
"diagnostics": [
{
"range": {
"start": {
"line": 2,
"character": 7
},
"end": {
"line": 2,
"character": 51
}
},
"severity": 3,
"code": "unused_import",
"source": "dart",
"message": "Unused import: 'package:progressbook/utils/list_utils.dart'.\nTry removing the import directive."
},
{
"range": {
"start": {
"line": 16,
"character": 29
},
"end": {
"line": 16,
"character": 36
}
},
"severity": 1,
"code": "undefined_method",
"source": "dart",
"message": "The method 'upgrade' isn't defined for the type 'List'.\nTry correcting the name to the name of an existing method, or defining a method named 'upgrade'."
},
{
"range": {
"start": {
"line": 15,
"character": 28
},
"end": {
"line": 15,
"character": 35
}
},
"severity": 1,
"code": "undefined_method",
"source": "dart",
"message": "The method 'upgrade' isn't defined for the type 'List'.\nTry correcting the name to the name of an existing method, or defining a method named 'upgrade'."
}
]
}
[Trace - 7:40:02 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///home/rasuru/dev/progressbook-clean2/test/.test_coverage.dart",
"diagnostics": [
{
"range": {
"start": {
"line": 4,
"character": 7
},
"end": {
"line": 4,
"character": 51
}
},
"severity": 1,
"code": "uri_does_not_exist",
"source": "dart",
"message": "Target of URI doesn't exist: 'habits/use_cases/calculate_combo_test.dart'.\nTry creating the file referenced by the URI, or Try using a URI for a file that does exist."
},
{
"range": {
"start": {
"line": 3,
"character": 7
},
"end": {
"line": 3,
"character": 52
}
},
"severity": 1,
"code": "uri_does_not_exist",
"source": "dart",
"message": "Target of URI doesn't exist: 'habits/entities/habit_constructor_test.dart'.\nTry creating the file referenced by the URI, or Try using a URI for a file that does exist."
}
]
}
[Trace - 7:40:02 PM] Received notification '$/analyzerStatus'.
Params: {
"isAnalyzing": false
}
[Trace - 7:40:08 PM] Sending request 'textDocument/codeAction - (1)'.
Params: {
"textDocument": {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart"
},
"range": {
"start": {
"line": 14,
"character": 0
},
"end": {
"line": 15,
"character": 0
}
},
"context": {
"diagnostics": [
{
"range": {
"start": {
"line": 14,
"character": 29
},
"end": {
"line": 14,
"character": 32
}
},
"severity": 3,
"code": "unused_local_variable",
"source": "dart",
"message": "The value of the local variable 'hey' isn't used.\nTry removing the variable, or using it."
},
{
"range": {
"start": {
"line": 14,
"character": 29
},
"end": {
"line": 14,
"character": 32
}
},
"severity": 1,
"code": "final_not_initialized",
"source": "dart",
"message": "The final variable 'hey' must be initialized.\nTry initializing the variable."
},
{
"range": {
"start": {
"line": 14,
"character": 8
},
"end": {
"line": 14,
"character": 23
}
},
"severity": 1,
"code": "undefined_class",
"source": "dart",
"message": "Undefined class 'BehaviorSubject'.\nTry changing the name to the name of an existing class, or creating a class with the name 'BehaviorSubject'."
}
],
"only": [
"quickfix"
]
}
}
[Trace - 7:40:08 PM] Received response 'textDocument/codeAction - (1)' in 167ms.
Result: [
{
"title": "Sort Members",
"kind": "source.sortMembers",
"command": {
"title": "Sort Members",
"command": "edit.sortMembers",
"arguments": [
"/home/rasuru/dev/progressbook-clean2/lib/main.dart"
]
}
},
{
"title": "Organize Imports",
"kind": "source.organizeImports",
"command": {
"title": "Organize Imports",
"command": "edit.organizeImports",
"arguments": [
"/home/rasuru/dev/progressbook-clean2/lib/main.dart"
]
}
},
{
"title": "Surround with block",
"kind": "refactor.surround.block",
"diagnostics": [],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 1,
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart"
},
"edits": [
{
"range": {
"start": {
"line": 15,
"character": 0
},
"end": {
"line": 15,
"character": 0
}
},
"newText": " }\n"
},
{
"range": {
"start": {
"line": 14,
"character": 0
},
"end": {
"line": 15,
"character": 0
}
},
"newText": " final BehaviorSubject<int> hey;\n"
},
{
"range": {
"start": {
"line": 14,
"character": 0
},
"end": {
"line": 14,
"character": 0
}
},
"newText": " {\n"
}
]
}
]
}
},
{
"title": "Surround with 'if'",
"kind": "refactor.surround.if",
"diagnostics": [],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 1,
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart"
},
"edits": [
{
"range": {
"start": {
"line": 14,
"character": 0
},
"end": {
"line": 15,
"character": 0
}
},
"newText": " if (condition) {\n final BehaviorSubject<int> hey;\n }\n"
}
]
}
]
}
},
{
"title": "Surround with 'while'",
"kind": "refactor.surround.while",
"diagnostics": [],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 1,
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart"
},
"edits": [
{
"range": {
"start": {
"line": 14,
"character": 0
},
"end": {
"line": 15,
"character": 0
}
},
"newText": " while (condition) {\n final BehaviorSubject<int> hey;\n }\n"
}
]
}
]
}
},
{
"title": "Surround with 'for-in'",
"kind": "refactor.surround.forIn",
"diagnostics": [],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 1,
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart"
},
"edits": [
{
"range": {
"start": {
"line": 14,
"character": 0
},
"end": {
"line": 15,
"character": 0
}
},
"newText": " for (var item in iterable) {\n final BehaviorSubject<int> hey;\n }\n"
}
]
}
]
}
},
{
"title": "Surround with 'for'",
"kind": "refactor.surround.forEach",
"diagnostics": [],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 1,
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart"
},
"edits": [
{
"range": {
"start": {
"line": 14,
"character": 0
},
"end": {
"line": 15,
"character": 0
}
},
"newText": " for (var v = init; condition; increment) {\n final BehaviorSubject<int> hey;\n }\n"
}
]
}
]
}
},
{
"title": "Surround with 'do-while'",
"kind": "refactor.surround.doWhile",
"diagnostics": [],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 1,
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart"
},
"edits": [
{
"range": {
"start": {
"line": 14,
"character": 0
},
"end": {
"line": 15,
"character": 0
}
},
"newText": " do {\n final BehaviorSubject<int> hey;\n } while (condition);\n"
}
]
}
]
}
},
{
"title": "Surround with 'try-catch'",
"kind": "refactor.surround.tryCatch",
"diagnostics": [],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 1,
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart"
},
"edits": [
{
"range": {
"start": {
"line": 14,
"character": 0
},
"end": {
"line": 15,
"character": 0
}
},
"newText": " try {\n final BehaviorSubject<int> hey;\n } on Exception catch (e) {\n // TODO\n }\n"
}
]
}
]
}
},
{
"title": "Surround with 'try-finally'",
"kind": "refactor.surround.tryFinally",
"diagnostics": [],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 1,
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart"
},
"edits": [
{
"range": {
"start": {
"line": 14,
"character": 0
},
"end": {
"line": 15,
"character": 0
}
},
"newText": " try {\n final BehaviorSubject<int> hey;\n } finally {\n // TODO\n }\n"
}
]
}
]
}
},
{
"title": "Extract Method",
"kind": "refactor.extract",
"command": {
"title": "Extract Method",
"command": "refactor.perform",
"arguments": [
"EXTRACT_METHOD",
"/home/rasuru/dev/progressbook-clean2/lib/main.dart",
1,
431,
34,
null
]
}
},
{
"title": "Remove unused local variable",
"kind": "quickfix.remove.unusedLocalVariable",
"diagnostics": [
{
"range": {
"start": {
"line": 14,
"character": 29
},
"end": {
"line": 14,
"character": 32
}
},
"severity": 3,
"code": "unused_local_variable",
"source": "dart",
"message": "The value of the local variable 'hey' isn't used.\nTry removing the variable, or using it."
}
],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 1,
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart"
},
"edits": [
{
"range": {
"start": {
"line": 14,
"character": 0
},
"end": {
"line": 15,
"character": 0
}
},
"newText": ""
}
]
}
]
}
},
{
"title": "Import library 'package:rxdart/rxdart.dart'",
"kind": "quickfix.import.libraryProject2",
"diagnostics": [
{
"range": {
"start": {
"line": 14,
"character": 8
},
"end": {
"line": 14,
"character": 23
}
},
"severity": 1,
"code": "undefined_class",
"source": "dart",
"message": "Undefined class 'BehaviorSubject'.\nTry changing the name to the name of an existing class, or creating a class with the name 'BehaviorSubject'."
}
],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 1,
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart"
},
"edits": [
{
"range": {
"start": {
"line": 1,
"character": 40
},
"end": {
"line": 1,
"character": 40
}
},
"newText": "\nimport 'package:rxdart/rxdart.dart';"
}
]
}
]
}
},
{
"title": "Import library 'package:rxdart/subjects.dart'",
"kind": "quickfix.import.libraryProject2",
"diagnostics": [
{
"range": {
"start": {
"line": 14,
"character": 8
},
"end": {
"line": 14,
"character": 23
}
},
"severity": 1,
"code": "undefined_class",
"source": "dart",
"message": "Undefined class 'BehaviorSubject'.\nTry changing the name to the name of an existing class, or creating a class with the name 'BehaviorSubject'."
}
],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 1,
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart"
},
"edits": [
{
"range": {
"start": {
"line": 1,
"character": 40
},
"end": {
"line": 1,
"character": 40
}
},
"newText": "\nimport 'package:rxdart/subjects.dart';"
}
]
}
]
}
},
{
"title": "Create class 'BehaviorSubject'",
"kind": "quickfix.create.class",
"diagnostics": [
{
"range": {
"start": {
"line": 14,
"character": 8
},
"end": {
"line": 14,
"character": 23
}
},
"severity": 1,
"code": "undefined_class",
"source": "dart",
"message": "Undefined class 'BehaviorSubject'.\nTry changing the name to the name of an existing class, or creating a class with the name 'BehaviorSubject'."
}
],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 1,
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart"
},
"edits": [
{
"range": {
"start": {
"line": 62,
"character": 1
},
"end": {
"line": 62,
"character": 1
}
},
"newText": "\n\nclass BehaviorSubject {\n}"
}
]
}
]
}
},
{
"title": "Create mixin 'BehaviorSubject'",
"kind": "quickfix.create.mixin",
"diagnostics": [
{
"range": {
"start": {
"line": 14,
"character": 8
},
"end": {
"line": 14,
"character": 23
}
},
"severity": 1,
"code": "undefined_class",
"source": "dart",
"message": "Undefined class 'BehaviorSubject'.\nTry changing the name to the name of an existing class, or creating a class with the name 'BehaviorSubject'."
}
],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 1,
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart"
},
"edits": [
{
"range": {
"start": {
"line": 62,
"character": 1
},
"end": {
"line": 62,
"character": 1
}
},
"newText": "\n\nmixin BehaviorSubject {\n}"
}
]
}
]
}
}
]
[Trace - 7:40:10 PM] Sending request 'textDocument/documentHighlight - (2)'.
Params: {
"textDocument": {
"uri": "file:///home/rasuru/dev/progressbook-clean2/lib/main.dart"
},
"position": {
"line": 14,
"character": 3
}
}
[Trace - 7:40:10 PM] Received response 'textDocument/documentHighlight - (2)' in 37ms.
No result returned.
Hi i would like to have a small window open for dev server messages. This is quite useful if you are using print statements in the code.
I believe flutter.openDevLogSplitCommand is the right setting; i tried setting this in coc-settings.json but am not able to set it properly and am getting errors on execution.
Can you please suggest how i might add this or any other changes to the settings?
Thanks
should i enable any settings in coc-settings.json file
Hi,
I'm using nvim if it matters, I can run the app using :FlutterRun but when I save or run :FlutterHotReload nothing seem to happen :(
I tried changing the log level to verbose but I'm not sure where the logs are written to
Would appreciate your help :)
My config
{
"flutter.trace.server": "verbose",
"flutter.lsp.debug": true,
"coc.preferences.formatOnSaveFiletypes": [
"dart"
],
"flutter.provider.hot-reload": true
}
Describe the bug
When I'm developing a flutter app using coc-flutter
with openDevLog
(not sure if this is necessary)
a bunch of floating windows are opened with the error messages, these quickly fill the screen as several windows are opened. When these windows begin to close I then get
[coc.nvim]: UnhandledRejection: request error nvim_win_get_buf - Invalid window id: 1756
Error: request error nvim_win_get_buf - Invalid window id: 1756
at /home/akin/.local/share/nvim/plugged/coc.nvim/build/index.js:15213:32
at /home/akin/.local/share/nvim/plugged/coc.nvim/build/index.js:11878:13
at NvimTransport.parseMessage (/home/akin/.local/share/nvim/plugged/coc.nvim/build/index.js:11819:17)
at DecodeStream.<anonymous> (/home/akin/.local/share/nvim/plugged/coc.nvim/build/index.js:11789:18)
at DecodeStream.emit (events.js:311:20)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:275:11)
at DecodeStream.Readable.push (_stream_readable.js:209:10)
at DecodeStream.Transform.push (_stream_transform.js:152:32)
at DecodeBuffer.DecodeStream.decoder.push (/home/akin/.local/share/nvim/plugged/coc.nvim/build/index.js:14761:12)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Ideally there would only be one floating window and I can scroll the contents or just says you app threw and exception check the logs, if that's not possible tbh I'd rather have no windows and I can check the dev log myself
Desktop (please complete the following information):
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Output channel:
"flutter.trace.server": "verbose"
:CocList output
open output list and select flutter
Log:
Is this a known error? Could anyone help?
vim version: NVIM v0.5.0-5a5c2f0
node version: v13.11.0
coc.nvim version: 0.0.77-9d846734a2
term: xterm-256color
platform: darwin
## Messages
[coc.nvim] Source "flutter" recreated
[coc.nvim] error: UnhandledRejection: request error nvim_win_set_option - Option 'foldcolumn' requires a string value
Error: request error nvim_win_set_option - Option 'foldcolumn' requires a string value
at .vim/bundle/coc.nvim/build/index.js:14243:32
at NvimTransport.parseMessage (.vim/bundle/coc.nvim/build/index.js:10847:17)
at DecodeStream.<anonymous> (.vim/bundle/coc.nvim/build/index.js:10817:18)
at DecodeStream.emit (events.js:315:20)
at addChunk (_stream_readable.js:297:12)
at readableAddChunk (_stream_readable.js:273:9)
at DecodeStream.Readable.push (_stream_readable.js:214:10)
at DecodeStream.Transform.push (_stream_transform.js:152:32)
at DecodeBuffer.DecodeStream.decoder.push (.vim/bundle/coc.nvim/build/index.js:13767:12)
at DecodeBuffer.flush (.vim/bundle/coc.nvim/build/index.js:12757:12)
[coc.nvim] error: UnhandledRejection: request error nvim_win_set_option - Option 'foldcolumn' requires a string value
Error: request error nvim_win_set_option - Option 'foldcolumn' requires a string value
at .vim/bundle/coc.nvim/build/index.js:14243:32
at NvimTransport.parseMessage (.vim/bundle/coc.nvim/build/index.js:10847:17)
at DecodeStream.<anonymous> (.vim/bundle/coc.nvim/build/index.js:10817:18)
at DecodeStream.emit (events.js:315:20)
at addChunk (_stream_readable.js:297:12)
at readableAddChunk (_stream_readable.js:273:9)
at DecodeStream.Readable.push (_stream_readable.js:214:10)
at DecodeStream.Transform.push (_stream_transform.js:152:32)
at DecodeBuffer.DecodeStream.decoder.push (.vim/bundle/coc.nvim/build/index.js:13767:12)
at DecodeBuffer.flush (.vim/bundle/coc.nvim/build/index.js:12757:12)
命令::call CocAction('runCommand', 'flutter.run', '-d', 'web-server', '--web-port=8888')
输出:
[coc.nvim] Start flutter dev server...
[coc.nvim] spawn flutter ENOENT
i had the same issue as #22, everything worked as excepted i don't know exactly what happened as far as i know it's just a syntax-highlighting plugin, anyway adding syntax highlighting is convenient for the users.
Thanks for the cool plugin
Describe the bug
Dependencies are not resolved when looking at library code.
This fills up the diagnostics list every time one takes a look at the implementation of some Flutter widget for example.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should be able to resolve these dependencies
Using the LSP in VSCode this works just fine
Desktop (please complete the following information):
Output channel:
"flutter.trace.server": "verbose"
:CocList output
open output list and select flutter
Log:
When trying to open the output of the log vim freezes
Currently I cannot find a way to pass additional arguments when executing the run command.
It would be especially nice if it was possible to either set a variable in my vimrc with the extra commands or even better would be to have it available per project.
The commands I mostly need is -t
to select the main file and --flavor
, both used to select which flavor of the app I want to start, configuring things like which server to connect to.
Hiya, first of all, this plugin is amazing! New to Coc and haven't used vim in a while, sorry if this is a dumb Q.
In VSCode / IntelliJ, I can place my mouse over a Widget and hit "Option+Enter" on mac to pull up a list of actions:
At the time being, everything seems to be working, but when I place my cursor over a Widget in a tree and use :CocAction
I see only two options: "Sort Members" and "Organize Imports."
Am I doing the wrong thing here, and is there a way to get those "Wrapping" goodies?
Flutter commas are necessary to make sense of the nested widget structure. It would be nice to have the plugin add a trailing comma at the end of all autocomplete names.
Hi. i can launch the emulator(:CocList FlutterEmulators
), but it can't run the application (flutter.run
command) and i get this error:
pub get failed (server unavailable) -- attempting retry 4 in 8 seconds...
This is the log when i run: flutter run
from terminal:
https://gist.github.com/LinArcX/5815974afafa8bd53408bdefbf1580ac
你好, 我使用了你的coc-flutter之后每次进入编辑dart文件的时候coc.nvim都会报一段错误如下:
The "languageserver.dart" server crashd 5 times in the last 3 minutes. The server will not be restarted.
请问这个是什么的问题?
Please refer to this issue:
dart-lang/sdk#39967
When flutter.lsp.initialization.onlyAnalyzeProjectsWithOpenFiles is set to false. All files in flutter project may be send to dart process for analyze, and this cause dart process use a lot of cpu.
Hot reload doesn't seem to be working. I've tried manually adding "flutter.provider.hot-reload": true
to my CocConfig just in case, but it still does nothing. No errors or anything. Is there some configuration we need to do in order for this to work, or should it just be a matter of running "flutter run" and then saving the file in vim? I've also confirmed that the file has no errors, just in case
Thanks!
Describe the bug
After updating to the latest version of coc-vim:
To Reproduce
Steps to reproduce the behavior:
Navigate to any Flutter project directory (ex. $ cd project/flutter-app/; nvim .)
Open Coc menu
You won't be able to see Flutter commands
Open a Flutter file
Modify and save
Hot-reload doesn't work (even with flutter.provider.hot-reload: true in coc-settings.json)
Expected behavior
I expect to see Flutter related commands in the Flutter app directory (as it used to be). Also, the hot-reload on save.
Desktop (please complete the following information):
Output channel:
"flutter.trace.server": "verbose"
:CocList output
open output list and select flutter
Log:
Not applicable
Already tried but not working
Thanks a lot in advance!
coc-flutter/src/server/lsp/index.ts
Lines 98 to 110 in d828999
version 1.0.8
Desired behaviour
body: |,
Observed behaviour
body: ,|
我是windows的vim使用者,这款插件一直用不了,一开始是报spawn flutter ENNOT的错误,我看了源码,给spawn函数加了shell: true的设置,好了,但是之后再assembleDebug的阶段还是会报编译错误
NVIM v0.4.3
Build type: Release
LuaJIT 2.0.5
macos 10.14.4
commit 9967e8fb829379d56250daad1fc64fbfccd8f624 (HEAD -> master, origin/master, origin/HEAD)
Author: Christoffer Aasted <[email protected]>
Date: Fri Jan 17 04:59:42 2020 +010
[coc.nvim] List FlutterDevices not found
open main.dart
, but no registered.
2020-01-29T10:41:54.280 DEBUG (pid:26085) [workspace] - buffer created 1
2020-01-29T10:41:54.283 DEBUG (pid:26085) [events] - Event: BufEnter [ 1 ]
2020-01-29T10:41:54.285 DEBUG (pid:26085) [events] - Event: BufWinEnter [ 1, 1000 ]
2020-01-29T10:41:54.308 INFO (pid:26085) [services] - registered service "languageserver.golang"
2020-01-29T10:41:54.358 INFO (pid:26085) [services] - registered service "highlight"
2020-01-29T10:41:54.409 DEBUG (pid:26085) [languages] - created service source snippets
2020-01-29T10:41:54.409 DEBUG (pid:26085) [languages] - created service source snippets-source
2020-01-29T10:41:54.431 DEBUG (pid:26085) [languages] - created service source tabnine
2020-01-29T10:41:54.436 INFO (pid:26085) [language-client-index] - highlight started with 26087
2020-01-29T10:41:54.438 DEBUG (pid:26085) [language-client-client] - initialize: initializationOptions = undefined
2020-01-29T10:41:54.444 INFO (pid:26085) [plugin] - coc 0.0.74-6700e7468d initialized with node: v13.7.0
2020-01-29T10:41:54.468 DEBUG (pid:26085) [languages] - created service source semantic-commit
2020-01-29T10:41:54.518 INFO (pid:26085) [services] - highlight server state change: starting => running
2020-01-29T10:41:54.895 DEBUG (pid:26085) [events] - Event: CursorMoved [ 1, [ 15, 5 ] ]
2020-01-29T10:41:54.897 DEBUG (pid:26085) [events] - Event: FileType [ 'list', 2 ]
2020-01-29T10:41:54.904 DEBUG (pid:26085) [events] - Event: BufEnter [ 2 ]
2020-01-29T10:41:54.905 DEBUG (pid:26085) [events] - Event: BufWinEnter [ 2, 1001 ]
2020-01-29T10:41:54.923 DEBUG (pid:26085) [workspace] - buffer created 2
2020-01-29T10:41:55.803 DEBUG (pid:26085) [events] - Event: InputChar [ 'l', 0 ]
2020-01-29T10:41:56.091 DEBUG (pid:26085) [events] - Event: InputChar [ 'i', 0 ]
2020-01-29T10:41:56.251 DEBUG (pid:26085) [events] - Event: InputChar [ 'b', 0 ]
2020-01-29T10:41:57.122 DEBUG (pid:26085) [events] - Event: InputChar [ '�kd', 0 ]
2020-01-29T10:41:57.123 DEBUG (pid:26085) [events] - Event: CursorMoved [ 2, [ 1, 1 ] ]
2020-01-29T10:41:57.124 DEBUG (pid:26085) [events] - Event: TextChanged [ 2, 6 ]
2020-01-29T10:41:57.124 DEBUG (pid:26085) [events] - Event: CursorMoved [ 2, [ 2, 1 ] ]
2020-01-29T10:41:57.338 DEBUG (pid:26085) [events] - Event: InputChar [ '�kd', 0 ]
2020-01-29T10:41:57.340 DEBUG (pid:26085) [events] - Event: CursorMoved [ 2, [ 3, 1 ] ]
2020-01-29T10:41:57.651 DEBUG (pid:26085) [events] - Event: InputChar [ '\r', 0 ]
2020-01-29T10:41:57.655 DEBUG (pid:26085) [events] - Event: BufWinLeave [ 2, 1001 ]
2020-01-29T10:41:57.655 DEBUG (pid:26085) [events] - Event: BufUnload [ 2 ]
2020-01-29T10:41:57.655 DEBUG (pid:26085) [workspace] - buffer unload 2
2020-01-29T10:41:57.673 DEBUG (pid:26085) [events] - Event: CursorMoved [ 1, [ 15, 5 ] ]
2020-01-29T10:41:57.680 DEBUG (pid:26085) [events] - Event: BufEnter [ 1 ]
2020-01-29T10:41:57.691 DEBUG (pid:26085) [events] - Event: BufCreate [ 3 ]
2020-01-29T10:41:57.692 DEBUG (pid:26085) [events] - Event: BufWinEnter [ 3, 1002 ]
2020-01-29T10:41:57.694 DEBUG (pid:26085) [events] - Event: CursorMoved [ 1, [ 15, 5 ] ]
2020-01-29T10:41:57.700 DEBUG (pid:26085) [events] - Event: BufEnter [ 1 ]
2020-01-29T10:41:57.707 DEBUG (pid:26085) [events] - Event: CursorMoved [ 3, [ 1, 1 ] ]
2020-01-29T10:41:57.710 DEBUG (pid:26085) [events] - Event: FileType [ 'conf', 3 ]
2020-01-29T10:41:57.716 DEBUG (pid:26085) [events] - Event: BufEnter [ 3 ]
2020-01-29T10:41:57.728 DEBUG (pid:26085) [configurations] - checkFolderConfiguration: file:///Users/xx/workspace/flutter/demo/lib/main.dart
2020-01-29T10:41:57.735 DEBUG (pid:26085) [workspace] - buffer created 3
2020-01-29T10:41:58.233 DEBUG (pid:26085) [events] - Event: CursorHold [ 3 ]
2020-01-29T10:41:59.123 DEBUG (pid:26085) [events] - Event: CursorMoved [ 3, [ 2, 1 ] ]
2020-01-29T10:41:59.373 DEBUG (pid:26085) [events] - Event: CursorMoved [ 3, [ 3, 1 ] ]
2020-01-29T10:41:59.408 DEBUG (pid:26085) [events] - Event: CursorMoved [ 3, [ 4, 1 ] ]
2020-01-29T10:41:59.442 DEBUG (pid:26085) [events] - Event: CursorMoved [ 3, [ 5, 1 ] ]
2020-01-29T10:41:59.476 DEBUG (pid:26085) [events] - Event: CursorMoved [ 3, [ 6, 1 ] ]
2020-01-29T10:41:59.509 DEBUG (pid:26085) [events] - Event: CursorMoved [ 3, [ 7, 1 ] ]
2020-01-29T10:41:59.739 DEBUG (pid:26085) [events] - Event: CursorMoved [ 3, [ 33, 3 ] ]
2020-01-29T10:42:00.003 DEBUG (pid:26085) [events] - Event: CursorMoved [ 3, [ 59, 5 ] ]
2020-01-29T10:42:00.227 DEBUG (pid:26085) [events] - Event: CursorMoved [ 3, [ 85, 11 ] ]
2020-01-29T10:42:00.792 DEBUG (pid:26085) [events] - Event: CursorHold [ 3 ]
2020-01-29T10:42:04.152 DEBUG (pid:26085) [events] - Event: BufWinLeave [ 3, 1002 ]
Flutter auto format default break code in 80 columns, it is too small for me.
In VSCode I can set
"dart.lineLength": 160,
Is it support set dart format line length parameter in coc-flutter?
我通过Defx新建了一个文件,然后使用这个文件里面的类。发现无法像往常那样导入这个新建的文件,必须得退出neovim才可以
I am getting this message [coc.vim] Source "flutter" reacreated, when open a dart file.
Everything seems to be working fine.
What is the cause of it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.