Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin cleanup seems to throw on Windows? #118

Open
rrousselGit opened this issue Mar 13, 2023 · 0 comments
Open

Plugin cleanup seems to throw on Windows? #118

rrousselGit opened this issue Mar 13, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@rrousselGit
Copy link
Collaborator

RequestErrorCode.PLUGIN_ERROR
FileSystemException: Deletion failed, path = 'C:\Users\m_ben\AppData\Local\Temp\7b3a56af' (OS Error: The process cannot access the file because it is being used by another process.
, errno = 32)
at:
#0      _checkForErrorResponse (dart:io/common.dart:42:9)
#1      _Directory._delete.<anonymous closure> (dart:io/directory_impl.dart:185:7)
#2      _rootRunUnary (dart:async/zone.dart:1406:47)
#3      _CustomZone.runUnary (dart:async/zone.dart:1307:19)
<asynchronous suspension>
#4      Future.wait.<anonymous closure> (dart:async/future.dart:522:21)
<asynchronous suspension>
#5      _SocketCustomLintServerToClientChannel.close (package:custom_lint/src/v2/server_to_client_channel.dart:499:5)
<asynchronous suspension>
#6      CustomLintServer._handlePluginShutdown (package:custom_lint/src/v2/custom_lint_analyzer_plugin.dart:227:5)
<asynchronous suspension>
#7      CustomLintServer._handleRequest.<anonymous closure> (package:custom_lint/src/v2/custom_lint_analyzer_plugin.dart:129:13)
<asynchronous suspension>
#8      CustomLintServer._handleRequest (package:custom_lint/src/v2/custom_lint_analyzer_plugin.dart:124:22)
<asynchronous suspension>

_PrettyRequestFailure: {"code":"PLUGIN_ERROR","message":"FileSystemException: Deletion failed, path = 'C:\\Users\\m_ben\\AppData\\Local\\Temp\\7b3a56af' (OS Error: The process cannot access the file because it is being used by another process.\r\n, errno = 32)","stackTrace":"#0      _checkForErrorResponse (dart:io/common.dart:42:9)\n#1      _Directory._delete.<anonymous closure> (dart:io/directory_impl.dart:185:7)\n#2      _rootRunUnary (dart:async/zone.dart:1406:47)\n#3      _CustomZone.runUnary (dart:async/zone.dart:1307:19)\n<asynchronous suspension>\n#4      Future.wait.<anonymous closure> (dart:async/future.dart:522:21)\n<asynchronous suspension>\n#5      _SocketCustomLintServerToClientChannel.close (package:custom_lint/src/v2/server_to_client_channel.dart:499:5)\n<asynchronous suspension>\n#6      CustomLintServer._handlePluginShutdown (package:custom_lint/src/v2/custom_lint_analyzer_plugin.dart:227:5)\n<asynchronous suspension>\n#7      CustomLintServer._handleRequest.<anonymous closure> (package:custom_lint/src/v2/custom_lint_analyzer_plugin.dart:129:13)\n<asynchronous suspension>\n#8      CustomLintServer._handleRequest (package:custom_lint/src/v2/custom_lint_analyzer_plugin.dart:124:22)\n<asynchronous suspension>\n"}
#0      ChannelBase.sendRequest (package:custom_lint/src/server_isolate_channel.dart:80:7)
<asynchronous suspension>
#1      CustomLintRunner.close (package:custom_lint/src/runner.dart:107:7)
<asynchronous suspension>
#2      customLint.<anonymous closure> (package:custom_lint/custom_lint.dart:63:9)
<asynchronous suspension>
#3      customLint (package:custom_lint/custom_lint.dart:42:3)
<asynchronous suspension>
#4      entrypoint (file:///C:/Users/m_ben/AppData/Local/Pub/Cache/hosted/pub.dev/custom_lint-0.3.2/bin/custom_lint.dart:31:3)
<asynchronous suspension>
#5      main (file:///C:/Users/m_ben/AppData/Local/Pub/Cache/hosted/pub.dev/custom_lint-0.3.2/bin/custom_lint.dart:35:3)
<asynchronous suspension>

_Originally posted by @DarkHeros09 in https://github.com/invertase/dart_custom_lint/issues/100#issuecomment-1462890323_
            
@rrousselGit rrousselGit added the bug Something isn't working label Mar 13, 2023
@rrousselGit rrousselGit self-assigned this May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant