디버깅 버튼 눌렀더니 Connecting to VM Service at ws://127.0.0.1:61880/bHKc4-tQk6Q=/ws
이렇게 뜨고 이상태에서 디버깅이 멈춰버린다,,..
왼쪽에 flutter_*.log가 쌓여간다
콘솔창에 뜨는거처럼 저렇게 된 상태에서 빌드도 종료되고 어떠한 에러로그도 안찍히며 로그파일이 자동생성된다. 일단 에디터 문제라고 생각한다. Android Studio에서는 잘 작동한다.
CLI를 통해서도 잘 작동한다
로그 파일을 자세히 보면
Flutter crash report.
## command
flutter debug_adapter
## exception
```
```
## flutter doctor
```
[✓] Flutter (Channel stable, 3 . 22 . 3 , on macOS 13 . 5 22G74 darwin-arm64, locale ko-KR)
• Flutter version 3 . 22 . 3 on channel stable at /Users/yoonseungjae/Documents/Flutter/flutter
• Framework revision b0850beeb2 (6주 전), 2024-07-16 21:43:41 - 0700
• Engine revision 235db911ba
• Dart version 3 . 4 . 4
• DevTools version 2 . 34 . 3
[✓] Android toolchain - develop for Android devices (Android SDK version 34 . 0 . 0 )
• Android SDK at /Users/yoonseungjae/Library/Android/sdk
• Platform android- 34 , build-tools 34 . 0 . 0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17 . 0 . 11 + 0 - 17 . 0 . 11b1207 . 24-11852314 )
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15 . 0 )
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15A240d
• CocoaPods version 1 . 15 . 2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024 . 1 )
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
• Dart plugin can be installed from:
• Java version OpenJDK Runtime Environment (build 17 . 0 . 11 + 0 - 17 . 0 . 11b1207 . 24-11852314 )
[✓] VS Code (version 1 . 91 . 1 )
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3 . 94 . 0
[✓] Connected device ( 4 available)
• iPhone 15 (mobile) • 7D6F893C-4503-4383-924C-B44A8FA4F463 • ios • com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 13 . 5 22G74 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 13 . 5 22G74 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 128 . 0 . 6613 . 85
! Error : Browsing on the local area network for Seungjae의 iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code - 27 )
! Error : Browsing on the local area network for Moon. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code - 27 )
! Error : Browsing on the local area network for 김코튼. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code - 27 )
[✓] Network resources
• All expected network resources are available.
• No issues found!
```
이렇게 뜬다. 디바이스커넥션문제는 여기선 무관하고
일단 안스에서 하자.
저 문제는 왜 생긴걸까..
=================================
2주 지났는데 이제야 해결해본다,!!!!!!1
나만의 문제일리가 없지. 이사람은 stuck이라고 표현했다. 맞는말, Connection VM에서 갑자기 멈춰버리니깐.
그런데 이사람은 원인을 말해주고있다. 물론 나와 다른 원인일수도있지만 쉼표가 파일이름에 포함될때 일어나는 문제라고 한다. 그런데 cli를 통해선 잘만되는게 vscode의 디버깅 버튼에선 문제가 생긴다? vscode 내부에서 쉼표를 처리하지 못하는건 아닐까 싶다.
일단 쉼표때문이라고 가정해본다. 내가 직접만든파일이 아니라 템플릿 코드에서 일어난 문제이기때문에,, 찾아보자!
vscode에서 좌측 돋보기버튼 클릭(cmd+shift+f)
거기서 .* 이렇게 생긴 버튼 클릭!
.* 버튼 쿨맄
import (.*?,.*?) 이거 타이핑해보자.
육성탄식.. 헙
진짜있다..ㅋㅋ
https://github.com/Dart-Code/Dart-Code/issues/4572
Stuck at "Connecting VM" when project filenames contain commas · Issue #4572 · Dart-Code/Dart-Code
Describe the bug After updating to Flutter 3.10.3, run (F5) from VsCode always stuck at Connecting VM. After a while run just stopped. To Reproduce I'm not sure how to reproduce it, this happen on ...
github.com
도움주신 감사한 분들 ^^