René's URL Explorer Experiment


Title: Improve absolute import parsing for editors by moving baseUrl · Issue #7964 · angular/angular-cli · GitHub

Open Graph Title: Improve absolute import parsing for editors by moving baseUrl · Issue #7964 · angular/angular-cli

X Title: Improve absolute import parsing for editors by moving baseUrl · Issue #7964 · angular/angular-cli

Description: Bug Report or Feature Request (mark with an x) - [] bug report -> please search issues before submitting - [x] feature request Versions. @angular/cli: 1.4.4 node: 6.11.3 os: linux x64 @angular/animations: 4.4.4 @angular/common: 4.4.4 @an...

Open Graph Description: Bug Report or Feature Request (mark with an x) - [] bug report -> please search issues before submitting - [x] feature request Versions. @angular/cli: 1.4.4 node: 6.11.3 os: linux x64 @angular/anim...

X Description: Bug Report or Feature Request (mark with an x) - [] bug report -> please search issues before submitting - [x] feature request Versions. @angular/cli: 1.4.4 node: 6.11.3 os: linux x64 @angular/a...

Opengraph URL: https://github.com/angular/angular-cli/issues/7964

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve absolute import parsing for editors by moving baseUrl","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [] bug report -> please search issues before submitting\r\n- [x] feature request\r\n```\r\n\r\n### Versions.\r\n\u003c!--\r\nOutput from: `ng --version`.\r\nIf nothing, output from: `node --version` and `npm --version`.\r\n  Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)\r\n-->\r\n@angular/cli: 1.4.4\r\nnode: 6.11.3\r\nos: linux x64\r\n@angular/animations: 4.4.4\r\n@angular/common: 4.4.4\r\n@angular/compiler: 4.4.4\r\n@angular/core: 4.4.4\r\n@angular/forms: 4.4.4\r\n@angular/http: 4.4.4\r\n@angular/platform-browser: 4.4.4\r\n@angular/platform-browser-dynamic: 4.4.4\r\n@angular/router: 4.4.4\r\n@angular/cli: 1.4.4\r\n@angular/compiler-cli: 4.4.4\r\n@angular/language-service: 4.4.4\r\ntypescript: 2.3.4\r\n\r\n### Repro steps.\r\n\u003c!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run, packages added, related code changes.\r\nA link to a sample repo would help too.\r\n-->\r\nThis improvements refers mainly to [vscode/#24362](https://github.com/Microsoft/vscode/issues/24362) but i think it will be reproduced  by other editors in the future as well. Currently the main (and only) typescript config file parsed by editors is `tsconfig.json`. Since the files  `./src/tsconfig.app.json` and `./src/tsconfig.spec.json` both contains`\"baseUrl\": \"./\"` but there is no `baseUrl` property in   `./tsconfig.json` which they both extend there is no way for the common editor to know what the main `baseUrl` is and it will struggle with resolving and refactoring absolute imports (although compiling with `ng build` works fine).\r\n\r\n### The log given by the failure.\r\n\u003c!-- Normally this include a stack trace and some more information. -->\r\nFor example just \"out of the box\" app after `ng new` and changing one relative import to absolute one produces :\r\n\r\n![import_fail](https://user-images.githubusercontent.com/16689354/31308540-fd91acae-ab80-11e7-8713-765c8a6e889f.jpg)\r\n\r\n\r\n\r\n### Desired functionality.\r\n\u003c!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\nif (as I wrote [here](https://github.com/Microsoft/vscode/issues/24362#issuecomment-334934143)) the `baseUrl` property will be moved from `./src/tsconfig.app.json` and   `./src/tsconfig.spec .json`  files to `./tsconfig.json` and it will hold there `\"baseUrl\": \"./src/\"`  it will solve the issue and will create better parsing for other editors in the future.\r\n\r\n### Mention any other details that might be useful.\r\n\u003c!-- Please include a link to the repo if this is related to an OSS project. -->\r\n\r\n1. [vscode/24362](https://github.com/Microsoft/vscode/issues/24362)\r\n2. [vscode/12463](https://github.com/Microsoft/vscode/issues/12463)","author":{"url":"https://github.com/nitzano","@type":"Person","name":"nitzano"},"datePublished":"2017-10-07T14:12:10Z","url":"https://github.com/angular/angular-cli/issues/7964"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:719434c9-5cf8-01ef-fc41-9fc9ffc70433
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA58A:3CBB3E:2E17B12:3ADC9E0:6B02023A
html-safe-nonce83fef99b9691df27248f8b99203cf29b56b4fd6f5ba2318d90ac245d53cfee13
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNThBOjNDQkIzRToyRTE3QjEyOjNBREM5RTA6NkIwMjAyM0EiLCJ2aXNpdG9yX2lkIjoiMTAyMzEzOTkxMTY2MTAwMDI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaceaf57f0cfec42c44e8456f05f0d3edd17533af6d8f08e7cc63362a44e09066c8
hovercard-subject-tagissue:263644135
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/7964/issue_layout
twitter:imagehttps://opengraph.githubassets.com/86c35a586869c954c4b0a1d682635b6ddd38a7787fecfdefacd1a8c3c490f11a/angular/angular-cli/issues/7964
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/86c35a586869c954c4b0a1d682635b6ddd38a7787fecfdefacd1a8c3c490f11a/angular/angular-cli/issues/7964
og:image:altBug Report or Feature Request (mark with an x) - [] bug report -> please search issues before submitting - [x] feature request Versions. @angular/cli: 1.4.4 node: 6.11.3 os: linux x64 @angular/anim...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenitzano
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/7964#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F7964
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F7964
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/7964
Reloadhttps://github.com/angular/angular-cli/issues/7964
Reloadhttps://github.com/angular/angular-cli/issues/7964
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/7964
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/7964
Improve absolute import parsing for editors by moving baseUrlhttps://github.com/angular/angular-cli/issues/7964#top
area: @schematics/angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40schematics%2Fangular%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
feature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%3A%20insufficient%20votes%22
needs: investigationRequires some digging to determine if action is neededhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20investigation%22
needsTriagehttps://github.com/angular/angular-cli/milestone/11
https://github.com/nitzano
nitzanohttps://github.com/nitzano
on Oct 7, 2017https://github.com/angular/angular-cli/issues/7964#issue-263644135
vscode/#24362https://github.com/Microsoft/vscode/issues/24362
https://user-images.githubusercontent.com/16689354/31308540-fd91acae-ab80-11e7-8713-765c8a6e889f.jpg
herehttps://github.com/Microsoft/vscode/issues/24362#issuecomment-334934143
vscode/24362https://github.com/Microsoft/vscode/issues/24362
vscode/12463https://github.com/Microsoft/vscode/issues/12463
Nexthttps://github.com/angular/angular-cli/issues/7964?timeline_page=1
https://github.com/delasteve
delastevehttps://github.com/delasteve
on Oct 7, 2017https://github.com/angular/angular-cli/issues/7964#issuecomment-334970514
#5875https://github.com/angular/angular-cli/issues/5875
#6861https://github.com/angular/angular-cli/pull/6861
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Oct 8, 2017https://github.com/angular/angular-cli/issues/7964#issuecomment-335030966
@delastevehttps://github.com/delasteve
#5875https://github.com/angular/angular-cli/issues/5875
https://github.com/angular/angular-cli/wiki/stories-multiple-appshttps://github.com/angular/angular-cli/wiki/stories-multiple-apps
filipesilvahttps://github.com/filipesilva
on Oct 8, 2017https://github.com/angular/angular-cli/issues/7964#event-1283290035
filipesilvahttps://github.com/filipesilva
type: discussionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20discussion%22
on Oct 8, 2017https://github.com/angular/angular-cli/issues/7964#event-1283290062
https://github.com/nitzano
nitzanohttps://github.com/nitzano
on Oct 8, 2017https://github.com/angular/angular-cli/issues/7964#issuecomment-335043872
@filipesilvahttps://github.com/filipesilva
vscode https://github.com/Microsoft/vscode
Pythonhttps://www.python.org/dev/peps/pep-0328/#rationale-for-absolute-imports
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Oct 10, 2017https://github.com/angular/angular-cli/issues/7964#issuecomment-335420309
filipesilvahttps://github.com/filipesilva
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 10, 2017https://github.com/angular/angular-cli/issues/7964#event-1285695058
filipesilvahttps://github.com/filipesilva
on Oct 10, 2017https://github.com/angular/angular-cli/issues/7964#event-1285695135
https://github.com/victornoel
victornoelhttps://github.com/victornoel
on Oct 26, 2017https://github.com/angular/angular-cli/issues/7964#issuecomment-339643014
@filipesilvahttps://github.com/filipesilva
https://github.com/vivainio
vivainiohttps://github.com/vivainio
on Nov 10, 2017https://github.com/angular/angular-cli/issues/7964#issuecomment-343497104
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Dec 7, 2017https://github.com/angular/angular-cli/issues/7964#issuecomment-349928870
@victornoelhttps://github.com/victornoel
https://github.com/victornoel
victornoelhttps://github.com/victornoel
on Dec 7, 2017https://github.com/angular/angular-cli/issues/7964#issuecomment-349935209
https://github.com/vivainio
vivainiohttps://github.com/vivainio
on Dec 7, 2017https://github.com/angular/angular-cli/issues/7964#issuecomment-350035438
@filipesilvahttps://github.com/filipesilva
hanslhttps://github.com/hansl
type: RFC / discussion / questionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20RFC%20%2F%20discussion%20%2F%20question%22
type: discussionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20discussion%22
on Jan 30, 2018https://github.com/angular/angular-cli/issues/7964#event-1449420766
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular-cli/milestone/11
Backloghttps://github.com/angular/angular-cli/milestone/12
on Oct 1, 2019https://github.com/angular/angular-cli/issues/7964#event-2677684856
filipesilvahttps://github.com/filipesilva
type: RFC / discussion / questionhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20RFC%20%2F%20discussion%20%2F%20question%22
on Oct 1, 2019https://github.com/angular/angular-cli/issues/7964#event-2677685044
alan-agius4https://github.com/alan-agius4
needs: investigationRequires some digging to determine if action is neededhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20investigation%22
on Oct 22, 2020https://github.com/angular/angular-cli/issues/7964#event-3908302352
https://github.com/apps/angular-robot
angular-robothttps://github.com/apps/angular-robot
on Feb 1, 2022https://github.com/angular/angular-cli/issues/7964#issuecomment-1027129071
documentationhttps://github.com/angular/angular/blob/e29eb8abfbfdfb793e08ac88e14b7ba6d2ff2136/docs/GITHUB_PROCESS.md#feature-request-process
angular-robothttps://github.com/apps/angular-robot
feature: votes requiredFeature request which is currently still in the voting phasehttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%3A%20votes%20required%22
on Feb 1, 2022https://github.com/angular/angular-cli/issues/7964#event-5990205733
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular-cli/milestone/12
needsTriagehttps://github.com/angular/angular-cli/milestone/11
on Feb 1, 2022https://github.com/angular/angular-cli/issues/7964#event-5990205847
https://github.com/apps/angular-robot
angular-robothttps://github.com/apps/angular-robot
on Feb 21, 2022https://github.com/angular/angular-cli/issues/7964#issuecomment-1046863913
communityhttps://angular.io/resources?category=community
packagehttps://angular.io/guide/creating-libraries
documentationhttps://github.com/angular/angular/blob/e29eb8abfbfdfb793e08ac88e14b7ba6d2ff2136/docs/GITHUB_PROCESS.md#feature-request-process
angular-robothttps://github.com/apps/angular-robot
feature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%3A%20insufficient%20votes%22
feature: votes requiredFeature request which is currently still in the voting phasehttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%3A%20votes%20required%22
on Feb 21, 2022https://github.com/angular/angular-cli/issues/7964#event-6111500630
https://github.com/alan-agius4
alan-agius4https://github.com/alan-agius4
on Oct 3, 2023https://github.com/angular/angular-cli/issues/7964#issuecomment-1744933210
#25934https://github.com/angular/angular-cli/pull/25934
alan-agius4https://github.com/alan-agius4
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 3, 2023https://github.com/angular/angular-cli/issues/7964#event-10538175787
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 3, 2023https://github.com/angular/angular-cli/issues/7964#issuecomment-1791725874
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Nov 3, 2023https://github.com/angular/angular-cli/issues/7964#event-10850254886
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/7964
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/7964
area: @schematics/angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40schematics%2Fangular%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%22
feature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authorshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22feature%3A%20insufficient%20votes%22
needs: investigationRequires some digging to determine if action is neededhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20investigation%22
needsTriageNo due datehttps://github.com/angular/angular-cli/milestone/11
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.