INFO [8/1/2020, 11:44:49 AM]: Extension version: 0.4.0-dev
INFO [8/1/2020, 11:44:49 AM]: Using configuration {
lruCapacity: 30,
files: { watcher: 'client', exclude: [] },
notifications: { cargoTomlNotFound: true },
cargo: {
autoreload: true,
noDefaultFeatures: false,
allFeatures: false,
features: [],
loadOutDirsFromCheck: true,
target: null
},
rustfmt: { extraArgs: [], overrideCommand: null },
checkOnSave: {
enable: true,
extraArgs: [],
command: 'clippy',
overrideCommand: null,
allTargets: false,
noDefaultFeatures: null,
allFeatures: null,
features: null
},
cargoRunner: null,
runnableEnv: null,
inlayHints: {
enable: true,
typeHints: true,
chainingHints: false,
parameterHints: true,
maxLength: 20
},
completion: {
addCallParenthesis: true,
addCallArgumentSnippets: true,
postfix: { enable: true }
},
callInfo: { full: true },
updates: { channel: 'nightly', askBeforeDownload: true },
serverPath: 'C:/Users/Emil/.cargo/bin/rust-analyzer.exe',
trace: { server: 'verbose', extension: true },
procMacro: { enable: true },
debug: {
engine: 'auto',
sourceFileMap: {
'/rustc/<id>': '${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust'
},
openDebugPane: false,
engineSettings: {}
},
lens: { enable: true, run: true, debug: true, implementations: true },
hoverActions: {
enable: true,
implementations: true,
run: true,
debug: true,
gotoTypeDef: true
},
linkedProjects: null,
withSysroot: true,
diagnostics: {
enable: true,
enableExperimental: false,
warningsAsInfo: [],
warningsAsHint: []
}
}
INFO [8/1/2020, 11:44:49 AM]: PersistentState: {
lastCheck: 1592251425728,
releaseId: 27538406,
serverVersion: '0.3.187-nightly'
}
INFO [8/1/2020, 11:44:49 AM]: Using server binary at C:/Users/Emil/.cargo/bin/rust-analyzer.exe
DEBUG [8/1/2020, 11:44:49 AM]: Checking availability of a binary at C:/Users/Emil/.cargo/bin/rust-analyzer.exe
DEBUG [8/1/2020, 11:44:49 AM]: C:/Users/Emil/.cargo/bin/rust-analyzer.exe --version: {
status: 0,
signal: null,
output: [ null, 'rust-analyzer 5af32ae\n', '' ],
pid: 1580,
stdout: 'rust-analyzer 5af32ae\n',
stderr: ''
}
OS: Windows 10.
rustc: nightly-x86_64-pc-windows-gnu rustc 1.47.0-nightly (a7eff79 2020-07-28)
I get repeating unreachable panics when I open a file. This seems to repeat for a while and then suddenly stops.
I have debug info set to 1, verbose output and experimental set to false
I've edited https://github.com/rust-analyzer/rust-analyzer/blob/5af32aeb2b83c7ae8adf3e088bf4f3691aa45eb1/crates/ra_proc_macro_srv/src/proc_macro/bridge/rpc.rs#L105
to link
Steps to reproduce:
The following panic repeatedly hits.
So, seems like something is expecting to get dispatch TokenStreamBuilder with a decode of 7.
Details