Comments (4)
The language server is not involved here - the underlines and the Unicode mechanism are entirely client sided.
Some questions:
- Are you using a setup where Lean is not running directly on your computer? For example, using Gitpod and SSH is known to cause some issues in the abbreviation provider due to limitations in VS Code.
- Does the issue occur both with v0.0.170 and v0.0.124 of the VS Code extension?
- Are you using any other VS Code extensions that might interfere with input? For example, the Vim VS Code extension is known to cause some issues when used together with the Unicode input mechanism.
- When this happens, are there any errors in the "Lean: Editor" output panel or the developer console? You can open the former using the "Troubleshooting: Show Output" command and the latter using the "Developer: Toggle Developer Tools" command (the output is in the "Console" tab)
from vscode-lean4.
- no, I was using it from wsl and macos, from months ago, and this problem only occurs recently
- as I just tried now, yes, this problem still happens after switching to
v0.0.124
, also note that I didn't restart vscode after switching the extension version - I guess no, my macos vscode has only environment for lean4
- YES there are errors in the developer tools, and they seem to have a common pattern. Here's the most recent ones:
console.ts:137 [Extension Host] rejected promise not handled within 1 second: TypeError: Cannot read properties of undefined (reading 'dispose')
C @ console.ts:137
console.ts:137 [Extension Host] stack trace: TypeError: Cannot read properties of undefined (reading 'dispose')
at t.AbbreviationRewriterFeature. (/home/qiu/.vscode-server/extensions/leanprover.lean4-0.0.170/dist/extension.js:1:159973)
at Generator.next ()
at s (/home/qiu/.vscode-server/extensions/leanprover.lean4-0.0.170/dist/extension.js:1:158285)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
C @ console.ts:137
mainThreadExtensionService.ts:81 [leanprover.lean4]Cannot read properties of undefined (reading 'dispose')
$onExtensionRuntimeError @ mainThreadExtensionService.ts:81
mainThreadExtensionService.ts:82 TypeError: Cannot read properties of undefined (reading 'dispose')
at t.AbbreviationRewriterFeature. (/home/qiu/.vscode-server/extensions/leanprover.lean4-0.0.170/dist/extension.js:1:159973)
at Generator.next ()
at s (/home/qiu/.vscode-server/extensions/leanprover.lean4-0.0.170/dist/extension.js:1:158285)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:82
console.ts:137 [Extension Host] rejected promise not handled within 1 second: TypeError: Cannot read properties of undefined (reading 'dispose')
C @ console.ts:137
console.ts:137 [Extension Host] stack trace: TypeError: Cannot read properties of undefined (reading 'dispose')
at t.AbbreviationRewriterFeature. (/home/qiu/.vscode-server/extensions/leanprover.lean4-0.0.170/dist/extension.js:1:159973)
at Generator.next ()
at s (/home/qiu/.vscode-server/extensions/leanprover.lean4-0.0.170/dist/extension.js:1:158285)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
C @ console.ts:137
mainThreadExtensionService.ts:81 [leanprover.lean4]Cannot read properties of undefined (reading 'dispose')
$onExtensionRuntimeError @ mainThreadExtensionService.ts:81
mainThreadExtensionService.ts:82 TypeError: Cannot read properties of undefined (reading 'dispose')
at t.AbbreviationRewriterFeature. (/home/qiu/.vscode-server/extensions/leanprover.lean4-0.0.170/dist/extension.js:1:159973)
at Generator.next ()
at s (/home/qiu/.vscode-server/extensions/leanprover.lean4-0.0.170/dist/extension.js:1:158285)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
from vscode-lean4.
also note that I didn't restart vscode after switching the extension version
You should! Or at least click the "Restart Extensions" button that shows up in the extension entry after the update. Otherwise it will still use the previous version.
Could you also double-check that the issue indeed does not occur with Lean v4.8.0 on v0.0.170 of the extension?
from vscode-lean4.
(By the way, the error you saw above is likely unrelated but will be fixed by #492. Thanks for the report.)
from vscode-lean4.
Related Issues (20)
- RFC: better name for `Docview: Open docview` HOT 4
- icons of Theorem Proving in Lean 4 don't show HOT 2
- feature request: more visible feedback when creating a new project HOT 2
- hover in infoview broke in 0.0.156 HOT 1
- Lean4-vscode broken for non-top-level lake-created projects HOT 1
- RFC: indicator for out of date infoview HOT 2
- Extension does not initialize properly in three-panel mode since 0.0.161
- Unicode replacement swallows space if the same file is open twice
- Triggering an eager replacement with a new abbreviation does not track new abbreviation in LoogleView
- Server does not respond to new file HOT 1
- RFC: do not use `_serverProcess` in leanclient. HOT 1
- Overview missing in VSCode Marketplace HOT 1
- Pinned locations are tracked incorrectly HOT 2
- Tactic state collapses when filters are opened
- offer curated suggestions for "Download project" (beyond the current Mathlib suggestion)
- Initial commit does not work in fresh install of Git
- Incorrect highlighting if deprecation message contains `]` character HOT 1
- Autocomplete suggestions after dot (".") not appearing in some contexts
- InfoView not working Xubuntu 22.04
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 vscode-lean4.