microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.77k stars 29.48k forks source link

in PHP using namespace keeps disappearing #224131

Closed coach77777 closed 3 months ago

coach77777 commented 4 months ago

Type: Bug

at top of Validations php <?php

namespace Framework;

in ListingController.php

<?php

namespace App\Controllers;

use Framework\Database;

everytime I try to add

use Framework\Validation;

after a few seconds use Framework\Validation; disappears.

code is at: https://github.com/coach77777/workopia-php/

VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:06:49.809Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz (8 x 3606)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.94GB (18.17GB free)| |Process Argv|. --crash-reporter-id 3c320e6d-2a9f-431a-a294-b5e59f4d943b| |Screen Reader|no| |VM|31%|
Extensions (133) Extension|Author (truncated)|Version ---|---|--- laravel-model-snippets|ahi|2.0.0 vscode-angular2-files|ale|1.6.4 codegeex|AMi|2.12.3 laravel-extra-intellisense|ami|0.6.6 ng-template|Ang|18.1.2 ACF-Snippet|ant|1.9.0 vscode-color-picker|Ant|0.0.4 copy-django-model-fields|bat|0.0.5 vscode-intelephense-client|bme|1.10.4 vscode-tailwindcss|bra|0.12.5 phpserver|bra|3.0.2 path-intellisense|chr|2.9.0 woocommerce|cla|1.1.0 wpcs-whitelist-flags|cla|1.1.0 laravel-goto-view|cod|1.3.11 doxdocgen|csc|1.4.0 angular-schematics|cyr|6.9.0 split-html-attributes|dan|1.0.10 pandaslilhelper|dat|1.2.2 vscode-eslint|dba|3.0.10 composer-php-vscode|DEV|1.49.15728 intelli-php-vscode|DEV|0.12.15062 phptools-vscode|DEV|1.49.15728 profiler-php-vscode|DEV|1.49.15728 ember-syntax|dhe|0.5.0 ink-vscode-snippets|dot|0.0.1 es7-react-js-snippets|dsz|4.4.3 EditorConfig|Edi|0.16.4 emberjs|Emb|2.0.6 vscode-ember|Emb|3.0.57 vsc-material-theme|Equ|34.4.0 vsc-material-theme-icons|equ|3.6.1 pythonsnippets3|Eri|3.3.20 prettier-vscode|esb|10.4.0 auto-close-tag|for|0.5.15 auto-rename-tag|for|0.1.10 remotehub|Git|0.62.0 angular-bootstrap|her|4.0.9 vue-snippets|hol|1.0.4 rest-client|hum|0.25.1 Ionide-fsharp|Ion|7.20.3 Angular2|joh|18.0.2 vscode-peacock|joh|4.2.2 php-cs-fixer|jun|0.3.13 vscode-colorize|kam|0.11.1 vscode-phpfmt|kok|1.2.12 vscode-ember-unstable|lif|3.0.55 vscode-glimmer-syntax|lif|1.0.35 theme-1|Mar|1.2.6 php-namespace-resolver|Meh|1.1.9 code-beautifier|mic|2.3.3 dotenv|mik|1.0.1 vue-volar-extention-pack|Mis|2.0.8 shell-command|mng|0.1.2 mongodb-vscode|mon|1.6.1 theme-monokai-pro-vscode|mon|1.3.2 vscode-duplicate|mrm|1.2.1 vscode-docker|ms-|1.29.1 csharp|ms-|2.39.29 dotnet-interactive-vscode|ms-|1.0.5229040 vscode-dotnet-pack|ms-|1.0.13 vscode-dotnet-runtime|ms-|2.1.1 data-workspace-vscode|ms-|0.5.0 mssql|ms-|1.22.1 sql-bindings-vscode|ms-|0.4.0 sql-database-projects-vscode|ms-|1.4.1 autopep8|ms-|2024.1.11501016 debugpy|ms-|2024.9.12041011 python|ms-|2024.10.0 vscode-pylance|ms-|2024.7.1 jupyter|ms-|2024.6.0 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.18 vscode-jupyter-cell-tags|ms-|0.1.9 vscode-jupyter-slideshow|ms-|0.1.6 remote-containers|ms-|0.375.1 remote-ssh|ms-|0.112.0 remote-wsl|ms-|0.88.2 azure-repos|ms-|0.38.0 cmake-tools|ms-|1.18.43 cpptools|ms-|1.21.4 cpptools-extension-pack|ms-|1.3.0 live-server|ms-|0.4.14 remote-explorer|ms-|0.4.3 remote-repositories|ms-|0.40.0 vscode-react-native|msj|1.13.0 color-highlight|nau|2.8.0 php-docblocker|nei|2.7.0 vscode-extension-auto-import|Nuc|1.4.3 laravel-blade|one|1.36.1 laravel5-snippets|one|1.18.0 open-html-in-browser|pea|2.1.10 material-icon-theme|PKi|5.8.0 postman-for-vscode|Pos|1.1.0 bracketeer|pus|1.3.1 vscode-rapidapi-client|Rap|1.10.2 vscode-services|rap|1.0.2 java|red|1.32.0 format-html-in-php|rif|1.7.0 LiveServer|rit|5.7.9 es7-react-js-snippets|rod|1.9.3 vs-code-prettier-eslint|rve|6.0.0 vue-vscode-snippets|sdr|3.1.1 django-intellisense|sha|0.0.2 vscode-scss-formatter|sib|3.0.0 snp-pandas-basic|sni|0.1.7 vscode-standard|sta|2.1.3 autoimport|ste|1.5.4 code-spell-checker|str|3.0.1 vscode-stylelint|sty|1.4.0 prettier-plus|svi|4.2.2 sass-indented|syl|1.8.30 cmake|twx|0.0.17 tab-groups|usa|2.1.1 cscs-debugger|vas|0.7.2 fast-arrow|vin|1.0.8 vscode-gradle|vsc|3.15.0 vscode-java-debug|vsc|0.58.0 vscode-java-dependency|vsc|0.24.0 vscode-java-pack|vsc|0.27.0 vscode-java-test|vsc|0.41.1 vscode-maven|vsc|0.44.0 vscode-icons|vsc|12.8.0 volar|Vue|2.0.7 PHP-extension-pack|wal|1.0.0 vscode-todo-highlight|way|1.0.5 wordpress-toolbox|wor|1.3.15 vue|Wsc|1.0.26 JavaScriptSnippets|xab|1.8.0 php-pack|xde|1.0.3 firebase-configuration-schema|zer|1.3.0 material-theme|zhu|3.17.2 vue|znc|0.12.0 (18 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyonecf:30548226 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 9c06g630:31013171 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 impr_priority:31102340 nativerepl1:31104043 refactort:31101459 ccplt:31103426 pythonrstrctxt:31103193 wkspc-onlycs-t:31102394 ```
coach77777 commented 4 months ago

https://github.com/coach77777/workopia-php

adding use Framework\Validation;

after few seconds code disappears in VSCode

IllusionMH commented 4 months ago

/confirmPlease

vscodenpa commented 4 months ago

Please diagnose the root cause of the issue by running the command F1 > Help: Troubleshoot Issue and following the instructions. Once you have done that, please update the issue with the results.

Happy Coding!

vs-code-engineering[bot] commented 3 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!